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.001191/0.001191, allocations: 113.9 kB / 17.28 MB, free: 6.219 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.001185/0.001185, allocations: 189.3 kB / 18.2 MB, free: 5.301 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.324/1.324, allocations: 205.1 MB / 224.1 MB, free: 12.44 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.001101/0.001101, allocations: 51.92 kB / 280.2 MB, free: 3.5 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08441/0.08552, allocations: 46.63 MB / 326.8 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01153/0.0971, allocations: 13.24 MB / 340 MB, free: 7.496 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01948/0.1166, allocations: 19.08 MB / 359.1 MB, free: 4.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003238/0.1199, allocations: 63.5 kB / 359.2 MB, free: 4.277 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00333/0.1233, allocations: 0.9505 MB / 360.1 MB, free: 3.316 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007721/0.1311, allocations: 1.93 MB / 362 MB, free: 1.375 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004606/0.1357, allocations: 1.188 MB / 363.2 MB, free: 188 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01069/0.1464, allocations: 6.285 MB / 369.5 MB, free: 9.879 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007486/0.1472, allocations: 436.4 kB / 369.9 MB, free: 9.422 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001459/0.1487, allocations: 0.9368 MB / 370.9 MB, free: 8.48 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00118/0.1499, allocations: 1.025 MB / 371.9 MB, free: 7.449 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001589/0.15, allocations: 72 kB / 372 MB, free: 7.379 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003748/0.1538, allocations: 1.159 MB / 373.1 MB, free: 6.219 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000363/0.1542, allocations: 313.7 kB / 373.4 MB, free: 5.91 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001352/0.1555, allocations: 1.316 MB / 374.8 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004509/0.1601, allocations: 3.615 MB / 378.4 MB, free: 0.957 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.1601, allocations: 4 kB / 378.4 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1601, allocations: 0 / 378.4 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.687e-05/0.1602, allocations: 3.938 kB / 378.4 MB, free: 0.9492 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.1599/0.3201, allocations: 3.528 MB / 381.9 MB, free: 53.77 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.3202, allocations: 10.66 kB / 381.9 MB, free: 53.77 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005355/0.3207, allocations: 376.5 kB / 382.3 MB, free: 53.58 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003869/0.3246, allocations: 2.53 MB / 384.8 MB, free: 52.46 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.469e-05/0.3246, allocations: 33.39 kB / 384.9 MB, free: 52.45 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001242/0.3248, allocations: 56 kB / 384.9 MB, free: 52.43 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001355/0.3261, allocations: 0.7001 MB / 385.6 MB, free: 52.17 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.587e-05/0.3262, allocations: 4.547 kB / 385.6 MB, free: 52.17 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.383e-05/0.3262, allocations: 21.25 kB / 385.6 MB, free: 52.16 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.505e-05/0.3263, allocations: 19.38 kB / 385.7 MB, free: 52.15 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001452/0.3277, allocations: 0.788 MB / 386.4 MB, free: 51.95 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0051/0.3328, allocations: 2.903 MB / 389.3 MB, free: 50.53 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001221/0.3341, allocations: 0.6882 MB / 390 MB, free: 50.11 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009354/0.335, allocations: 0.6544 MB / 390.7 MB, free: 49.75 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02186/0.3569, allocations: 30.18 MB / 420.9 MB, free: 20.31 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006268/0.3576, allocations: 355.8 kB / 421.2 MB, free: 19.95 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 2.535e-06/0.3576, allocations: 2.938 kB / 421.2 MB, free: 19.95 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.002821/0.3604, allocations: 1.396 MB / 422.6 MB, free: 18.55 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.455e-05/0.3605, allocations: 63.17 kB / 422.7 MB, free: 18.48 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002653/0.3631, allocations: 2.816 MB / 425.5 MB, free: 15.64 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.134e-05/0.3632, allocations: 37.7 kB / 425.5 MB, free: 15.6 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007882/0.364, allocations: 1.391 MB / 426.9 MB, free: 14.2 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001212/0.3641, allocations: 161.7 kB / 427.1 MB, free: 14.04 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002429/0.3644, allocations: 226.1 kB / 427.3 MB, free: 13.82 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.372e-05/0.3645, allocations: 341.9 kB / 427.6 MB, free: 13.48 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004671/0.3649, allocations: 241.4 kB / 427.9 MB, free: 13.24 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005794/0.3655, allocations: 0.5912 MB / 428.5 MB, free: 12.49 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001064/0.3666, allocations: 0.8802 MB / 429.3 MB, free: 11.45 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.344e-06/0.3666, allocations: 4 kB / 429.3 MB, free: 11.44 MB / 318.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001928/0.3685, allocations: 1.275 MB / 430.6 MB, free: 10.15 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.521e-05/0.3686, allocations: 12 kB / 430.6 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.334e-05/0.3687, allocations: 80 kB / 430.7 MB, free: 10.06 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004658/0.3691, allocations: 281.3 kB / 431 MB, free: 9.785 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004785/0.3696, allocations: 175.6 kB / 431.1 MB, free: 9.613 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007113/0.3703, allocations: 0.8828 MB / 432 MB, free: 8.707 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001337/0.3717, allocations: 114.9 kB / 432.1 MB, free: 8.594 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001049/0.3718, allocations: 64 kB / 432.2 MB, free: 8.531 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.0008192/0.3726, allocations: 421.5 kB / 432.6 MB, free: 8.109 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005267/0.3732, allocations: 367.7 kB / 433 MB, free: 7.746 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002794/0.376, allocations: 1.279 MB / 434.3 MB, free: 6.469 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/0.376, allocations: 4 kB / 434.3 MB, free: 6.465 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.243e-06/0.376, allocations: 0 / 434.3 MB, free: 6.465 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.376, allocations: 3.625 kB / 434.3 MB, free: 6.465 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003268/0.3793, allocations: 2.207 MB / 436.5 MB, free: 4.176 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.03e-05/0.3794, allocations: 68 kB / 436.5 MB, free: 4.109 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002736/0.3797, allocations: 63.88 kB / 436.6 MB, free: 4.047 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003848/0.38, allocations: 268.8 kB / 436.9 MB, free: 3.781 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.075e-05/0.3801, allocations: 31.98 kB / 436.9 MB, free: 3.75 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000671/0.3808, allocations: 0.8685 MB / 437.8 MB, free: 2.855 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.3808, allocations: 3.938 kB / 437.8 MB, free: 2.852 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001669/0.3825, allocations: 1.133 MB / 438.9 MB, free: 1.676 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007048/0.3832, allocations: 464.5 kB / 439.4 MB, free: 1.199 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002984/0.3835, allocations: 19.98 kB / 439.4 MB, free: 1.18 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006172/0.3841, allocations: 27.97 kB / 439.4 MB, free: 1.152 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001439/0.3843, allocations: 60.97 kB / 439.5 MB, free: 1.094 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.439e-05/0.3843, allocations: 39.98 kB / 439.5 MB, free: 1.055 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002187/0.3865, allocations: 1.836 MB / 441.3 MB, free: 15.21 MB / 334.1 MB Notification: Performance of sort global known variables: time 6.41e-07/0.3866, allocations: 0 / 441.3 MB, free: 15.21 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001676/0.3882, allocations: 0.5765 MB / 441.9 MB, free: 14.66 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.001212/0.3895, allocations: 0.7809 MB / 442.7 MB, free: 13.9 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00187/0.3913, allocations: 0.8643 MB / 443.6 MB, free: 13.02 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.3914, allocations: 0 / 443.6 MB, free: 13.02 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000869/0.3922, allocations: 496.4 kB / 444 MB, free: 12.51 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002073/0.3943, allocations: 0.5063 MB / 444.5 MB, free: 12.01 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005976/0.4003, allocations: 4.736 MB / 449.3 MB, free: 7.223 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00103/0.4014, allocations: 1.612 MB / 450.9 MB, free: 5.578 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001335/0.4027, allocations: 394.9 kB / 451.3 MB, free: 5.195 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002384/0.403, allocations: 159.4 kB / 451.4 MB, free: 5.039 MB / 334.1 MB Notification: Performance of SimCode: time 6.91e-07/0.403, allocations: 0 / 451.4 MB, free: 5.039 MB / 334.1 MB Notification: Performance of Templates: time 0.05882/0.4618, allocations: 33.19 MB / 484.6 MB, free: 3.809 MB / 366.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/jenkins/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