Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mn1.Dinternal|mn1.Sinternal|mn2.Dinternal|mn2.Sinternal|mp1.Dinternal|mp1.Sinternal|mp2.Dinternal|mp2.Sinternal",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor") translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mn1.Dinternal|mn1.Sinternal|mn2.Dinternal|mn2.Sinternal|mp1.Dinternal|mp1.Sinternal|mp2.Dinternal|mp2.Sinternal",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00192/0.00192, allocations: 109.7 kB / 17.16 MB, free: 6.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00239/0.00239, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.023/2.023, allocations: 222.9 MB / 241.8 MB, free: 15.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002047/0.002048, allocations: 50.08 kB / 300.6 MB, free: 6.332 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1344/0.1365, allocations: 49.46 MB / 350.1 MB, free: 4.875 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01366/0.1502, allocations: 14.06 MB / 364.1 MB, free: 6.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2775/0.4278, allocations: 20.52 MB / 384.6 MB, free: 8.664 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004817/0.4326, allocations: 63.34 kB / 384.7 MB, free: 8.633 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006486/0.4392, allocations: 0.9711 MB / 385.7 MB, free: 8.352 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01505/0.4543, allocations: 1.909 MB / 387.6 MB, free: 7.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01087/0.4653, allocations: 1.209 MB / 388.8 MB, free: 7.023 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01846/0.4838, allocations: 6.313 MB / 395.1 MB, free: 4.668 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001232/0.4851, allocations: 414.1 kB / 395.5 MB, free: 4.461 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003063/0.4882, allocations: 1.026 MB / 396.5 MB, free: 4.043 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002277/0.4905, allocations: 1.064 MB / 397.6 MB, free: 3.512 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006815/0.4912, allocations: 48.81 kB / 397.6 MB, free: 3.512 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01211/0.5033, allocations: 1.458 MB / 399.1 MB, free: 2.883 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009729/0.5044, allocations: 301 kB / 399.4 MB, free: 2.648 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003844/0.5082, allocations: 1.301 MB / 400.7 MB, free: 1.801 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005179/0.5135, allocations: 2.682 MB / 403.4 MB, free: 15.94 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.115e-06/0.5135, allocations: 0 / 403.4 MB, free: 15.94 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.031e-05/0.5135, allocations: 3.984 kB / 403.4 MB, free: 15.93 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001842/0.5137, allocations: 3.938 kB / 403.4 MB, free: 15.93 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.01197/0.5257, allocations: 3.568 MB / 407 MB, free: 12.45 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.44e-05/0.5258, allocations: 8.031 kB / 407 MB, free: 12.44 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001147/0.527, allocations: 379.5 kB / 407.3 MB, free: 12.07 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007632/0.5346, allocations: 2.54 MB / 409.9 MB, free: 9.449 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.482e-05/0.5347, allocations: 39.12 kB / 409.9 MB, free: 9.414 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002678/0.535, allocations: 55.89 kB / 410 MB, free: 9.359 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002863/0.5379, allocations: 0.7538 MB / 410.7 MB, free: 8.602 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.379e-05/0.5379, allocations: 3.984 kB / 410.7 MB, free: 8.598 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001299/0.5381, allocations: 20 kB / 410.7 MB, free: 8.578 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.964e-05/0.5381, allocations: 19.98 kB / 410.8 MB, free: 8.559 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003165/0.5413, allocations: 0.8553 MB / 411.6 MB, free: 7.699 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009458/0.5508, allocations: 2.967 MB / 414.6 MB, free: 4.652 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003039/0.5539, allocations: 0.7987 MB / 415.4 MB, free: 3.848 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002624/0.5566, allocations: 0.9527 MB / 416.3 MB, free: 2.895 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04666/0.6032, allocations: 30.06 MB / 446.4 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001225/0.6045, allocations: 0.5957 MB / 447 MB, free: 124 kB / 350.1 MB Notification: Performance of pre-optimization done (n=96): time 3.547e-06/0.6045, allocations: 0 / 447 MB, free: 124 kB / 350.1 MB Notification: Performance of matching and sorting (n=99): time 0.01679/0.6213, allocations: 5.217 MB / 452.2 MB, free: 10.65 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.493e-05/0.6215, allocations: 76.33 kB / 452.3 MB, free: 10.56 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006326/0.6278, allocations: 2.696 MB / 455 MB, free: 7.852 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003049/0.6282, allocations: 41.7 kB / 455 MB, free: 7.805 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001792/0.63, allocations: 1.303 MB / 456.3 MB, free: 6.496 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006409/0.6307, allocations: 335.2 kB / 456.7 MB, free: 6.164 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006447/0.6313, allocations: 238.3 kB / 456.9 MB, free: 5.922 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002053/0.6315, allocations: 345.9 kB / 457.2 MB, free: 5.578 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00228/0.6338, allocations: 470 kB / 457.7 MB, free: 5.117 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002462/0.6363, allocations: 0.6509 MB / 458.3 MB, free: 4.402 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004645/0.641, allocations: 1.137 MB / 459.5 MB, free: 3.199 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.854e-06/0.641, allocations: 0 / 459.5 MB, free: 3.199 MB / 366.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.007786/0.6488, allocations: 1.971 MB / 461.4 MB, free: 1.152 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.789e-05/0.6489, allocations: 8 kB / 461.5 MB, free: 1.145 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002648/0.6492, allocations: 124 kB / 461.6 MB, free: 1.023 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001289/0.6505, allocations: 268.9 kB / 461.8 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001647/0.6522, allocations: 203.6 kB / 462 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0145/0.6667, allocations: 13.24 MB / 475.3 MB, free: 1.969 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003156/0.6699, allocations: 91.89 kB / 475.4 MB, free: 1.879 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000355/0.6703, allocations: 60.95 kB / 475.4 MB, free: 1.82 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 21 (v.counter,$PRE.v.counter,vin2.counter,$PRE.vin2.counter,vin1.counter,$PRE.vin1.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001862/0.6722, allocations: 421.6 kB / 475.8 MB, free: 1.398 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001188/0.6734, allocations: 371.5 kB / 476.2 MB, free: 1.031 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00874/0.6821, allocations: 2.207 MB / 478.4 MB, free: 14.74 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.393e-05/0.6822, allocations: 12 kB / 478.4 MB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.727e-05/0.6822, allocations: 7.984 kB / 478.4 MB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.635e-05/0.6823, allocations: 7.984 kB / 478.4 MB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002753/0.685, allocations: 1.55 MB / 480 MB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001465/0.6852, allocations: 108 kB / 480.1 MB, free: 13 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007768/0.686, allocations: 135.8 kB / 480.2 MB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009513/0.6869, allocations: 268.3 kB / 480.5 MB, free: 12.58 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000115/0.6871, allocations: 43.98 kB / 480.5 MB, free: 12.54 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01042/0.6975, allocations: 13.24 MB / 493.8 MB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.6976, allocations: 0 / 493.8 MB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006486/0.704, allocations: 2.551 MB / 496.3 MB, free: 11.33 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001323/0.7054, allocations: 492.4 kB / 496.8 MB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004568/0.7059, allocations: 27.98 kB / 496.8 MB, free: 10.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001027/0.7069, allocations: 79.89 kB / 496.9 MB, free: 10.72 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003956/0.7073, allocations: 132.8 kB / 497 MB, free: 10.59 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001148/0.7075, allocations: 51.98 kB / 497.1 MB, free: 10.54 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002793/0.7103, allocations: 1.774 MB / 498.9 MB, free: 8.754 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.833e-06/0.7103, allocations: 0 / 498.9 MB, free: 8.754 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002161/0.7124, allocations: 0.6522 MB / 499.5 MB, free: 8.102 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (mp1.Dinternal,mp1.Sinternal,mp2.Dinternal,mp2.Sinternal,mn1.Dinternal,mn1.Sinternal,mn2.Dinternal,mn2.Sinternal) * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 6 (vin1.counter,vin2.counter,v.counter,vin1.counter2,vin2.counter2,v.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 9 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001398/0.7139, allocations: 0.8211 MB / 0.4886 GB, free: 7.273 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004267/0.7181, allocations: 2.51 MB / 0.4911 GB, free: 4.613 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.121e-06/0.7182, allocations: 0 / 0.4911 GB, free: 4.613 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002628/0.7208, allocations: 1.964 MB / 0.493 GB, free: 2.492 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003116/0.7239, allocations: 0.5878 MB / 0.4936 GB, free: 1.898 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008463/0.7324, allocations: 5.561 MB / 0.499 GB, free: 12.3 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001288/0.7337, allocations: 1.658 MB / 0.5006 GB, free: 10.62 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000579/0.7343, allocations: 167.4 kB / 0.5008 GB, free: 10.45 MB / 430.1 MB Notification: Performance of SimCode: time 9.11e-07/0.7343, allocations: 4 kB / 0.5008 GB, free: 10.45 MB / 430.1 MB Notification: Performance of Templates: time 0.399/1.133, allocations: 153.9 MB / 0.651 GB, free: 43.76 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches