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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001369/0.001369, allocations: 89.14 kB / 20.68 MB, free: 1.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001395/0.001395, allocations: 158.8 kB / 23.95 MB, free: 4.152 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.492/1.492, allocations: 177 MB / 204.1 MB, free: 9.16 MB / 190.1 MB " [Timeout remaining time 178] 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=5016,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=5016,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.312e-06/1.312e-06, allocations: 0 / 325 MB, free: 500 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.984e-05/2.115e-05, allocations: 2.281 kB / 325 MB, free: 496 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01353/0.01355, allocations: 11.84 MB / 336.8 MB, free: 8.164 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02485/0.03841, allocations: 17.54 MB / 354.4 MB, free: 7.598 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001897/0.0403, allocations: 189.8 kB / 354.6 MB, free: 7.41 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002716/0.04302, allocations: 1.032 MB / 355.6 MB, free: 6.371 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007091/0.05011, allocations: 2.386 MB / 358 MB, free: 3.965 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00403/0.05414, allocations: 1.422 MB / 359.4 MB, free: 2.539 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01097/0.06511, allocations: 6.648 MB / 366.1 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006085/0.06572, allocations: 244.9 kB / 366.3 MB, free: 11.6 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002199/0.06792, allocations: 1.504 MB / 367.8 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001219/0.06913, allocations: 0.7551 MB / 368.6 MB, free: 9.336 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002103/0.06934, allocations: 75.94 kB / 368.6 MB, free: 9.262 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003473/0.07282, allocations: 1.198 MB / 369.8 MB, free: 8.062 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003537/0.07317, allocations: 313.7 kB / 370.1 MB, free: 7.754 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00116/0.07433, allocations: 0.7048 MB / 370.8 MB, free: 7.047 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005215/0.07955, allocations: 3.628 MB / 374.5 MB, free: 3.406 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.656e-06/0.07955, allocations: 4 kB / 374.5 MB, free: 3.402 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.07955, allocations: 0 / 374.5 MB, free: 3.402 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.208e-05/0.07958, allocations: 0 / 374.5 MB, free: 3.402 MB / 334.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.00534/0.08492, allocations: 3.519 MB / 378 MB, free: 15.83 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/0.08497, allocations: 15.98 kB / 378 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005032/0.08547, allocations: 389.6 kB / 378.4 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004077/0.08955, allocations: 2.347 MB / 380.7 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.019e-05/0.0896, allocations: 36.94 kB / 380.8 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001557/0.08975, allocations: 59.69 kB / 380.8 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001698/0.09145, allocations: 0.7031 MB / 381.5 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.684e-05/0.09147, allocations: 0 / 381.5 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.617e-05/0.09155, allocations: 27.92 kB / 381.6 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001166/0.09167, allocations: 19.98 kB / 381.6 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001811/0.09348, allocations: 0.789 MB / 382.4 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005378/0.09886, allocations: 2.576 MB / 384.9 MB, free: 8.723 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001377/0.1002, allocations: 0.5636 MB / 385.5 MB, free: 8.152 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001165/0.1014, allocations: 0.5733 MB / 386.1 MB, free: 7.574 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02749/0.1289, allocations: 13.7 MB / 399.8 MB, free: 9.5 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009176/0.1298, allocations: 370 kB / 400.1 MB, free: 9.125 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.925e-06/0.1298, allocations: 0 / 400.1 MB, free: 9.125 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.003511/0.1333, allocations: 1.316 MB / 401.5 MB, free: 7.797 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.647e-05/0.1334, allocations: 59.39 kB / 401.5 MB, free: 7.727 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003891/0.1373, allocations: 2.798 MB / 404.3 MB, free: 4.906 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.079e-05/0.1373, allocations: 37.7 kB / 404.3 MB, free: 4.863 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001411/0.1387, allocations: 1.392 MB / 405.7 MB, free: 3.465 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002043/0.1389, allocations: 174.6 kB / 405.9 MB, free: 3.293 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003194/0.1393, allocations: 222.4 kB / 406.1 MB, free: 3.07 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001702/0.1394, allocations: 337.9 kB / 406.5 MB, free: 2.734 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006277/0.1401, allocations: 241.8 kB / 406.7 MB, free: 2.496 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009747/0.141, allocations: 0.5927 MB / 407.3 MB, free: 1.734 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001657/0.1427, allocations: 0.8695 MB / 408.2 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/0.1427, allocations: 4 kB / 408.2 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002426/0.1451, allocations: 1.286 MB / 409.4 MB, free: 15.39 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.261e-05/0.1451, allocations: 12 kB / 409.5 MB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001174/0.1453, allocations: 88.11 kB / 409.5 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005941/0.1459, allocations: 268.7 kB / 409.8 MB, free: 15.03 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006252/0.1465, allocations: 175.7 kB / 410 MB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001114/0.1476, allocations: 0.886 MB / 410.9 MB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009184/0.1485, allocations: 115.2 kB / 411 MB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001188/0.1486, allocations: 64 kB / 411 MB, free: 13.78 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.0006778/0.1493, allocations: 421.6 kB / 411.4 MB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003879/0.1497, allocations: 377.7 kB / 411.8 MB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003021/0.1527, allocations: 1.252 MB / 413.1 MB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.565e-06/0.1527, allocations: 8 kB / 413.1 MB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.1527, allocations: 4 kB / 413.1 MB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.1527, allocations: 0 / 413.1 MB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003776/0.1565, allocations: 2.029 MB / 415.1 MB, free: 9.613 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001006/0.1566, allocations: 68 kB / 415.2 MB, free: 9.547 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003455/0.157, allocations: 72 kB / 415.2 MB, free: 9.477 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005765/0.1575, allocations: 256.7 kB / 415.5 MB, free: 9.223 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.61e-05/0.1576, allocations: 32 kB / 415.5 MB, free: 9.191 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001035/0.1586, allocations: 0.8763 MB / 416.4 MB, free: 8.289 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.1586, allocations: 0 / 416.4 MB, free: 8.289 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002037/0.1607, allocations: 1.132 MB / 417.5 MB, free: 7.121 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007442/0.1614, allocations: 403.3 kB / 417.9 MB, free: 6.723 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002947/0.1617, allocations: 15.98 kB / 417.9 MB, free: 6.707 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008036/0.1625, allocations: 27.97 kB / 418 MB, free: 6.68 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002001/0.1627, allocations: 67.86 kB / 418 MB, free: 6.613 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.045e-05/0.1628, allocations: 40 kB / 418.1 MB, free: 6.574 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002607/0.1654, allocations: 1.803 MB / 419.9 MB, free: 4.766 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1654, allocations: 0 / 419.9 MB, free: 4.766 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001422/0.1668, allocations: 0.5774 MB / 420.5 MB, free: 4.188 MB / 382.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.001312/0.1681, allocations: 0.8297 MB / 421.3 MB, free: 3.352 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002039/0.1702, allocations: 0.8148 MB / 422.1 MB, free: 2.516 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.1702, allocations: 3.938 kB / 422.1 MB, free: 2.512 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001019/0.1712, allocations: 472.3 kB / 422.6 MB, free: 2.023 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002535/0.1737, allocations: 0.5834 MB / 423.2 MB, free: 1.434 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005866/0.1796, allocations: 3.938 MB / 427.1 MB, free: 13.44 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00109/0.1807, allocations: 1.052 MB / 428.1 MB, free: 12.36 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009871/0.1817, allocations: 390.8 kB / 428.5 MB, free: 11.97 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002622/0.1819, allocations: 160.5 kB / 428.7 MB, free: 11.81 MB / 398.1 MB Notification: Performance of SimCode: time 1.132e-06/0.1819, allocations: 4 kB / 428.7 MB, free: 11.81 MB / 398.1 MB Notification: Performance of Templates: time 0.05975/0.2417, allocations: 32.25 MB / 460.9 MB, free: 11.98 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.6641169264912605]