Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001771/0.001771, allocations: 107 kB / 21.18 MB, free: 0.6484 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.002223/0.002223, allocations: 209.5 kB / 24.48 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.448/1.448, allocations: 230.6 MB / 258.2 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Electrical.Spice3.Examples.Nand") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001527/0.001527, allocations: 55.92 kB / 379 MB, free: 2.422 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2226/0.2241, allocations: 53.36 MB / 432.3 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01309/0.2372, allocations: 11.82 MB / 444.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02259/0.2598, allocations: 17.53 MB / 461.7 MB, free: 9.191 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001618/0.2614, allocations: 193.8 kB / 461.9 MB, free: 9 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002507/0.2639, allocations: 1.035 MB / 462.9 MB, free: 7.965 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006237/0.2702, allocations: 2.304 MB / 465.2 MB, free: 5.641 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003795/0.274, allocations: 1.402 MB / 466.6 MB, free: 4.238 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009151/0.2831, allocations: 6.482 MB / 473.1 MB, free: 13.73 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004864/0.2836, allocations: 249 kB / 473.3 MB, free: 13.46 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001449/0.285, allocations: 1.12 MB / 474.5 MB, free: 12.34 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00119/0.2862, allocations: 1.052 MB / 475.5 MB, free: 11.28 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001733/0.2864, allocations: 68 kB / 475.6 MB, free: 11.21 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003115/0.2895, allocations: 1.233 MB / 476.8 MB, free: 9.977 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003117/0.2898, allocations: 313.7 kB / 477.1 MB, free: 9.668 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009889/0.2908, allocations: 0.9546 MB / 478.1 MB, free: 8.707 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004292/0.2951, allocations: 3.683 MB / 481.7 MB, free: 5.008 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/0.2951, allocations: 0 / 481.7 MB, free: 5.008 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2951, allocations: 0 / 481.7 MB, free: 5.008 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.096e-05/0.2951, allocations: 0 / 481.7 MB, free: 5.008 MB / 382.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.005287/0.3004, allocations: 3.555 MB / 485.3 MB, free: 1.398 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.413e-05/0.3005, allocations: 12.03 kB / 485.3 MB, free: 1.387 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004334/0.3009, allocations: 389.6 kB / 485.7 MB, free: 1.004 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003789/0.3047, allocations: 2.362 MB / 488.1 MB, free: 14.54 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.17e-05/0.3047, allocations: 37 kB / 488.1 MB, free: 14.5 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001284/0.3049, allocations: 40 kB / 488.1 MB, free: 14.46 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001379/0.3062, allocations: 0.7031 MB / 488.8 MB, free: 13.76 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.503e-05/0.3063, allocations: 4 kB / 488.8 MB, free: 13.75 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.198e-05/0.3063, allocations: 20 kB / 488.9 MB, free: 13.73 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.654e-05/0.3064, allocations: 23.98 kB / 488.9 MB, free: 13.71 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001581/0.3079, allocations: 0.785 MB / 489.7 MB, free: 12.93 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004786/0.3127, allocations: 2.58 MB / 492.2 MB, free: 10.31 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00123/0.3139, allocations: 0.5558 MB / 492.8 MB, free: 9.746 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001013/0.315, allocations: 0.5818 MB / 493.4 MB, free: 9.16 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02671/0.3417, allocations: 13.72 MB / 0.4952 GB, free: 11.05 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008145/0.3425, allocations: 353.7 kB / 0.4956 GB, free: 10.7 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.785e-06/0.3425, allocations: 4 kB / 0.4956 GB, free: 10.7 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003366/0.3459, allocations: 1.318 MB / 0.4968 GB, free: 9.363 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.329e-05/0.3459, allocations: 59.41 kB / 0.4969 GB, free: 9.293 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003527/0.3494, allocations: 2.79 MB / 0.4996 GB, free: 6.48 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.911e-05/0.3495, allocations: 37.7 kB / 0.4997 GB, free: 6.438 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001279/0.3508, allocations: 1.404 MB / 0.501 GB, free: 5.027 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001667/0.3509, allocations: 170.6 kB / 0.5012 GB, free: 4.859 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003134/0.3513, allocations: 230.3 kB / 0.5014 GB, free: 4.629 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.3514, allocations: 337.9 kB / 0.5017 GB, free: 4.293 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005981/0.352, allocations: 241.8 kB / 0.502 GB, free: 4.055 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008751/0.3529, allocations: 0.5889 MB / 0.5025 GB, free: 3.301 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001526/0.3544, allocations: 0.884 MB / 0.5034 GB, free: 2.246 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.165e-06/0.3544, allocations: 4 kB / 0.5034 GB, free: 2.242 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002343/0.3568, allocations: 1.281 MB / 0.5047 GB, free: 0.9531 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/0.3568, allocations: 8 kB / 0.5047 GB, free: 0.9453 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001148/0.3569, allocations: 83.98 kB / 0.5047 GB, free: 0.8633 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005818/0.3575, allocations: 273.5 kB / 0.505 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006455/0.3581, allocations: 171.7 kB / 0.5052 GB, free: 436 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001067/0.3592, allocations: 0.8871 MB / 0.506 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009136/0.3601, allocations: 107.3 kB / 0.5061 GB, free: 15.41 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000114/0.3602, allocations: 64 kB / 0.5062 GB, free: 15.35 MB / 430.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.0008079/0.361, allocations: 421.5 kB / 0.5066 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000401/0.3614, allocations: 381.6 kB / 0.507 GB, free: 14.55 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002872/0.3643, allocations: 1.251 MB / 0.5082 GB, free: 13.29 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.007e-05/0.3643, allocations: 7.984 kB / 0.5082 GB, free: 13.28 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.3643, allocations: 3.984 kB / 0.5082 GB, free: 13.27 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.3643, allocations: 0 / 0.5082 GB, free: 13.27 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003839/0.3682, allocations: 2.028 MB / 0.5102 GB, free: 11.19 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001099/0.3683, allocations: 71.98 kB / 0.5103 GB, free: 11.12 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003477/0.3686, allocations: 67.83 kB / 0.5103 GB, free: 11.05 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005227/0.3691, allocations: 264.8 kB / 0.5106 GB, free: 10.79 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.357e-05/0.3692, allocations: 32 kB / 0.5106 GB, free: 10.76 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009998/0.3702, allocations: 0.8607 MB / 0.5114 GB, free: 9.871 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.3702, allocations: 4.031 kB / 0.5114 GB, free: 9.867 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002087/0.3723, allocations: 1.146 MB / 0.5126 GB, free: 8.68 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009015/0.3732, allocations: 403.3 kB / 0.5129 GB, free: 8.281 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002906/0.3735, allocations: 23.92 kB / 0.513 GB, free: 8.258 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006585/0.3741, allocations: 23.97 kB / 0.513 GB, free: 8.234 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001588/0.3743, allocations: 67.92 kB / 0.5131 GB, free: 8.168 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.879e-05/0.3744, allocations: 36 kB / 0.5131 GB, free: 8.133 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002463/0.3768, allocations: 1.807 MB / 0.5149 GB, free: 6.32 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3768, allocations: 0 / 0.5149 GB, free: 6.32 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001337/0.3782, allocations: 0.5735 MB / 0.5154 GB, free: 5.746 MB / 430.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.001217/0.3794, allocations: 0.772 MB / 0.5162 GB, free: 4.965 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001855/0.3813, allocations: 0.8148 MB / 0.517 GB, free: 4.133 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.3813, allocations: 0 / 0.517 GB, free: 4.133 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009473/0.3822, allocations: 479.8 kB / 0.5174 GB, free: 3.641 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002206/0.3844, allocations: 0.5916 MB / 0.518 GB, free: 3.043 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005505/0.3899, allocations: 3.983 MB / 0.5219 GB, free: 15 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001009/0.3909, allocations: 1.048 MB / 0.5229 GB, free: 13.93 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001002/0.3919, allocations: 386.9 kB / 0.5233 GB, free: 13.54 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002443/0.3922, allocations: 159.4 kB / 0.5234 GB, free: 13.39 MB / 446.1 MB Notification: Performance of SimCode: time 9.61e-07/0.3922, allocations: 0 / 0.5234 GB, free: 13.39 MB / 446.1 MB Notification: Performance of Templates: time 0.2257/0.6179, allocations: 36.51 MB / 0.5591 GB, free: 91.41 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.671535732995835]