Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.007718/0.007718, allocations: 107.1 kB / 21.98 MB, free: 5.223 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.002208/0.002208, allocations: 216.6 kB / 25.29 MB, free: 3.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.457/1.457, allocations: 230.6 MB / 259 MB, free: 8.039 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-beta.om/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_4.1.0-beta.om_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-beta.om_Modelica.Electrical.Spice3.Examples.Nand") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00202/0.00202, allocations: 67.88 kB / 379.8 MB, free: 2.672 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2766/0.2786, allocations: 53.36 MB / 433.1 MB, free: 6.973 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01493/0.2936, allocations: 14.08 MB / 447.2 MB, free: 8.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02706/0.3206, allocations: 20.38 MB / 467.6 MB, free: 4.379 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003148/0.3238, allocations: 185.9 kB / 467.8 MB, free: 4.195 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003759/0.3275, allocations: 1.134 MB / 468.9 MB, free: 3.059 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00833/0.3358, allocations: 2.319 MB / 471.2 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005062/0.3409, allocations: 1.449 MB / 472.7 MB, free: 15.27 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0114/0.3523, allocations: 6.474 MB / 479.2 MB, free: 8.777 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007595/0.3531, allocations: 253 kB / 479.4 MB, free: 8.496 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001932/0.355, allocations: 1.108 MB / 480.5 MB, free: 7.383 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001557/0.3566, allocations: 1.052 MB / 481.6 MB, free: 6.324 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001989/0.3568, allocations: 68 kB / 481.6 MB, free: 6.258 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004707/0.3615, allocations: 1.483 MB / 483.1 MB, free: 4.773 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005326/0.362, allocations: 309.7 kB / 483.4 MB, free: 4.469 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001889/0.3639, allocations: 1.3 MB / 484.7 MB, free: 3.16 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00724/0.3711, allocations: 3.651 MB / 488.4 MB, free: 15.49 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.918e-06/0.3711, allocations: 11.94 kB / 488.4 MB, free: 15.48 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.766e-06/0.3711, allocations: 0 / 488.4 MB, free: 15.48 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001178/0.3713, allocations: 0 / 488.4 MB, free: 15.48 MB / 398.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.006316/0.3776, allocations: 3.543 MB / 491.9 MB, free: 11.88 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.217e-05/0.3776, allocations: 16.02 kB / 491.9 MB, free: 11.87 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005589/0.3782, allocations: 393.6 kB / 492.3 MB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004557/0.3827, allocations: 2.351 MB / 494.7 MB, free: 9.031 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.157e-05/0.3828, allocations: 29 kB / 494.7 MB, free: 9 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001582/0.3829, allocations: 59.88 kB / 494.8 MB, free: 8.941 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001465/0.3844, allocations: 0.707 MB / 495.5 MB, free: 8.23 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2e-05/0.3844, allocations: 4 kB / 495.5 MB, free: 8.227 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.455e-05/0.3845, allocations: 16 kB / 495.5 MB, free: 8.211 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.555e-05/0.3845, allocations: 19.98 kB / 495.5 MB, free: 8.191 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001665/0.3862, allocations: 0.7968 MB / 496.3 MB, free: 7.395 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005745/0.3919, allocations: 2.82 MB / 499.1 MB, free: 4.523 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001325/0.3932, allocations: 0.5635 MB / 499.7 MB, free: 3.953 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001139/0.3944, allocations: 0.5809 MB / 0.4886 GB, free: 3.367 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02635/0.4207, allocations: 13.76 MB / 0.502 GB, free: 5.219 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008039/0.4215, allocations: 369.5 kB / 0.5023 GB, free: 4.848 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.975e-06/0.4215, allocations: 0 / 0.5023 GB, free: 4.848 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003325/0.4249, allocations: 1.318 MB / 0.5036 GB, free: 3.516 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.984e-05/0.4249, allocations: 67.34 kB / 0.5037 GB, free: 3.438 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003834/0.4288, allocations: 2.796 MB / 0.5064 GB, free: 0.6211 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.506e-05/0.4289, allocations: 33.7 kB / 0.5065 GB, free: 0.582 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001359/0.4302, allocations: 1.4 MB / 0.5078 GB, free: 15.18 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001947/0.4304, allocations: 174.6 kB / 0.508 GB, free: 15 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003145/0.4307, allocations: 222.4 kB / 0.5082 GB, free: 14.78 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001792/0.4309, allocations: 341.9 kB / 0.5085 GB, free: 14.44 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006028/0.4315, allocations: 233.9 kB / 0.5088 GB, free: 14.21 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008646/0.4324, allocations: 0.5888 MB / 0.5093 GB, free: 13.46 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001524/0.4339, allocations: 0.8841 MB / 0.5102 GB, free: 12.4 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.737e-06/0.4339, allocations: 4 kB / 0.5102 GB, free: 12.4 MB / 430.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002442/0.4363, allocations: 1.285 MB / 0.5114 GB, free: 11.11 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.562e-05/0.4364, allocations: 10.81 kB / 0.5115 GB, free: 11.1 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001366/0.4365, allocations: 80 kB / 0.5115 GB, free: 11.02 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005838/0.4371, allocations: 285 kB / 0.5118 GB, free: 10.74 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005651/0.4377, allocations: 163.7 kB / 0.512 GB, free: 10.58 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001059/0.4387, allocations: 0.8899 MB / 0.5128 GB, free: 9.664 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00106/0.4398, allocations: 115.2 kB / 0.5129 GB, free: 9.551 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001264/0.4399, allocations: 64 kB / 0.513 GB, free: 9.488 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.0008081/0.4407, allocations: 425.4 kB / 0.5134 GB, free: 9.062 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004405/0.4411, allocations: 377.6 kB / 0.5138 GB, free: 8.691 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002803/0.444, allocations: 1.259 MB / 0.515 GB, free: 7.418 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.785e-06/0.444, allocations: 4 kB / 0.515 GB, free: 7.414 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.444, allocations: 0 / 0.515 GB, free: 7.414 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.444, allocations: 11.92 kB / 0.515 GB, free: 7.402 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003839/0.4478, allocations: 2.153 MB / 0.5171 GB, free: 5.176 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001137/0.4479, allocations: 68 kB / 0.5172 GB, free: 5.109 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003023/0.4482, allocations: 67.94 kB / 0.5172 GB, free: 5.043 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005052/0.4487, allocations: 260.8 kB / 0.5175 GB, free: 4.785 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.187e-05/0.4488, allocations: 35.98 kB / 0.5175 GB, free: 4.75 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001004/0.4498, allocations: 0.8637 MB / 0.5184 GB, free: 3.863 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.4498, allocations: 0 / 0.5184 GB, free: 3.863 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00203/0.4518, allocations: 1.139 MB / 0.5195 GB, free: 2.684 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000851/0.4527, allocations: 419.2 kB / 0.5199 GB, free: 2.27 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002717/0.453, allocations: 8 kB / 0.5199 GB, free: 2.262 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006591/0.4536, allocations: 35.95 kB / 0.5199 GB, free: 2.227 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001681/0.4538, allocations: 63.94 kB / 0.52 GB, free: 2.164 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.603e-05/0.4539, allocations: 39.98 kB / 0.52 GB, free: 2.125 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002725/0.4566, allocations: 1.82 MB / 0.5218 GB, free: 308 kB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4566, allocations: 7.875 kB / 0.5218 GB, free: 300 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.001495/0.4581, allocations: 0.5619 MB / 0.5224 GB, free: 15.73 MB / 446.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.001247/0.4593, allocations: 0.7758 MB / 0.5231 GB, free: 14.95 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001953/0.4613, allocations: 0.8181 MB / 0.5239 GB, free: 14.11 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.4613, allocations: 0 / 0.5239 GB, free: 14.11 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009647/0.4622, allocations: 480.7 kB / 0.5244 GB, free: 13.62 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002471/0.4647, allocations: 0.599 MB / 0.525 GB, free: 13.01 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006486/0.4712, allocations: 4.043 MB / 0.5289 GB, free: 8.91 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001313/0.4725, allocations: 1.6 MB / 0.5305 GB, free: 7.281 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004009/0.4729, allocations: 171.4 kB / 0.5306 GB, free: 7.113 MB / 446.1 MB Notification: Performance of SimCode: time 1.402e-06/0.4729, allocations: 0 / 0.5306 GB, free: 7.113 MB / 446.1 MB Notification: Performance of Templates: time 0.2541/0.7271, allocations: 48.1 MB / 0.5776 GB, free: 70.93 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_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-beta.om_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: 11.245814161142334]