Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.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.001708/0.001708, allocations: 132.4 kB / 17.79 MB, free: 5.242 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.001968/0.001968, allocations: 210.5 kB / 20.75 MB, free: 2.293 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.477/1.477, allocations: 230.4 MB / 254 MB, free: 15.01 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002031/0.002031, allocations: 63.91 kB / 373 MB, free: 10.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1079, allocations: 53.38 MB / 426.3 MB, free: 4.625 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.2253/0.3332, allocations: 14.23 MB / 440.6 MB, free: 2.672 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02773/0.3609, allocations: 20.41 MB / 461 MB, free: 4.238 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004139/0.3651, allocations: 191.9 kB / 461.2 MB, free: 4.102 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004277/0.3693, allocations: 1.129 MB / 462.3 MB, free: 3.508 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01129/0.3806, allocations: 2.316 MB / 464.6 MB, free: 2.09 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006953/0.3876, allocations: 1.448 MB / 466.1 MB, free: 1.332 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01233/0.3999, allocations: 6.512 MB / 472.6 MB, free: 14.39 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007584/0.4007, allocations: 262.3 kB / 472.8 MB, free: 14.2 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002339/0.403, allocations: 1.132 MB / 474 MB, free: 13.67 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00211/0.4051, allocations: 1.079 MB / 475 MB, free: 13.04 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003653/0.4055, allocations: 73.94 kB / 475.1 MB, free: 13.04 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006004/0.4115, allocations: 1.485 MB / 476.6 MB, free: 12.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005928/0.4121, allocations: 320.3 kB / 476.9 MB, free: 12.16 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00213/0.4142, allocations: 1.32 MB / 478.2 MB, free: 11.29 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007569/0.4218, allocations: 3.712 MB / 481.9 MB, free: 8.836 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.4218, allocations: 0 / 481.9 MB, free: 8.836 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4218, allocations: 5.188 kB / 481.9 MB, free: 8.832 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.208e-05/0.4219, allocations: 0 / 481.9 MB, free: 8.832 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.006495/0.4284, allocations: 3.688 MB / 485.6 MB, free: 5.148 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.666e-05/0.4284, allocations: 12.02 kB / 485.6 MB, free: 5.137 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001442/0.4286, allocations: 98.52 kB / 485.7 MB, free: 5.031 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000534/0.4291, allocations: 398.1 kB / 486.1 MB, free: 4.641 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003948/0.433, allocations: 2.558 MB / 488.7 MB, free: 2.012 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.768e-05/0.4331, allocations: 29 kB / 488.7 MB, free: 1.984 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00014/0.4332, allocations: 51.94 kB / 488.8 MB, free: 1.934 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001635/0.4349, allocations: 0.7616 MB / 489.5 MB, free: 1.164 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.4349, allocations: 0 / 489.5 MB, free: 1.164 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.104e-05/0.4349, allocations: 19.98 kB / 489.6 MB, free: 1.145 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.672e-05/0.435, allocations: 20.5 kB / 489.6 MB, free: 1.125 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001945/0.4369, allocations: 0.8553 MB / 490.4 MB, free: 276 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00571/0.4426, allocations: 2.971 MB / 493.4 MB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001899/0.4445, allocations: 0.7174 MB / 494.1 MB, free: 12.5 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001586/0.4461, allocations: 0.8606 MB / 495 MB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03431/0.4804, allocations: 30.69 MB / 0.5133 GB, free: 8.695 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001302/0.4817, allocations: 0.5957 MB / 0.5139 GB, free: 8.09 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 3.376e-06/0.4817, allocations: 0 / 0.5139 GB, free: 8.09 MB / 430.1 MB Notification: Performance of matching and sorting (n=99): time 0.0144/0.4961, allocations: 5.275 MB / 0.5191 GB, free: 2.57 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.192e-05/0.4962, allocations: 68.41 kB / 0.5191 GB, free: 2.492 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003895/0.5001, allocations: 2.688 MB / 0.5218 GB, free: 15.79 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002301/0.5003, allocations: 45.7 kB / 0.5218 GB, free: 15.74 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001254/0.5016, allocations: 1.308 MB / 0.5231 GB, free: 14.43 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004839/0.5021, allocations: 353 kB / 0.5234 GB, free: 14.08 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004334/0.5025, allocations: 242.4 kB / 0.5237 GB, free: 13.83 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001663/0.5027, allocations: 345.9 kB / 0.524 GB, free: 13.49 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001434/0.5041, allocations: 474 kB / 0.5244 GB, free: 13.02 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001566/0.5057, allocations: 0.6546 MB / 0.5251 GB, free: 12.3 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002869/0.5085, allocations: 1.126 MB / 0.5262 GB, free: 11.12 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.5085, allocations: 0 / 0.5262 GB, free: 11.12 MB / 446.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.0046/0.5131, allocations: 1.99 MB / 0.5281 GB, free: 9.055 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.526e-05/0.5132, allocations: 4 kB / 0.5281 GB, free: 9.051 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001745/0.5133, allocations: 120 kB / 0.5282 GB, free: 8.934 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007433/0.5141, allocations: 271 kB / 0.5285 GB, free: 8.641 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009479/0.515, allocations: 199.7 kB / 0.5287 GB, free: 8.445 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0111/0.5261, allocations: 14.24 MB / 0.5426 GB, free: 8.816 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001918/0.528, allocations: 91.84 kB / 0.5427 GB, free: 8.727 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001769/0.5282, allocations: 56 kB / 0.5427 GB, free: 8.672 MB / 462.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.0009115/0.5291, allocations: 421.7 kB / 0.5431 GB, free: 8.25 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000522/0.5297, allocations: 393.6 kB / 0.5435 GB, free: 7.863 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005277/0.5349, allocations: 2.215 MB / 0.5457 GB, free: 5.566 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.375e-05/0.535, allocations: 8 kB / 0.5457 GB, free: 5.559 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.988e-06/0.535, allocations: 4 kB / 0.5457 GB, free: 5.555 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/0.535, allocations: 7.984 kB / 0.5457 GB, free: 5.547 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002383/0.5374, allocations: 1.543 MB / 0.5472 GB, free: 3.953 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001661/0.5375, allocations: 112.9 kB / 0.5473 GB, free: 3.844 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000796/0.5383, allocations: 131.8 kB / 0.5474 GB, free: 3.715 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007527/0.5391, allocations: 272.3 kB / 0.5477 GB, free: 3.418 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00012/0.5392, allocations: 43.97 kB / 0.5477 GB, free: 3.375 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01121/0.5504, allocations: 14.25 MB / 0.5617 GB, free: 3.727 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.5504, allocations: 0 / 0.5617 GB, free: 3.727 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006288/0.5567, allocations: 2.561 MB / 0.5642 GB, free: 1.078 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001529/0.5582, allocations: 0.4946 MB / 0.5646 GB, free: 0.5625 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006656/0.5589, allocations: 20 kB / 0.5647 GB, free: 0.543 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001298/0.5602, allocations: 87.88 kB / 0.5647 GB, free: 468 kB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004519/0.5606, allocations: 140.8 kB / 0.5649 GB, free: 324 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001206/0.5608, allocations: 43.98 kB / 0.5649 GB, free: 280 kB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002946/0.5637, allocations: 1.778 MB / 0.5667 GB, free: 14.48 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5637, allocations: 0 / 0.5667 GB, free: 14.48 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002111/0.5658, allocations: 0.6557 MB / 0.5673 GB, free: 13.83 MB / 494.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.007858/0.5737, allocations: 3.828 MB / 0.571 GB, free: 9.91 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.004834/0.5785, allocations: 2.448 MB / 0.5734 GB, free: 7.305 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.5785, allocations: 0 / 0.5734 GB, free: 7.305 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003229/0.5817, allocations: 1.905 MB / 0.5753 GB, free: 5.25 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003437/0.5852, allocations: 0.6199 MB / 0.5759 GB, free: 4.625 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03642/0.6216, allocations: 18.22 MB / 0.5937 GB, free: 1.957 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001414/0.623, allocations: 1.662 MB / 0.5953 GB, free: 272 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001352/0.6244, allocations: 391.4 kB / 0.5957 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001537/0.6259, allocations: 1.191 MB / 0.5968 GB, free: 14.69 MB / 0.5137 GB Notification: Performance of SimCode: time 1.453e-06/0.6259, allocations: 0 / 0.5968 GB, free: 14.69 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3637/0.9895, allocations: 66.89 MB / 0.6622 GB, free: 170.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.29/18.28, allocations: 9.188 kB / 0.6622 GB, free: 170.4 MB / 0.5294 GB " [Timeout remaining time 642] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000997606 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable mp1.Sinternal in file Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor_res.csv. Warning: Get data of variable mp1.Sinternal from file Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor_res.csv failed! Error: Could not read variable mp2.Dinternal in file Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor_res.csv. Warning: Get data of variable mp2.Dinternal from file Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor_res.csv failed! Error: Could not read variable mp2.Sinternal in file Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor_res.csv. Warning: Get data of variable mp2.Sinternal from file Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 21.049562807078473]