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.001342/0.001342, allocations: 100 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.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.001455/0.001455, allocations: 184.9 kB / 24.45 MB, free: 3.961 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.405/1.405, allocations: 225.7 MB / 253.3 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001654/0.001654, allocations: 47.92 kB / 371.6 MB, free: 9.203 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2839/0.2855, allocations: 52.17 MB / 423.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01449/0.3, allocations: 11.83 MB / 435.6 MB, free: 2.594 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02518/0.3252, allocations: 17.49 MB / 453.1 MB, free: 1.035 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002553/0.3278, allocations: 189.9 kB / 453.3 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003257/0.331, allocations: 1.027 MB / 454.3 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007474/0.3385, allocations: 2.308 MB / 456.7 MB, free: 13.49 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004596/0.3431, allocations: 1.398 MB / 458.1 MB, free: 12.09 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01142/0.3545, allocations: 6.392 MB / 464.4 MB, free: 5.68 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008304/0.3553, allocations: 248.9 kB / 464.7 MB, free: 5.402 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002096/0.3574, allocations: 1.108 MB / 465.8 MB, free: 4.289 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001503/0.3589, allocations: 1.013 MB / 466.8 MB, free: 3.27 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002044/0.3591, allocations: 68 kB / 466.9 MB, free: 3.203 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003536/0.3627, allocations: 1.198 MB / 468.1 MB, free: 2.004 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003446/0.363, allocations: 309.7 kB / 468.4 MB, free: 1.699 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001212/0.3642, allocations: 0.9586 MB / 469.3 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005647/0.3699, allocations: 3.683 MB / 473 MB, free: 13.04 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.096e-06/0.3699, allocations: 0 / 473 MB, free: 13.04 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3699, allocations: 4 kB / 473 MB, free: 13.03 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001048/0.37, allocations: 0 / 473 MB, free: 13.03 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.006045/0.376, allocations: 3.551 MB / 476.6 MB, free: 9.426 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.3761, allocations: 8.031 kB / 476.6 MB, free: 9.418 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005079/0.3766, allocations: 393.5 kB / 477 MB, free: 9.031 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004126/0.3807, allocations: 2.359 MB / 479.3 MB, free: 6.574 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.395e-05/0.3808, allocations: 37 kB / 479.4 MB, free: 6.535 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000127/0.3809, allocations: 47.95 kB / 479.4 MB, free: 6.488 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00141/0.3823, allocations: 0.703 MB / 480.1 MB, free: 5.781 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.516e-05/0.3823, allocations: 4 kB / 480.1 MB, free: 5.777 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.608e-05/0.3824, allocations: 20 kB / 480.1 MB, free: 5.758 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.403e-05/0.3824, allocations: 19.98 kB / 480.1 MB, free: 5.738 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001574/0.384, allocations: 0.7928 MB / 480.9 MB, free: 4.945 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005283/0.3893, allocations: 2.58 MB / 483.5 MB, free: 2.328 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001292/0.3906, allocations: 0.5636 MB / 484.1 MB, free: 1.754 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001031/0.3916, allocations: 0.585 MB / 484.7 MB, free: 1.164 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0263/0.4179, allocations: 13.66 MB / 498.3 MB, free: 3.121 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008049/0.4187, allocations: 365.6 kB / 498.7 MB, free: 2.754 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 2.595e-06/0.4187, allocations: 0 / 498.7 MB, free: 2.754 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.003332/0.422, allocations: 1.318 MB / 0.4883 GB, free: 1.422 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.869e-05/0.4221, allocations: 63.41 kB / 0.4883 GB, free: 1.348 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00359/0.4257, allocations: 2.802 MB / 0.4911 GB, free: 14.52 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.688e-05/0.4257, allocations: 33.7 kB / 0.4911 GB, free: 14.48 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001324/0.4271, allocations: 1.396 MB / 0.4925 GB, free: 13.08 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001702/0.4272, allocations: 170.6 kB / 0.4926 GB, free: 12.91 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003125/0.4275, allocations: 230.3 kB / 0.4929 GB, free: 12.68 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001707/0.4277, allocations: 342 kB / 0.4932 GB, free: 12.34 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005902/0.4283, allocations: 233.8 kB / 0.4934 GB, free: 12.11 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008987/0.4292, allocations: 0.5927 MB / 0.494 GB, free: 11.36 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001521/0.4307, allocations: 0.8763 MB / 0.4948 GB, free: 10.31 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.888e-06/0.4307, allocations: 4 kB / 0.4948 GB, free: 10.3 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002394/0.4331, allocations: 1.285 MB / 0.4961 GB, free: 9.008 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.523e-05/0.4332, allocations: 9 kB / 0.4961 GB, free: 9 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001176/0.4333, allocations: 83.98 kB / 0.4962 GB, free: 8.918 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005899/0.4339, allocations: 282.4 kB / 0.4965 GB, free: 8.641 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00058/0.4344, allocations: 167.7 kB / 0.4966 GB, free: 8.477 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001046/0.4355, allocations: 0.888 MB / 0.4975 GB, free: 7.562 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009894/0.4365, allocations: 111.3 kB / 0.4976 GB, free: 7.453 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000108/0.4366, allocations: 64 kB / 0.4977 GB, free: 7.391 MB / 414.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.0007433/0.4373, allocations: 417.5 kB / 0.4981 GB, free: 6.973 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004117/0.4377, allocations: 389.5 kB / 0.4984 GB, free: 6.59 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002768/0.4405, allocations: 1.259 MB / 0.4997 GB, free: 5.32 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.596e-06/0.4405, allocations: 4 kB / 0.4997 GB, free: 5.316 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.4405, allocations: 0 / 0.4997 GB, free: 5.316 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.4405, allocations: 4 kB / 0.4997 GB, free: 5.312 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00379/0.4443, allocations: 2.025 MB / 0.5016 GB, free: 3.227 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001071/0.4444, allocations: 75.94 kB / 0.5017 GB, free: 3.152 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003117/0.4447, allocations: 60.06 kB / 0.5018 GB, free: 3.094 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000488/0.4452, allocations: 266.2 kB / 0.502 GB, free: 2.832 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.874e-05/0.4453, allocations: 28 kB / 0.502 GB, free: 2.805 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009885/0.4463, allocations: 0.8647 MB / 0.5029 GB, free: 1.914 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.4463, allocations: 4.031 kB / 0.5029 GB, free: 1.91 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002007/0.4483, allocations: 1.131 MB / 0.504 GB, free: 0.7422 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009239/0.4492, allocations: 407.3 kB / 0.5044 GB, free: 348 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002733/0.4495, allocations: 11.94 kB / 0.5044 GB, free: 336 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006428/0.4501, allocations: 27.97 kB / 0.5044 GB, free: 308 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001641/0.4503, allocations: 67.86 kB / 0.5045 GB, free: 240 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.827e-05/0.4504, allocations: 39.94 kB / 0.5045 GB, free: 200 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002582/0.4529, allocations: 1.811 MB / 0.5063 GB, free: 14.38 MB / 430.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.4529, allocations: 0 / 0.5063 GB, free: 14.38 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001356/0.4543, allocations: 0.5735 MB / 0.5069 GB, free: 13.8 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.001168/0.4555, allocations: 0.7695 MB / 0.5076 GB, free: 13.03 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001864/0.4573, allocations: 0.8264 MB / 0.5084 GB, free: 12.18 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.4573, allocations: 0 / 0.5084 GB, free: 12.18 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000946/0.4583, allocations: 472.5 kB / 0.5089 GB, free: 11.7 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002369/0.4607, allocations: 0.599 MB / 0.5095 GB, free: 11.09 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005865/0.4665, allocations: 4.05 MB / 0.5134 GB, free: 6.984 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00103/0.4675, allocations: 1.045 MB / 0.5144 GB, free: 5.91 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002822/0.4678, allocations: 163.4 kB / 0.5146 GB, free: 5.75 MB / 430.1 MB Notification: Performance of SimCode: time 8.72e-07/0.4678, allocations: 0 / 0.5146 GB, free: 5.75 MB / 430.1 MB Notification: Performance of Templates: time 0.2395/0.7074, allocations: 49.4 MB / 0.5628 GB, free: 90.01 MB / 446.1 MB " [Timeout remaining time 659] 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins1/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: 10.998263841029257]