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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001933/0.001933, allocations: 83.69 kB / 22 MB, free: 5.18 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001728/0.001728, allocations: 161.8 kB / 25.25 MB, free: 3.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.305/1.305, allocations: 158.6 MB / 187 MB, free: 6.477 MB / 174.1 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.Nand") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001763/0.001763, allocations: 59.92 kB / 299.4 MB, free: 8.801 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2006/0.2024, allocations: 49.15 MB / 348.5 MB, free: 15.47 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01285/0.2153, allocations: 11.27 MB / 359.8 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02194/0.2372, allocations: 16.69 MB / 376.5 MB, free: 5.152 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002323/0.2395, allocations: 197.8 kB / 376.7 MB, free: 4.957 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0028/0.2423, allocations: 0.9995 MB / 377.7 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007335/0.2497, allocations: 2.281 MB / 379.9 MB, free: 1.664 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004199/0.2539, allocations: 1.348 MB / 381.3 MB, free: 316 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01031/0.2642, allocations: 6.267 MB / 387.5 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005478/0.2647, allocations: 241 kB / 387.8 MB, free: 9.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001346/0.2661, allocations: 1.019 MB / 388.8 MB, free: 8.727 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001378/0.2674, allocations: 0.9857 MB / 389.8 MB, free: 7.734 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001909/0.2676, allocations: 68 kB / 389.9 MB, free: 7.668 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002934/0.2706, allocations: 1.078 MB / 390.9 MB, free: 6.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003368/0.2709, allocations: 313.7 kB / 391.2 MB, free: 6.281 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001112/0.272, allocations: 0.9624 MB / 392.2 MB, free: 5.312 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004765/0.2768, allocations: 3.714 MB / 395.9 MB, free: 1.582 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.2768, allocations: 0 / 395.9 MB, free: 1.582 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2768, allocations: 4 kB / 395.9 MB, free: 1.578 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.834e-05/0.2768, allocations: 4 kB / 395.9 MB, free: 1.574 MB / 350.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.005369/0.2822, allocations: 3.578 MB / 399.5 MB, free: 13.93 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.2822, allocations: 8.031 kB / 399.5 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004535/0.2827, allocations: 397.5 kB / 399.9 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003895/0.2866, allocations: 2.371 MB / 402.3 MB, free: 11.07 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.358e-05/0.2866, allocations: 32.94 kB / 402.3 MB, free: 11.04 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001341/0.2867, allocations: 55.94 kB / 402.4 MB, free: 10.98 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001414/0.2881, allocations: 0.7069 MB / 403.1 MB, free: 10.27 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.537e-05/0.2882, allocations: 4 kB / 403.1 MB, free: 10.26 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.747e-05/0.2882, allocations: 16 kB / 403.1 MB, free: 10.25 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.201e-05/0.2883, allocations: 19.98 kB / 403.1 MB, free: 10.23 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00166/0.2899, allocations: 0.789 MB / 403.9 MB, free: 9.434 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004903/0.2948, allocations: 2.603 MB / 406.5 MB, free: 6.797 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001353/0.2962, allocations: 0.5518 MB / 407 MB, free: 6.23 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001061/0.2972, allocations: 0.5772 MB / 407.6 MB, free: 5.652 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02587/0.3231, allocations: 13.72 MB / 421.3 MB, free: 7.543 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008088/0.3239, allocations: 369.8 kB / 421.7 MB, free: 7.172 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.515e-06/0.3239, allocations: 0 / 421.7 MB, free: 7.172 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.003404/0.3273, allocations: 1.32 MB / 423 MB, free: 5.84 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.739e-05/0.3274, allocations: 55.41 kB / 423.1 MB, free: 5.773 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00354/0.3309, allocations: 2.819 MB / 425.9 MB, free: 2.934 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.233e-05/0.331, allocations: 37.7 kB / 425.9 MB, free: 2.891 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001366/0.3323, allocations: 1.4 MB / 427.3 MB, free: 1.484 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001703/0.3325, allocations: 178.6 kB / 427.5 MB, free: 1.309 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003067/0.3328, allocations: 226.3 kB / 427.7 MB, free: 1.082 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001762/0.333, allocations: 345.9 kB / 428.1 MB, free: 0.7383 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006194/0.3336, allocations: 237.9 kB / 428.3 MB, free: 0.5078 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009244/0.3345, allocations: 0.5888 MB / 428.9 MB, free: 15.75 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001609/0.3361, allocations: 0.8812 MB / 429.8 MB, free: 14.7 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.015e-06/0.3361, allocations: 7.938 kB / 429.8 MB, free: 14.69 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002401/0.3385, allocations: 1.282 MB / 431.1 MB, free: 13.39 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.365e-05/0.3386, allocations: 13 kB / 431.1 MB, free: 13.38 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001314/0.3387, allocations: 80 kB / 431.1 MB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005651/0.3393, allocations: 272.7 kB / 431.4 MB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006081/0.3399, allocations: 175.6 kB / 431.6 MB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001046/0.3409, allocations: 0.8841 MB / 432.5 MB, free: 11.95 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009347/0.3419, allocations: 115.2 kB / 432.6 MB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001152/0.342, allocations: 60 kB / 432.6 MB, free: 11.78 MB / 398.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.0007557/0.3427, allocations: 421.5 kB / 433.1 MB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004059/0.3431, allocations: 385.7 kB / 433.4 MB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002917/0.346, allocations: 1.275 MB / 434.7 MB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.205e-06/0.3461, allocations: 4 kB / 434.7 MB, free: 9.691 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.3461, allocations: 0 / 434.7 MB, free: 9.691 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.3461, allocations: 3.984 kB / 434.7 MB, free: 9.688 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003663/0.3497, allocations: 2.034 MB / 436.7 MB, free: 7.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001109/0.3498, allocations: 84.11 kB / 436.8 MB, free: 7.508 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003346/0.3502, allocations: 59.89 kB / 436.9 MB, free: 7.449 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005051/0.3507, allocations: 268.7 kB / 437.1 MB, free: 7.184 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.751e-05/0.3507, allocations: 32 kB / 437.2 MB, free: 7.152 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009775/0.3517, allocations: 0.8608 MB / 438 MB, free: 6.266 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.3517, allocations: 4.031 kB / 438 MB, free: 6.262 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001941/0.3537, allocations: 1.144 MB / 439.2 MB, free: 5.078 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007157/0.3544, allocations: 399.3 kB / 439.6 MB, free: 4.688 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002557/0.3546, allocations: 19.98 kB / 439.6 MB, free: 4.668 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006414/0.3553, allocations: 31.91 kB / 439.6 MB, free: 4.637 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001703/0.3554, allocations: 63.92 kB / 439.7 MB, free: 4.574 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.232e-05/0.3555, allocations: 36 kB / 439.7 MB, free: 4.539 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002358/0.3579, allocations: 1.816 MB / 441.5 MB, free: 2.719 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3579, allocations: 0 / 441.5 MB, free: 2.719 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001301/0.3592, allocations: 0.5735 MB / 442.1 MB, free: 2.145 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.001113/0.3603, allocations: 0.7883 MB / 442.9 MB, free: 1.348 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001811/0.3621, allocations: 0.8142 MB / 443.7 MB, free: 0.5117 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.3621, allocations: 4 kB / 443.7 MB, free: 0.5078 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009775/0.3631, allocations: 476.5 kB / 444.2 MB, free: 20 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001624/0.3647, allocations: 0.5054 MB / 444.7 MB, free: 15.51 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00547/0.3702, allocations: 3.999 MB / 448.7 MB, free: 11.45 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001096/0.3713, allocations: 1.061 MB / 449.8 MB, free: 10.36 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000973/0.3722, allocations: 390.9 kB / 450.1 MB, free: 9.969 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000232/0.3725, allocations: 160.5 kB / 450.3 MB, free: 9.812 MB / 414.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3725, allocations: 0 / 450.3 MB, free: 9.812 MB / 414.1 MB Notification: Performance of Templates: time 0.05883/0.4313, allocations: 32.65 MB / 482.9 MB, free: 9.074 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.makefile [Timeout 660] (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 -s ida -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.432837544940412]