Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Nand") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001219/0.001219, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001293/0.001293, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.43/1.43, allocations: 227.4 MB / 246.8 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002942/0.002942, allocations: 71.84 kB / 307 MB, free: 0.5977 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1346/0.1375, allocations: 50.54 MB / 357.5 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.1718/0.3093, allocations: 14.01 MB / 371.5 MB, free: 9.062 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01893/0.3283, allocations: 20.3 MB / 391.8 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001747/0.3301, allocations: 61.75 kB / 391.9 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002757/0.3329, allocations: 1.119 MB / 393 MB, free: 352 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008156/0.341, allocations: 2.274 MB / 395.3 MB, free: 14.95 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004813/0.3459, allocations: 1.434 MB / 396.7 MB, free: 14.2 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009957/0.3558, allocations: 6.403 MB / 403.1 MB, free: 11.35 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007206/0.3566, allocations: 434.9 kB / 403.6 MB, free: 11.12 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001633/0.3582, allocations: 1.018 MB / 404.6 MB, free: 10.65 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001128/0.3594, allocations: 1.052 MB / 405.6 MB, free: 10.04 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001696/0.3595, allocations: 71.78 kB / 405.7 MB, free: 10.04 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004345/0.3639, allocations: 1.473 MB / 407.2 MB, free: 9.414 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000351/0.3643, allocations: 319.2 kB / 407.5 MB, free: 9.16 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001465/0.3657, allocations: 1.302 MB / 408.8 MB, free: 8.082 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004869/0.3706, allocations: 3.607 MB / 412.4 MB, free: 4.461 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3706, allocations: 0 / 412.4 MB, free: 4.461 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.3706, allocations: 0 / 412.4 MB, free: 4.461 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.561e-05/0.3707, allocations: 0 / 412.4 MB, free: 4.461 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.005428/0.3761, allocations: 3.514 MB / 415.9 MB, free: 0.875 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.878e-05/0.3762, allocations: 8.031 kB / 415.9 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005138/0.3767, allocations: 375.4 kB / 416.3 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003762/0.3805, allocations: 2.524 MB / 418.8 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.713e-05/0.3805, allocations: 33.88 kB / 418.8 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001211/0.3807, allocations: 44 kB / 418.9 MB, free: 13.81 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001408/0.3821, allocations: 0.6992 MB / 419.6 MB, free: 13.11 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.556e-05/0.3821, allocations: 0 / 419.6 MB, free: 13.11 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.298e-05/0.3822, allocations: 23.97 kB / 419.6 MB, free: 13.08 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.219e-05/0.3822, allocations: 20 kB / 419.6 MB, free: 13.06 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001644/0.3839, allocations: 0.7889 MB / 420.4 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004925/0.3888, allocations: 2.899 MB / 423.3 MB, free: 9.309 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001359/0.3902, allocations: 0.6898 MB / 424 MB, free: 8.59 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001111/0.3913, allocations: 0.647 MB / 424.6 MB, free: 7.941 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0326/0.4239, allocations: 30.73 MB / 455.4 MB, free: 4.957 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007871/0.4247, allocations: 361.6 kB / 455.7 MB, free: 4.59 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.275e-06/0.4248, allocations: 0 / 455.7 MB, free: 4.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.003302/0.4281, allocations: 1.384 MB / 457.1 MB, free: 3.176 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.355e-05/0.4281, allocations: 67.34 kB / 457.2 MB, free: 3.098 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003524/0.4317, allocations: 2.803 MB / 460 MB, free: 280 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.099e-05/0.4317, allocations: 33.7 kB / 460 MB, free: 240 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001348/0.4331, allocations: 1.383 MB / 461.4 MB, free: 14.84 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001617/0.4333, allocations: 157.8 kB / 461.5 MB, free: 14.69 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003283/0.4336, allocations: 234 kB / 461.8 MB, free: 14.45 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000192/0.4338, allocations: 338 kB / 462.1 MB, free: 14.12 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006445/0.4344, allocations: 237.8 kB / 462.3 MB, free: 13.89 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009161/0.4354, allocations: 0.593 MB / 462.9 MB, free: 13.12 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001581/0.437, allocations: 0.8802 MB / 463.8 MB, free: 12.07 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.895e-06/0.437, allocations: 4 kB / 463.8 MB, free: 12.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002368/0.4394, allocations: 1.283 MB / 465.1 MB, free: 10.77 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.4394, allocations: 12.06 kB / 465.1 MB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000118/0.4395, allocations: 83.98 kB / 465.2 MB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006104/0.4401, allocations: 275.7 kB / 465.5 MB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005931/0.4407, allocations: 171.7 kB / 465.6 MB, free: 10.24 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001188/0.4419, allocations: 0.8795 MB / 466.5 MB, free: 9.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008993/0.4428, allocations: 107 kB / 466.6 MB, free: 9.234 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001025/0.443, allocations: 64 kB / 466.7 MB, free: 9.172 MB / 382.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.000698/0.4437, allocations: 426.6 kB / 467.1 MB, free: 8.746 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003783/0.444, allocations: 363.6 kB / 467.4 MB, free: 8.387 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003254/0.4473, allocations: 1.276 MB / 468.7 MB, free: 7.098 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.017e-05/0.4473, allocations: 4 kB / 468.7 MB, free: 7.094 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.4474, allocations: 0 / 468.7 MB, free: 7.094 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.4474, allocations: 3.938 kB / 468.7 MB, free: 7.09 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003907/0.4513, allocations: 2.193 MB / 470.9 MB, free: 4.812 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001117/0.4514, allocations: 71.98 kB / 471 MB, free: 4.742 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003233/0.4517, allocations: 59.89 kB / 471.1 MB, free: 4.684 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005056/0.4523, allocations: 264.9 kB / 471.3 MB, free: 4.422 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.894e-05/0.4523, allocations: 32 kB / 471.3 MB, free: 4.391 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000976/0.4533, allocations: 0.8602 MB / 472.2 MB, free: 3.508 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/0.4533, allocations: 0 / 472.2 MB, free: 3.508 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002096/0.4554, allocations: 1.14 MB / 473.3 MB, free: 2.328 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007431/0.4562, allocations: 475.5 kB / 473.8 MB, free: 1.844 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002805/0.4565, allocations: 19.98 kB / 473.8 MB, free: 1.824 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006248/0.4571, allocations: 31.95 kB / 473.9 MB, free: 1.793 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001551/0.4573, allocations: 55.95 kB / 473.9 MB, free: 1.738 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.758e-05/0.4574, allocations: 39.98 kB / 474 MB, free: 1.699 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002554/0.4599, allocations: 1.824 MB / 475.8 MB, free: 15.87 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4599, allocations: 0 / 475.8 MB, free: 15.87 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001292/0.4612, allocations: 0.5623 MB / 476.3 MB, free: 15.3 MB / 398.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.001164/0.4624, allocations: 0.7789 MB / 477.1 MB, free: 14.52 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001963/0.4644, allocations: 0.8616 MB / 478 MB, free: 13.64 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.4644, allocations: 0 / 478 MB, free: 13.64 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009723/0.4654, allocations: 500 kB / 478.5 MB, free: 13.13 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002439/0.4678, allocations: 0.6088 MB / 479.1 MB, free: 12.52 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005383/0.4732, allocations: 3.976 MB / 483.1 MB, free: 8.492 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001186/0.4744, allocations: 1.596 MB / 484.6 MB, free: 6.863 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001299/0.4757, allocations: 394.9 kB / 485 MB, free: 6.473 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002324/0.476, allocations: 159.4 kB / 485.2 MB, free: 6.316 MB / 398.1 MB Notification: Performance of SimCode: time 4.71e-07/0.476, allocations: 0 / 485.2 MB, free: 6.316 MB / 398.1 MB Notification: Performance of Templates: time 0.06067/0.5366, allocations: 33.33 MB / 0.5064 GB, free: 5.094 MB / 430.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches