Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001739/0.001739, allocations: 81.22 kB / 20.68 MB, free: 1.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001945/0.001945, allocations: 151.2 kB / 23.94 MB, free: 4.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.401/1.401, allocations: 173.3 MB / 200.4 MB, free: 12.87 MB / 190.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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=5016,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.Nand") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.263e-06/1.263e-06, allocations: 0 / 318.9 MB, free: 3.578 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.882e-05/2.008e-05, allocations: 10.22 kB / 318.9 MB, free: 3.566 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01165/0.01167, allocations: 11.82 MB / 330.7 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02539/0.03706, allocations: 17.51 MB / 348.2 MB, free: 14.29 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002091/0.03915, allocations: 185.9 kB / 348.4 MB, free: 14.1 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00282/0.04197, allocations: 1.036 MB / 349.5 MB, free: 13.06 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007245/0.04922, allocations: 2.374 MB / 351.8 MB, free: 10.66 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004159/0.05337, allocations: 1.437 MB / 353.3 MB, free: 9.223 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0103/0.06368, allocations: 6.554 MB / 359.8 MB, free: 2.645 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000562/0.06424, allocations: 252.8 kB / 360.1 MB, free: 2.363 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001945/0.06618, allocations: 1.5 MB / 361.6 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00114/0.06732, allocations: 0.7551 MB / 362.3 MB, free: 104 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001958/0.06752, allocations: 72 kB / 362.4 MB, free: 32 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003208/0.07073, allocations: 1.198 MB / 363.6 MB, free: 14.83 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000322/0.07105, allocations: 313.7 kB / 363.9 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009435/0.07199, allocations: 0.7009 MB / 364.6 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004865/0.07686, allocations: 3.62 MB / 368.2 MB, free: 10.19 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.07686, allocations: 0 / 368.2 MB, free: 10.19 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.07686, allocations: 4 kB / 368.2 MB, free: 10.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.882e-05/0.07689, allocations: 0 / 368.2 MB, free: 10.18 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.005667/0.08256, allocations: 3.516 MB / 371.7 MB, free: 6.613 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.0826, allocations: 12.92 kB / 371.7 MB, free: 6.602 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004749/0.08307, allocations: 393.5 kB / 372.1 MB, free: 6.215 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003767/0.08684, allocations: 2.351 MB / 374.5 MB, free: 3.766 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.364e-05/0.08688, allocations: 36.98 kB / 374.5 MB, free: 3.727 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001269/0.08701, allocations: 55.89 kB / 374.6 MB, free: 3.672 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00146/0.08847, allocations: 0.6992 MB / 375.3 MB, free: 2.965 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.08849, allocations: 0 / 375.3 MB, free: 2.965 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.593e-05/0.08856, allocations: 24 kB / 375.3 MB, free: 2.941 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.443e-05/0.08859, allocations: 23.92 kB / 375.3 MB, free: 2.918 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001637/0.09022, allocations: 0.7851 MB / 376.1 MB, free: 2.133 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004841/0.09506, allocations: 2.572 MB / 378.7 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001318/0.09638, allocations: 0.5714 MB / 379.2 MB, free: 14.94 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001062/0.09744, allocations: 0.5849 MB / 379.8 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02502/0.1225, allocations: 13.65 MB / 393.5 MB, free: 328 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008954/0.1234, allocations: 365.8 kB / 393.8 MB, free: 15.95 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 3.176e-06/0.1234, allocations: 8 kB / 393.9 MB, free: 15.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.003356/0.1267, allocations: 1.312 MB / 395.2 MB, free: 14.62 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.049e-05/0.1268, allocations: 63.39 kB / 395.2 MB, free: 14.54 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003441/0.1302, allocations: 2.798 MB / 398 MB, free: 11.72 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.885e-05/0.1303, allocations: 33.7 kB / 398.1 MB, free: 11.68 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001309/0.1316, allocations: 1.396 MB / 399.5 MB, free: 10.28 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001601/0.1317, allocations: 170.6 kB / 399.6 MB, free: 10.11 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003067/0.132, allocations: 230.3 kB / 399.8 MB, free: 9.883 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.1322, allocations: 341.9 kB / 400.2 MB, free: 9.543 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006063/0.1328, allocations: 237.9 kB / 400.4 MB, free: 9.309 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008891/0.1337, allocations: 0.585 MB / 401 MB, free: 8.555 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00158/0.1353, allocations: 0.8889 MB / 401.9 MB, free: 7.496 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.634e-06/0.1353, allocations: 4 kB / 401.9 MB, free: 7.492 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002304/0.1376, allocations: 1.282 MB / 403.2 MB, free: 6.195 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.145e-05/0.1376, allocations: 11.12 kB / 403.2 MB, free: 6.188 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00011/0.1377, allocations: 80 kB / 403.3 MB, free: 6.109 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000586/0.1383, allocations: 277.5 kB / 403.5 MB, free: 5.836 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007189/0.139, allocations: 167.7 kB / 403.7 MB, free: 5.672 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001078/0.1401, allocations: 0.8841 MB / 404.6 MB, free: 4.762 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008978/0.141, allocations: 111.3 kB / 404.7 MB, free: 4.652 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000108/0.1411, allocations: 60 kB / 404.7 MB, free: 4.594 MB / 366.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.0006734/0.1418, allocations: 422.2 kB / 405.2 MB, free: 4.172 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000366/0.1421, allocations: 373.7 kB / 405.5 MB, free: 3.805 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002926/0.1451, allocations: 1.271 MB / 406.8 MB, free: 2.523 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.227e-06/0.1451, allocations: 4 kB / 406.8 MB, free: 2.52 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.1451, allocations: 0 / 406.8 MB, free: 2.52 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.1451, allocations: 3.984 kB / 406.8 MB, free: 2.516 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003628/0.1487, allocations: 2.026 MB / 408.8 MB, free: 436 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001016/0.1488, allocations: 72 kB / 408.9 MB, free: 364 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003343/0.1492, allocations: 63.88 kB / 409 MB, free: 300 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005052/0.1497, allocations: 268.2 kB / 409.2 MB, free: 32 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.599e-05/0.1497, allocations: 36.06 kB / 409.3 MB, free: 15.99 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001002/0.1507, allocations: 0.8686 MB / 410.1 MB, free: 15.1 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.1507, allocations: 4.031 kB / 410.1 MB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002028/0.1528, allocations: 1.128 MB / 411.3 MB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007104/0.1535, allocations: 415.2 kB / 411.7 MB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002893/0.1538, allocations: 8 kB / 411.7 MB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007052/0.1545, allocations: 27.95 kB / 411.7 MB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001712/0.1546, allocations: 67.88 kB / 411.8 MB, free: 13.42 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.867e-05/0.1547, allocations: 43.92 kB / 411.8 MB, free: 13.38 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002373/0.1571, allocations: 1.803 MB / 413.6 MB, free: 11.57 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1571, allocations: 0 / 413.6 MB, free: 11.57 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001314/0.1584, allocations: 0.5735 MB / 414.2 MB, free: 10.99 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.001274/0.1597, allocations: 0.8156 MB / 415 MB, free: 10.17 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001852/0.1615, allocations: 0.8192 MB / 415.8 MB, free: 9.332 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.1615, allocations: 0 / 415.8 MB, free: 9.332 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009629/0.1625, allocations: 476.1 kB / 416.3 MB, free: 8.844 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002368/0.1649, allocations: 0.5915 MB / 416.9 MB, free: 8.246 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005448/0.1703, allocations: 3.936 MB / 420.8 MB, free: 4.258 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001012/0.1713, allocations: 1.045 MB / 421.9 MB, free: 3.184 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009421/0.1723, allocations: 394.8 kB / 422.2 MB, free: 2.793 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002415/0.1725, allocations: 156.5 kB / 422.4 MB, free: 2.641 MB / 382.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1725, allocations: 0 / 422.4 MB, free: 2.641 MB / 382.1 MB Notification: Performance of Templates: time 0.06265/0.2352, allocations: 32.24 MB / 454.6 MB, free: 2.883 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.445455174893141]