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.001322/0.001322, allocations: 124 kB / 17.79 MB, free: 5.266 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.001444/0.001444, allocations: 190.9 kB / 20.73 MB, free: 2.328 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.415/1.415, allocations: 225.6 MB / 249.1 MB, free: 3.621 MB / 190.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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001518/0.001518, allocations: 51.91 kB / 365.6 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0965/0.09802, allocations: 52.15 MB / 417.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01454/0.1126, allocations: 14.23 MB / 432 MB, free: 14.36 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2323/0.3448, allocations: 20.35 MB / 452.3 MB, free: 6.875 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002238/0.3471, allocations: 193.8 kB / 452.5 MB, free: 6.875 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00295/0.35, allocations: 1.124 MB / 453.7 MB, free: 6.816 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006954/0.357, allocations: 2.315 MB / 456 MB, free: 6.281 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004969/0.3619, allocations: 1.448 MB / 457.4 MB, free: 5.91 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0103/0.3722, allocations: 6.439 MB / 463.9 MB, free: 4.855 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000847/0.3731, allocations: 252.3 kB / 464.1 MB, free: 4.746 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002127/0.3752, allocations: 1.132 MB / 465.2 MB, free: 4.453 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001676/0.3769, allocations: 1.085 MB / 466.3 MB, free: 4.031 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000265/0.3772, allocations: 75.16 kB / 466.4 MB, free: 4.031 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004798/0.382, allocations: 1.475 MB / 467.9 MB, free: 3.969 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004849/0.3824, allocations: 317.8 kB / 468.2 MB, free: 3.84 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001871/0.3843, allocations: 1.321 MB / 469.5 MB, free: 3.152 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006235/0.3906, allocations: 3.709 MB / 473.2 MB, free: 1.832 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.3906, allocations: 0 / 473.2 MB, free: 1.832 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3906, allocations: 3.938 kB / 473.2 MB, free: 1.828 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.254e-05/0.3906, allocations: 4 kB / 473.2 MB, free: 1.824 MB / 366.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.005841/0.3965, allocations: 3.68 MB / 476.9 MB, free: 15.39 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.814e-05/0.3965, allocations: 11.69 kB / 476.9 MB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001488/0.3967, allocations: 96.47 kB / 477 MB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006635/0.3973, allocations: 397 kB / 477.4 MB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003851/0.4012, allocations: 2.547 MB / 479.9 MB, free: 13.49 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.486e-05/0.4012, allocations: 36.38 kB / 480 MB, free: 13.47 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000139/0.4014, allocations: 56.08 kB / 480 MB, free: 13.45 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001598/0.403, allocations: 0.7588 MB / 480.8 MB, free: 13.01 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.581e-05/0.403, allocations: 0 / 480.8 MB, free: 13.01 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.586e-05/0.4031, allocations: 24.64 kB / 480.8 MB, free: 12.99 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.042e-05/0.4031, allocations: 19.95 kB / 480.8 MB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001864/0.405, allocations: 0.8538 MB / 481.7 MB, free: 12.64 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005648/0.4106, allocations: 2.978 MB / 484.7 MB, free: 10.64 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001817/0.4124, allocations: 0.7253 MB / 485.4 MB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001423/0.4138, allocations: 0.8551 MB / 486.2 MB, free: 9.902 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03261/0.4464, allocations: 30.07 MB / 0.5042 GB, free: 9.195 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001301/0.4477, allocations: 0.5945 MB / 0.5048 GB, free: 8.594 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 3.086e-06/0.4478, allocations: 0 / 0.5048 GB, free: 8.594 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01437/0.4621, allocations: 5.271 MB / 0.5099 GB, free: 3.074 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.439e-05/0.4622, allocations: 64.41 kB / 0.51 GB, free: 3 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003774/0.466, allocations: 2.7 MB / 0.5126 GB, free: 292 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001625/0.4661, allocations: 41.7 kB / 0.5127 GB, free: 244 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001225/0.4673, allocations: 1.31 MB / 0.514 GB, free: 14.93 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000369/0.4677, allocations: 352.3 kB / 0.5143 GB, free: 14.59 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003944/0.4681, allocations: 238.4 kB / 0.5145 GB, free: 14.34 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.4683, allocations: 341.9 kB / 0.5148 GB, free: 14 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001334/0.4696, allocations: 478 kB / 0.5153 GB, free: 13.54 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001457/0.4711, allocations: 0.647 MB / 0.5159 GB, free: 12.82 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002731/0.4738, allocations: 1.13 MB / 0.517 GB, free: 11.63 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.4738, allocations: 0 / 0.517 GB, free: 11.63 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004526/0.4783, allocations: 1.985 MB / 0.519 GB, free: 9.574 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.352e-05/0.4783, allocations: 8.531 kB / 0.519 GB, free: 9.566 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001645/0.4785, allocations: 124 kB / 0.5191 GB, free: 9.445 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007336/0.4792, allocations: 261.9 kB / 0.5194 GB, free: 9.16 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009236/0.4802, allocations: 199.7 kB / 0.5195 GB, free: 8.965 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01095/0.4911, allocations: 14.26 MB / 0.5335 GB, free: 9.344 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002075/0.4932, allocations: 91.89 kB / 0.5336 GB, free: 9.254 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002051/0.4934, allocations: 56.88 kB / 0.5336 GB, free: 9.199 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.0009672/0.4944, allocations: 429.6 kB / 0.534 GB, free: 8.77 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006385/0.495, allocations: 389.5 kB / 0.5344 GB, free: 8.387 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005208/0.5002, allocations: 2.199 MB / 0.5365 GB, free: 6.109 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-05/0.5002, allocations: 15.98 kB / 0.5366 GB, free: 6.094 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-06/0.5002, allocations: 4 kB / 0.5366 GB, free: 6.09 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.11e-05/0.5002, allocations: 7.969 kB / 0.5366 GB, free: 6.082 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002628/0.5029, allocations: 1.546 MB / 0.5381 GB, free: 4.504 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001544/0.503, allocations: 117.2 kB / 0.5382 GB, free: 4.391 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007526/0.5038, allocations: 135.8 kB / 0.5383 GB, free: 4.258 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006953/0.5045, allocations: 264.3 kB / 0.5386 GB, free: 3.969 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001001/0.5046, allocations: 47.92 kB / 0.5386 GB, free: 3.922 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01063/0.5152, allocations: 14.26 MB / 0.5525 GB, free: 4.27 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.5152, allocations: 0 / 0.5525 GB, free: 4.27 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006054/0.5212, allocations: 2.549 MB / 0.555 GB, free: 1.633 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001421/0.5227, allocations: 0.5102 MB / 0.5555 GB, free: 1.102 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004813/0.5231, allocations: 19.94 kB / 0.5555 GB, free: 1.082 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001047/0.5242, allocations: 79.89 kB / 0.5556 GB, free: 1.004 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003895/0.5246, allocations: 148.8 kB / 0.5558 GB, free: 0.8555 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001168/0.5247, allocations: 47.98 kB / 0.5558 GB, free: 0.8086 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00258/0.5273, allocations: 1.77 MB / 0.5575 GB, free: 15.03 MB / 478.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.5273, allocations: 0 / 0.5575 GB, free: 15.03 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001986/0.5293, allocations: 0.6518 MB / 0.5582 GB, free: 14.38 MB / 478.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.007356/0.5366, allocations: 3.825 MB / 0.5619 GB, free: 10.61 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00451/0.5411, allocations: 2.459 MB / 0.5643 GB, free: 7.996 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.5411, allocations: 0 / 0.5643 GB, free: 7.996 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00279/0.5439, allocations: 1.905 MB / 0.5662 GB, free: 5.941 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003278/0.5472, allocations: 0.611 MB / 0.5668 GB, free: 5.324 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03236/0.5796, allocations: 18.22 MB / 0.5846 GB, free: 2.664 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001816/0.5814, allocations: 1.658 MB / 0.5862 GB, free: 0.9766 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001449/0.5828, allocations: 383.4 kB / 0.5865 GB, free: 0.5977 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001602/0.5844, allocations: 1.205 MB / 0.5877 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of SimCode: time 1.363e-06/0.5844, allocations: 0 / 0.5877 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3538/0.9382, allocations: 66.88 MB / 0.653 GB, free: 184.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.17/19.11, allocations: 10.86 kB / 0.653 GB, free: 184.9 MB / 0.5294 GB " [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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_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.csv","/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] "Error: Could not read variable mp1.Sinternal in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.csv. Warning: Get data of variable mp1.Sinternal from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.csv failed! Error: Could not read variable mp2.Dinternal in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.csv. Warning: Get data of variable mp2.Dinternal from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.csv failed! Error: Could not read variable mp2.Sinternal in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.csv. Warning: Get data of variable mp2.Sinternal from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 21.749507982749492]