Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand") translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001154/0.001154, allocations: 114.5 kB / 17.93 MB, free: 5.566 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.001146/0.001146, allocations: 189.9 kB / 18.86 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.431/1.431, allocations: 205.1 MB / 224.7 MB, free: 12.32 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001166/0.001166, allocations: 47.94 kB / 280.8 MB, free: 3.48 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0989/0.1001, allocations: 46.63 MB / 327.4 MB, free: 4.781 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01379/0.1139, allocations: 13.23 MB / 340.7 MB, free: 7.488 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02149/0.1355, allocations: 19.08 MB / 359.7 MB, free: 4.336 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002144/0.1377, allocations: 63.5 kB / 359.8 MB, free: 4.273 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003221/0.1409, allocations: 0.9621 MB / 360.8 MB, free: 3.301 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006934/0.1479, allocations: 1.927 MB / 362.7 MB, free: 1.363 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004028/0.1519, allocations: 1.188 MB / 363.9 MB, free: 176 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008921/0.1609, allocations: 6.285 MB / 370.2 MB, free: 9.867 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007167/0.1617, allocations: 420.4 kB / 370.6 MB, free: 9.426 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001298/0.163, allocations: 0.9445 MB / 371.5 MB, free: 8.477 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001017/0.164, allocations: 1.025 MB / 372.6 MB, free: 7.445 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001616/0.1642, allocations: 72 kB / 372.6 MB, free: 7.375 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003293/0.1675, allocations: 1.156 MB / 373.8 MB, free: 6.219 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003189/0.1678, allocations: 313.7 kB / 374.1 MB, free: 5.91 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001289/0.1691, allocations: 1.316 MB / 375.4 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00262/0.1717, allocations: 2.711 MB / 378.1 MB, free: 1.867 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.1718, allocations: 7.938 kB / 378.1 MB, free: 1.859 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1718, allocations: 0 / 378.1 MB, free: 1.859 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.482e-05/0.1718, allocations: 0 / 378.1 MB, free: 1.859 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.1616/0.3334, allocations: 3.527 MB / 381.6 MB, free: 53.45 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.3335, allocations: 9.625 kB / 381.7 MB, free: 53.45 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004122/0.3339, allocations: 378.2 kB / 382 MB, free: 53.25 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004211/0.3381, allocations: 2.532 MB / 384.6 MB, free: 52.19 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.223e-05/0.3382, allocations: 37.95 kB / 384.6 MB, free: 52.17 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001273/0.3383, allocations: 52.73 kB / 384.6 MB, free: 52.15 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001272/0.3396, allocations: 0.7007 MB / 385.3 MB, free: 51.9 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.797e-05/0.3396, allocations: 0.6094 kB / 385.3 MB, free: 51.9 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.421e-05/0.3397, allocations: 28.83 kB / 385.4 MB, free: 51.88 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.398e-05/0.3397, allocations: 18.84 kB / 385.4 MB, free: 51.88 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001553/0.3413, allocations: 0.7869 MB / 386.2 MB, free: 51.67 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006046/0.3473, allocations: 2.896 MB / 389.1 MB, free: 50.25 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001362/0.3487, allocations: 0.6954 MB / 389.8 MB, free: 49.89 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001018/0.3498, allocations: 0.6591 MB / 390.4 MB, free: 49.6 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02464/0.3744, allocations: 30.17 MB / 420.6 MB, free: 20.67 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006591/0.3751, allocations: 359.5 kB / 421 MB, free: 20.31 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 2.995e-06/0.3752, allocations: 4 kB / 421 MB, free: 20.3 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.002904/0.3781, allocations: 1.397 MB / 422.4 MB, free: 18.9 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.23e-05/0.3781, allocations: 63.41 kB / 422.4 MB, free: 18.83 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002656/0.3808, allocations: 2.812 MB / 425.2 MB, free: 16 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.183e-05/0.3808, allocations: 37.7 kB / 425.3 MB, free: 15.95 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008123/0.3817, allocations: 1.391 MB / 426.7 MB, free: 14.55 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001396/0.3818, allocations: 165.7 kB / 426.8 MB, free: 14.39 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002672/0.3821, allocations: 226.2 kB / 427 MB, free: 14.17 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.576e-05/0.3822, allocations: 340.8 kB / 427.4 MB, free: 13.83 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004881/0.3827, allocations: 237.9 kB / 427.6 MB, free: 13.6 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000606/0.3833, allocations: 0.5919 MB / 428.2 MB, free: 12.85 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00109/0.3844, allocations: 0.8844 MB / 429.1 MB, free: 11.81 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.755e-06/0.3844, allocations: 4 kB / 429.1 MB, free: 11.81 MB / 318.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00206/0.3865, allocations: 1.283 MB / 430.4 MB, free: 10.51 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.3865, allocations: 8 kB / 430.4 MB, free: 10.5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.467e-05/0.3866, allocations: 80 kB / 430.5 MB, free: 10.43 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004782/0.3871, allocations: 277 kB / 430.7 MB, free: 10.15 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004865/0.3876, allocations: 167.6 kB / 430.9 MB, free: 9.988 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007381/0.3883, allocations: 0.8907 MB / 431.8 MB, free: 9.074 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001148/0.3895, allocations: 118.9 kB / 431.9 MB, free: 8.961 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.221e-05/0.3896, allocations: 64 kB / 432 MB, free: 8.898 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 14 (vin1.counter,$PRE.vin1.counter,vin2.counter,$PRE.vin2.counter,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of prepare postOptimizeDAE: time 0.000572/0.3902, allocations: 416.2 kB / 432.4 MB, free: 8.484 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003246/0.3905, allocations: 367.6 kB / 432.7 MB, free: 8.121 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002561/0.3931, allocations: 1.274 MB / 434 MB, free: 6.84 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.324e-06/0.3931, allocations: 8 kB / 434 MB, free: 6.832 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.3931, allocations: 0 / 434 MB, free: 6.832 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.3931, allocations: 5.062 kB / 434 MB, free: 6.828 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003041/0.3961, allocations: 2.203 MB / 436.2 MB, free: 4.543 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.713e-05/0.3963, allocations: 72 kB / 436.3 MB, free: 4.473 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002926/0.3966, allocations: 67.81 kB / 436.4 MB, free: 4.406 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003955/0.397, allocations: 260.8 kB / 436.6 MB, free: 4.148 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.287e-05/0.397, allocations: 32 kB / 436.6 MB, free: 4.117 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006933/0.3977, allocations: 0.871 MB / 437.5 MB, free: 3.223 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.3977, allocations: 8.016 kB / 437.5 MB, free: 3.215 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001938/0.3997, allocations: 1.129 MB / 438.6 MB, free: 2.043 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008968/0.4006, allocations: 464.5 kB / 439.1 MB, free: 1.566 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003288/0.4009, allocations: 8 kB / 439.1 MB, free: 1.559 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006448/0.4016, allocations: 39.95 kB / 439.1 MB, free: 1.52 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001669/0.4018, allocations: 59.89 kB / 439.2 MB, free: 1.461 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.645e-05/0.4018, allocations: 43.98 kB / 439.2 MB, free: 1.418 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002232/0.4041, allocations: 1.832 MB / 441.1 MB, free: 15.58 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.4041, allocations: 0 / 441.1 MB, free: 15.58 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001789/0.4059, allocations: 0.5738 MB / 441.7 MB, free: 15.03 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2) * Number of discrete states: 4 (vin1.counter2,vin2.counter2,vin1.counter,vin2.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001344/0.4072, allocations: 0.7892 MB / 442.4 MB, free: 14.26 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002004/0.4093, allocations: 0.8526 MB / 443.3 MB, free: 13.39 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/0.4093, allocations: 0 / 443.3 MB, free: 13.39 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009194/0.4102, allocations: 0.4926 MB / 443.8 MB, free: 12.88 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002465/0.4127, allocations: 0.5083 MB / 444.3 MB, free: 12.37 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006784/0.4195, allocations: 4.797 MB / 449.1 MB, free: 7.52 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001169/0.4207, allocations: 1.608 MB / 450.7 MB, free: 5.879 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003811/0.4211, allocations: 171.4 kB / 450.9 MB, free: 5.711 MB / 334.1 MB Notification: Performance of SimCode: time 1.122e-06/0.4211, allocations: 0 / 450.9 MB, free: 5.711 MB / 334.1 MB Notification: Performance of Templates: time 0.06749/0.4886, allocations: 47.95 MB / 498.8 MB, free: 5.703 MB / 382.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches