Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.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.001918/0.001918, allocations: 109.5 kB / 20.43 MB, free: 1.449 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.002148/0.002148, allocations: 187.4 kB / 23.72 MB, free: 4.684 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.469/1.469, allocations: 225.6 MB / 252.5 MB, free: 13.04 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.FourInverters,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001526/0.001526, allocations: 43.94 kB / 370.4 MB, free: 9.891 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2542/0.2558, allocations: 52.19 MB / 422.6 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02749/0.2832, allocations: 26.81 MB / 449.4 MB, free: 3.715 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03162/0.3149, allocations: 22.41 MB / 471.8 MB, free: 13.21 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004994/0.3199, allocations: 269.1 kB / 472.1 MB, free: 12.95 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005226/0.3251, allocations: 1.788 MB / 473.9 MB, free: 11.15 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01224/0.3373, allocations: 3.326 MB / 477.2 MB, free: 7.801 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005823/0.3431, allocations: 1.644 MB / 478.9 MB, free: 6.152 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02142/0.3646, allocations: 12.75 MB / 491.6 MB, free: 9.363 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00133/0.3659, allocations: 0.5159 MB / 492.1 MB, free: 8.812 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003509/0.3694, allocations: 2.185 MB / 494.3 MB, free: 6.617 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00364/0.3731, allocations: 2.1 MB / 496.4 MB, free: 4.504 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004841/0.3735, allocations: 136 kB / 496.6 MB, free: 4.371 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004719/0.3783, allocations: 1.533 MB / 498.1 MB, free: 2.836 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009176/0.3792, allocations: 0.6049 MB / 498.7 MB, free: 2.227 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00342/0.3826, allocations: 2.62 MB / 0.4896 GB, free: 15.59 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01119/0.3938, allocations: 6.663 MB / 0.4961 GB, free: 8.895 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.3938, allocations: 0 / 0.4961 GB, free: 8.895 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3938, allocations: 0 / 0.4961 GB, free: 8.895 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000206/0.394, allocations: 0 / 0.4961 GB, free: 8.895 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.01332/0.4073, allocations: 6.859 MB / 0.5028 GB, free: 1.953 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.548e-05/0.4074, allocations: 11.97 kB / 0.5028 GB, free: 1.941 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002752/0.4077, allocations: 161.2 kB / 0.5029 GB, free: 1.773 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00124/0.4089, allocations: 0.7764 MB / 0.5037 GB, free: 0.9922 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00826/0.4172, allocations: 4.371 MB / 0.508 GB, free: 12.5 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.288e-05/0.4172, allocations: 69.94 kB / 0.508 GB, free: 12.43 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002366/0.4175, allocations: 99.89 kB / 0.5081 GB, free: 12.33 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002403/0.4199, allocations: 1.313 MB / 0.5094 GB, free: 11 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.254e-05/0.4199, allocations: 0 / 0.5094 GB, free: 11 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000118/0.42, allocations: 40 kB / 0.5094 GB, free: 10.96 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.315e-05/0.42, allocations: 39.97 kB / 0.5095 GB, free: 10.93 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002649/0.4227, allocations: 1.488 MB / 0.5109 GB, free: 9.438 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01077/0.4335, allocations: 5.558 MB / 0.5164 GB, free: 3.805 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001802/0.4353, allocations: 0.8795 MB / 0.5172 GB, free: 2.91 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001678/0.4369, allocations: 1.067 MB / 0.5183 GB, free: 1.84 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2331/0.67, allocations: 27.09 MB / 0.5447 GB, free: 106.4 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008531/0.6709, allocations: 0.56 MB / 0.5453 GB, free: 106.1 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 3.396e-06/0.6709, allocations: 0 / 0.5453 GB, free: 106.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.003041/0.6739, allocations: 1.915 MB / 0.5471 GB, free: 105.6 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.261e-05/0.674, allocations: 68.56 kB / 0.5472 GB, free: 105.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006194/0.6802, allocations: 5.587 MB / 0.5527 GB, free: 102.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001457/0.6803, allocations: 37.42 kB / 0.5527 GB, free: 102.6 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001692/0.682, allocations: 2.969 MB / 0.5556 GB, free: 99.98 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002537/0.6823, allocations: 307.1 kB / 0.5559 GB, free: 99.72 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004163/0.6827, allocations: 428.4 kB / 0.5563 GB, free: 99.3 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.515e-05/0.6827, allocations: 305.1 kB / 0.5566 GB, free: 99 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007345/0.6835, allocations: 407.2 kB / 0.557 GB, free: 98.61 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008978/0.6844, allocations: 1.084 MB / 0.558 GB, free: 97.22 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001707/0.6861, allocations: 1.609 MB / 0.5596 GB, free: 95.34 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.111e-05/0.6861, allocations: 8 kB / 0.5596 GB, free: 95.33 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.00313/0.6892, allocations: 2.248 MB / 0.5618 GB, free: 93.11 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.853e-05/0.6892, allocations: 19.94 kB / 0.5618 GB, free: 93.09 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001675/0.6894, allocations: 160 kB / 0.562 GB, free: 92.93 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.517e-05/0.6895, allocations: 32 kB / 0.562 GB, free: 92.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001021/0.6905, allocations: 358.4 kB / 0.5623 GB, free: 92.55 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.998e-05/0.6905, allocations: 51.78 kB / 0.5624 GB, free: 92.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001895/0.6924, allocations: 195.2 kB / 0.5626 GB, free: 92.36 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001506/0.6925, allocations: 120 kB / 0.5627 GB, free: 92.24 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * Number of states: 0 () * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001185/0.6937, allocations: 0.7161 MB / 0.5634 GB, free: 91.53 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005805/0.6943, allocations: 0.753 MB / 0.5641 GB, free: 90.77 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003659/0.698, allocations: 2.153 MB / 0.5662 GB, free: 88.68 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.957e-06/0.698, allocations: 8 kB / 0.5662 GB, free: 88.68 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.698, allocations: 0 / 0.5662 GB, free: 88.68 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.698, allocations: 3.984 kB / 0.5662 GB, free: 88.67 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004672/0.7027, allocations: 3.58 MB / 0.5697 GB, free: 85.04 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001593/0.7028, allocations: 140 kB / 0.5699 GB, free: 84.91 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000681/0.7035, allocations: 147.8 kB / 0.57 GB, free: 84.76 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.961e-06/0.7035, allocations: 4 kB / 0.57 GB, free: 84.76 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.57e-05/0.7036, allocations: 59.98 kB / 0.5701 GB, free: 84.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.23e-06/0.7036, allocations: 8.062 kB / 0.5701 GB, free: 84.69 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.7036, allocations: 3.938 kB / 0.5701 GB, free: 84.69 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002657/0.7063, allocations: 2.186 MB / 0.5722 GB, free: 82.47 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001398/0.7077, allocations: 0.7831 MB / 0.573 GB, free: 81.69 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005853/0.7082, allocations: 16.86 kB / 0.573 GB, free: 81.68 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001056/0.7093, allocations: 35.97 kB / 0.573 GB, free: 81.64 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001823/0.7095, allocations: 100.5 kB / 0.5731 GB, free: 81.54 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001011/0.7096, allocations: 71.8 kB / 0.5732 GB, free: 81.48 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003805/0.7134, allocations: 3.608 MB / 0.5767 GB, free: 77.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7134, allocations: 0 / 0.5767 GB, free: 77.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002031/0.7154, allocations: 1.082 MB / 0.5778 GB, free: 76.88 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004076/0.7195, allocations: 3.849 MB / 0.5815 GB, free: 73.06 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001948/0.7214, allocations: 1.359 MB / 0.5829 GB, free: 71.66 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.7214, allocations: 0 / 0.5829 GB, free: 71.66 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000874/0.7223, allocations: 0.7439 MB / 0.5836 GB, free: 70.87 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004825/0.7271, allocations: 1.167 MB / 0.5847 GB, free: 69.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04241/0.7695, allocations: 30.57 MB / 0.6146 GB, free: 38.35 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001621/0.7712, allocations: 2.592 MB / 0.6171 GB, free: 35.73 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001972/0.7731, allocations: 0.6807 MB / 0.6178 GB, free: 35.04 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001825/0.775, allocations: 2.397 MB / 0.6201 GB, free: 32.64 MB / 446.1 MB Notification: Performance of SimCode: time 1.022e-06/0.775, allocations: 0 / 0.6201 GB, free: 32.64 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2255/1, allocations: 112.5 MB / 0.73 GB, free: 0.7773 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 30.81/31.82, allocations: 4.297 kB / 0.73 GB, free: 0.7773 MB / 0.5137 GB " [Timeout remaining time 628] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable mp1.S.v in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable mp1.S.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! Error: Could not read variable mp2.S.v in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable mp2.S.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! Error: Could not read variable mp3.S.v in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable mp3.S.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! Error: Could not read variable mp4.S.v in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable mp4.S.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! Error: Could not read variable v.p.v in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable v.p.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 34.754871470999205]