Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.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.001539/0.001539, allocations: 108.6 kB / 21.22 MB, free: 0.7305 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.001588/0.001588, allocations: 191.5 kB / 24.51 MB, free: 4.086 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.357/1.357, allocations: 225.6 MB / 253.3 MB, free: 13.02 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: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001487/0.001487, allocations: 51.86 kB / 371.2 MB, free: 9.852 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2492/0.2507, allocations: 52.2 MB / 423.4 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01622/0.2669, allocations: 14.24 MB / 437.7 MB, free: 288 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02523/0.2921, allocations: 20.38 MB / 458 MB, free: 11.83 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00235/0.2945, allocations: 189.8 kB / 458.2 MB, free: 11.64 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003336/0.2978, allocations: 1.138 MB / 459.4 MB, free: 10.5 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007544/0.3054, allocations: 2.343 MB / 461.7 MB, free: 8.137 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005014/0.3104, allocations: 1.461 MB / 463.2 MB, free: 6.672 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01081/0.3212, allocations: 6.454 MB / 469.6 MB, free: 204 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007251/0.3219, allocations: 249 kB / 469.9 MB, free: 15.92 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001904/0.3238, allocations: 1.136 MB / 471 MB, free: 14.78 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001683/0.3255, allocations: 1.083 MB / 472.1 MB, free: 13.69 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002045/0.3257, allocations: 76 kB / 472.1 MB, free: 13.62 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004265/0.33, allocations: 1.479 MB / 473.6 MB, free: 12.14 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004293/0.3304, allocations: 325.7 kB / 473.9 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002093/0.3325, allocations: 1.324 MB / 475.3 MB, free: 10.48 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006635/0.3391, allocations: 3.702 MB / 479 MB, free: 6.766 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.3391, allocations: 3.938 kB / 479 MB, free: 6.762 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.916e-06/0.3391, allocations: 0 / 479 MB, free: 6.762 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.794e-05/0.3392, allocations: 0 / 479 MB, free: 6.762 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: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.006134/0.3454, allocations: 3.606 MB / 482.6 MB, free: 3.102 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.3454, allocations: 12.03 kB / 482.6 MB, free: 3.09 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.558e-05/0.3454, allocations: 13 kB / 482.6 MB, free: 3.078 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001277/0.3455, allocations: 98.5 kB / 482.7 MB, free: 2.973 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004645/0.346, allocations: 401.5 kB / 483.1 MB, free: 2.578 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003795/0.3498, allocations: 2.382 MB / 485.5 MB, free: 96 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.245e-05/0.3498, allocations: 32.98 kB / 485.5 MB, free: 64 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001346/0.35, allocations: 51.95 kB / 485.6 MB, free: 12 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001566/0.3515, allocations: 0.7655 MB / 486.3 MB, free: 15.24 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.3516, allocations: 3.938 kB / 486.3 MB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.231e-05/0.3516, allocations: 16 kB / 486.3 MB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.779e-05/0.3517, allocations: 23.98 kB / 486.4 MB, free: 15.2 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001853/0.3535, allocations: 0.8553 MB / 487.2 MB, free: 14.34 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005248/0.3588, allocations: 2.915 MB / 490.1 MB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001745/0.3605, allocations: 0.7246 MB / 490.9 MB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001502/0.362, allocations: 0.8745 MB / 491.7 MB, free: 9.758 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02632/0.3883, allocations: 13.72 MB / 0.4936 GB, free: 11.65 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001262/0.3896, allocations: 0.5996 MB / 0.4942 GB, free: 11.04 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 2.665e-06/0.3896, allocations: 0 / 0.4942 GB, free: 11.04 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01248/0.4021, allocations: 4.521 MB / 0.4986 GB, free: 6.453 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.883e-05/0.4022, allocations: 72.39 kB / 0.4987 GB, free: 6.371 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003885/0.406, allocations: 2.692 MB / 0.5013 GB, free: 3.664 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00013/0.4062, allocations: 45.7 kB / 0.5014 GB, free: 3.613 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001344/0.4075, allocations: 1.3 MB / 0.5026 GB, free: 2.309 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000438/0.4079, allocations: 357 kB / 0.503 GB, free: 1.957 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004311/0.4084, allocations: 230.5 kB / 0.5032 GB, free: 1.727 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000191/0.4086, allocations: 345.9 kB / 0.5035 GB, free: 1.383 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001352/0.4099, allocations: 482 kB / 0.504 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001414/0.4113, allocations: 0.6509 MB / 0.5046 GB, free: 196 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002755/0.4141, allocations: 1.122 MB / 0.5057 GB, free: 15.01 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.312e-06/0.4141, allocations: 4 kB / 0.5057 GB, free: 15 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004338/0.4184, allocations: 1.838 MB / 0.5075 GB, free: 13.12 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.724e-05/0.4185, allocations: 4 kB / 0.5075 GB, free: 13.12 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001893/0.4187, allocations: 124 kB / 0.5076 GB, free: 13 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007427/0.4194, allocations: 264.8 kB / 0.5079 GB, free: 12.71 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008695/0.4203, allocations: 195.7 kB / 0.5081 GB, free: 12.52 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01037/0.4306, allocations: 13.22 MB / 0.521 GB, free: 14.16 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001502/0.4321, allocations: 91.95 kB / 0.5211 GB, free: 14.07 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001489/0.4323, allocations: 56 kB / 0.5211 GB, free: 14.01 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 21 (v.counter,$PRE.v.counter,vin2.counter,$PRE.vin2.counter,vin1.counter,$PRE.vin1.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008903/0.4332, allocations: 433.5 kB / 0.5215 GB, free: 13.58 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004833/0.4337, allocations: 381.6 kB / 0.5219 GB, free: 13.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004961/0.4386, allocations: 2.06 MB / 0.5239 GB, free: 11.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.264e-05/0.4386, allocations: 8 kB / 0.5239 GB, free: 11.09 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.033e-05/0.4386, allocations: 7.984 kB / 0.5239 GB, free: 11.08 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.104e-05/0.4387, allocations: 7.984 kB / 0.5239 GB, free: 11.07 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002057/0.4407, allocations: 1.526 MB / 0.5254 GB, free: 9.504 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000157/0.4409, allocations: 116 kB / 0.5255 GB, free: 9.391 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007244/0.4416, allocations: 135.8 kB / 0.5257 GB, free: 9.258 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006757/0.4423, allocations: 268.3 kB / 0.5259 GB, free: 8.965 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001039/0.4424, allocations: 43.98 kB / 0.526 GB, free: 8.922 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01039/0.4528, allocations: 13.22 MB / 0.5389 GB, free: 10.55 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.4528, allocations: 0 / 0.5389 GB, free: 10.55 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005789/0.4586, allocations: 2.41 MB / 0.5412 GB, free: 8.094 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001107/0.4597, allocations: 431.3 kB / 0.5416 GB, free: 7.672 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003338/0.46, allocations: 19.98 kB / 0.5416 GB, free: 7.652 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009753/0.461, allocations: 83.89 kB / 0.5417 GB, free: 7.57 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003813/0.4614, allocations: 148.7 kB / 0.5419 GB, free: 7.426 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001125/0.4615, allocations: 51.92 kB / 0.5419 GB, free: 7.375 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002591/0.4641, allocations: 1.77 MB / 0.5436 GB, free: 5.598 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4641, allocations: 0 / 0.5436 GB, free: 5.598 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001635/0.4657, allocations: 0.6518 MB / 0.5443 GB, free: 4.945 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (mp1.Dinternal,mp1.Sinternal,mp2.Dinternal,mp2.Sinternal,mn1.Dinternal,mn1.Sinternal,mn2.Dinternal,mn2.Sinternal) * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 6 (vin1.counter,vin2.counter,v.counter,vin1.counter2,vin2.counter2,v.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 9 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006905/0.4726, allocations: 3.689 MB / 0.5479 GB, free: 1.199 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.1901/0.6627, allocations: 2.434 MB / 0.5503 GB, free: 123.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.19e-06/0.6628, allocations: 0 / 0.5503 GB, free: 123.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002748/0.6655, allocations: 1.909 MB / 0.5521 GB, free: 122.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002521/0.668, allocations: 0.6134 MB / 0.5527 GB, free: 122.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02361/0.6916, allocations: 17.91 MB / 0.5702 GB, free: 113.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007424/0.6924, allocations: 1.666 MB / 0.5719 GB, free: 111.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001105/0.6935, allocations: 391.1 kB / 0.5722 GB, free: 111.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008494/0.6943, allocations: 1.194 MB / 0.5734 GB, free: 110.2 MB / 462.1 MB Notification: Performance of SimCode: time 8.82e-07/0.6943, allocations: 0 / 0.5734 GB, free: 110.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1197/0.8141, allocations: 67.67 MB / 0.6395 GB, free: 43.05 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.41/19.22, allocations: 10.25 kB / 0.6395 GB, free: 43.04 MB / 462.1 MB " [Timeout remaining time 641] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --stepSize=0.000997606 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 23.39201289700577]