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.0008709/0.0008714, allocations: 93.25 kB / 17.3 MB, free: 6.391 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.001006/0.001006, allocations: 172.9 kB / 18.2 MB, free: 5.551 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.368/1.368, allocations: 205.4 MB / 224.4 MB, free: 13.06 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.0004933/0.0004935, allocations: 12.2 kB / 281.4 MB, free: 3.422 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09582/0.09633, allocations: 47.57 MB / 329 MB, free: 3.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01143/0.1078, allocations: 12.71 MB / 341.7 MB, free: 7 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02048/0.1283, allocations: 19.21 MB / 360.9 MB, free: 3.723 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001432/0.1298, allocations: 67.44 kB / 360.9 MB, free: 3.656 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002611/0.1324, allocations: 0.9746 MB / 361.9 MB, free: 2.672 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007912/0.1403, allocations: 1.86 MB / 363.8 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004507/0.1449, allocations: 1.152 MB / 364.9 MB, free: 15.64 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00913/0.154, allocations: 6.097 MB / 371 MB, free: 9.527 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006624/0.1547, allocations: 408.8 kB / 371.4 MB, free: 9.098 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001343/0.1561, allocations: 0.9016 MB / 372.3 MB, free: 8.191 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001012/0.1571, allocations: 0.9934 MB / 373.3 MB, free: 7.191 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001302/0.1572, allocations: 40 kB / 373.4 MB, free: 7.152 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003894/0.1611, allocations: 1.124 MB / 374.5 MB, free: 6.027 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002752/0.1614, allocations: 273.7 kB / 374.7 MB, free: 5.758 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001098/0.1625, allocations: 1.31 MB / 376.1 MB, free: 4.434 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004919/0.1674, allocations: 3.505 MB / 379.6 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.426e-06/0.1675, allocations: 4 kB / 379.6 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.737e-06/0.1675, allocations: 0 / 379.6 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.97e-05/0.1676, allocations: 0 / 379.6 MB, free: 0.9102 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.1729/0.3405, allocations: 3.084 MB / 382.6 MB, free: 52.99 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.204e-05/0.3406, allocations: 9.031 kB / 382.7 MB, free: 52.99 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006596/0.3412, allocations: 377.5 kB / 383 MB, free: 52.8 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005554/0.3468, allocations: 2.537 MB / 385.6 MB, free: 52.01 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.333e-05/0.3469, allocations: 38.98 kB / 385.6 MB, free: 52.01 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001967/0.3471, allocations: 50.22 kB / 385.6 MB, free: 52.01 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002039/0.3492, allocations: 0.7233 MB / 386.4 MB, free: 51.83 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.3492, allocations: 0 / 386.4 MB, free: 51.83 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001002/0.3493, allocations: 24.42 kB / 386.4 MB, free: 51.81 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.098e-05/0.3493, allocations: 22.92 kB / 386.4 MB, free: 51.81 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00231/0.3517, allocations: 0.8271 MB / 387.2 MB, free: 51.6 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007101/0.3588, allocations: 2.919 MB / 390.2 MB, free: 50.22 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001806/0.3606, allocations: 0.7404 MB / 390.9 MB, free: 49.84 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001475/0.3621, allocations: 0.6723 MB / 391.6 MB, free: 49.49 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03216/0.3943, allocations: 30.19 MB / 421.8 MB, free: 19.93 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009905/0.3953, allocations: 388.7 kB / 422.1 MB, free: 19.54 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 3.497e-06/0.3954, allocations: 0 / 422.1 MB, free: 19.54 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.004592/0.4, allocations: 1.462 MB / 423.6 MB, free: 18.08 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.447e-05/0.4, allocations: 60.34 kB / 423.7 MB, free: 18.01 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005009/0.405, allocations: 2.82 MB / 426.5 MB, free: 15.17 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.519e-05/0.4051, allocations: 33.7 kB / 426.5 MB, free: 15.13 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001257/0.4064, allocations: 1.395 MB / 427.9 MB, free: 13.73 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001762/0.4066, allocations: 166 kB / 428.1 MB, free: 13.57 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001195/0.4067, allocations: 69.67 kB / 428.1 MB, free: 13.5 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.978e-05/0.4068, allocations: 341.9 kB / 428.5 MB, free: 13.16 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008135/0.4076, allocations: 265.8 kB / 428.7 MB, free: 12.9 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009944/0.4086, allocations: 0.6125 MB / 429.3 MB, free: 12.12 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001837/0.4105, allocations: 0.9181 MB / 430.3 MB, free: 11.03 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.257e-05/0.4105, allocations: 4 kB / 430.3 MB, free: 11.03 MB / 318.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.003473/0.414, allocations: 1.327 MB / 431.6 MB, free: 9.691 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.55e-05/0.4141, allocations: 12 kB / 431.6 MB, free: 9.68 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001326/0.4142, allocations: 87.92 kB / 431.7 MB, free: 9.594 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007043/0.4149, allocations: 276.8 kB / 432 MB, free: 9.32 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008203/0.4158, allocations: 180.1 kB / 432.1 MB, free: 9.148 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00106/0.4168, allocations: 0.8857 MB / 433 MB, free: 8.238 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002024/0.4189, allocations: 119 kB / 433.1 MB, free: 8.121 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001526/0.419, allocations: 67.98 kB / 433.2 MB, free: 8.055 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.001013/0.4201, allocations: 417.6 kB / 433.6 MB, free: 7.637 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007922/0.4209, allocations: 371.5 kB / 434 MB, free: 7.27 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004551/0.4254, allocations: 1.321 MB / 435.3 MB, free: 5.953 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.09e-05/0.4255, allocations: 4 kB / 435.3 MB, free: 5.949 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.776e-06/0.4255, allocations: 1.688 kB / 435.3 MB, free: 5.949 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.686e-06/0.4255, allocations: 3.984 kB / 435.3 MB, free: 5.945 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005089/0.4306, allocations: 2.239 MB / 437.5 MB, free: 3.633 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000112/0.4307, allocations: 72 kB / 437.6 MB, free: 3.562 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000465/0.4312, allocations: 75.88 kB / 437.7 MB, free: 3.488 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006142/0.4318, allocations: 263.6 kB / 438 MB, free: 3.23 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.889e-05/0.4319, allocations: 35.98 kB / 438 MB, free: 3.195 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001012/0.4329, allocations: 0.8684 MB / 438.9 MB, free: 2.301 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/0.433, allocations: 0 / 438.9 MB, free: 2.301 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002695/0.4357, allocations: 1.182 MB / 440 MB, free: 1.078 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001227/0.4369, allocations: 464.4 kB / 440.5 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006556/0.4376, allocations: 11.98 kB / 440.5 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001349/0.4389, allocations: 39.84 kB / 440.5 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002233/0.4392, allocations: 71.88 kB / 440.6 MB, free: 496 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000109/0.4393, allocations: 36 kB / 440.6 MB, free: 460 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.004502/0.4438, allocations: 1.832 MB / 442.5 MB, free: 14.61 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.4438, allocations: 3.938 kB / 442.5 MB, free: 14.61 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.003374/0.4472, allocations: 0.5739 MB / 443.1 MB, free: 14.05 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.002112/0.4494, allocations: 0.7633 MB / 443.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00321/0.4526, allocations: 0.8908 MB / 444.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.624e-06/0.4526, allocations: 4.125 kB / 444.7 MB, free: 12.54 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001594/0.4542, allocations: 0.5119 MB / 445.2 MB, free: 12.01 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004781/0.459, allocations: 479.4 kB / 445.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01109/0.4701, allocations: 4.794 MB / 450.5 MB, free: 6.695 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002062/0.4722, allocations: 1.605 MB / 452.1 MB, free: 5.062 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.002629/0.4749, allocations: 396.3 kB / 452.5 MB, free: 4.68 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004269/0.4753, allocations: 159.4 kB / 452.6 MB, free: 4.523 MB / 334.1 MB Notification: Performance of SimCode: time 2.755e-06/0.4754, allocations: 0 / 452.6 MB, free: 4.523 MB / 334.1 MB Notification: Performance of Templates: time 0.09199/0.5674, allocations: 32.17 MB / 484.8 MB, free: 4.34 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