Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001352/0.001352, allocations: 115.5 kB / 18.45 MB, free: 4.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001394/0.001394, allocations: 215.3 kB / 21.41 MB, free: 1.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.5/1.5, allocations: 207.6 MB / 231.8 MB, free: 4.07 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001715/0.001715, allocations: 51.92 kB / 342.3 MB, free: 10.01 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1062, allocations: 49.14 MB / 391.4 MB, free: 8.707 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.0266/0.1328, allocations: 25.43 MB / 416.9 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03175/0.1646, allocations: 21.39 MB / 438.2 MB, free: 9.695 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008301/0.1729, allocations: 280.9 kB / 438.5 MB, free: 9.418 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006253/0.1791, allocations: 1.734 MB / 440.2 MB, free: 7.668 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0126/0.1917, allocations: 3.203 MB / 443.4 MB, free: 4.441 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008481/0.2002, allocations: 1.568 MB / 445 MB, free: 2.867 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02344/0.2236, allocations: 12.44 MB / 457.5 MB, free: 6.391 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001415/0.2251, allocations: 0.5079 MB / 458 MB, free: 5.848 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003316/0.2284, allocations: 1.995 MB / 460 MB, free: 3.844 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003332/0.2317, allocations: 2.057 MB / 462 MB, free: 1.773 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005253/0.2322, allocations: 139.9 kB / 462.2 MB, free: 1.637 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00442/0.2367, allocations: 1.218 MB / 463.4 MB, free: 428 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2347/0.4713, allocations: 0.6028 MB / 464 MB, free: 18.69 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006638/0.478, allocations: 2.639 MB / 466.6 MB, free: 18.62 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01446/0.4924, allocations: 6.714 MB / 473.3 MB, free: 17.16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.015e-06/0.4924, allocations: 1.062 kB / 473.3 MB, free: 17.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.4924, allocations: 0 / 473.3 MB, free: 17.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003891/0.4928, allocations: 0 / 473.3 MB, free: 17.16 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: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.01925/0.5121, allocations: 6.971 MB / 480.3 MB, free: 13.2 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.122e-05/0.5121, allocations: 9.219 kB / 480.3 MB, free: 13.2 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002705/0.5124, allocations: 165 kB / 480.5 MB, free: 13.16 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001907/0.5143, allocations: 0.7834 MB / 481.3 MB, free: 12.74 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007775/0.5221, allocations: 4.698 MB / 486 MB, free: 11.29 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.632e-05/0.5221, allocations: 66.19 kB / 486 MB, free: 11.29 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002609/0.5224, allocations: 100.7 kB / 486.1 MB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002291/0.5247, allocations: 1.297 MB / 487.4 MB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.279e-05/0.5247, allocations: 0 / 487.4 MB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001334/0.5249, allocations: 38.03 kB / 487.4 MB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-05/0.5249, allocations: 42.88 kB / 487.5 MB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002457/0.5274, allocations: 1.485 MB / 489 MB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01231/0.5397, allocations: 5.651 MB / 494.6 MB, free: 9.625 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001565/0.5412, allocations: 0.8713 MB / 495.5 MB, free: 9.152 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001317/0.5426, allocations: 1.06 MB / 496.6 MB, free: 8.594 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06535/0.6079, allocations: 59.94 MB / 0.5435 GB, free: 9.5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001123/0.609, allocations: 0.5631 MB / 0.544 GB, free: 8.922 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 3.346e-06/0.609, allocations: 0 / 0.544 GB, free: 8.922 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.004457/0.6135, allocations: 1.909 MB / 0.5459 GB, free: 7.008 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.037e-05/0.6136, allocations: 67.55 kB / 0.5459 GB, free: 6.934 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01025/0.6238, allocations: 5.632 MB / 0.5514 GB, free: 1.332 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002976/0.6241, allocations: 37.7 kB / 0.5515 GB, free: 1.289 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003374/0.6275, allocations: 2.958 MB / 0.5544 GB, free: 14.35 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000638/0.6281, allocations: 316.4 kB / 0.5547 GB, free: 14.05 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007743/0.6289, allocations: 427 kB / 0.5551 GB, free: 13.62 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.629, allocations: 309.1 kB / 0.5554 GB, free: 13.32 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009392/0.63, allocations: 398.9 kB / 0.5557 GB, free: 12.93 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001658/0.6316, allocations: 1.093 MB / 0.5568 GB, free: 11.52 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002785/0.6344, allocations: 1.617 MB / 0.5584 GB, free: 9.676 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.35e-05/0.6344, allocations: 4 kB / 0.5584 GB, free: 9.672 MB / 462.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.005021/0.6395, allocations: 2.25 MB / 0.5606 GB, free: 7.562 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.769e-05/0.6395, allocations: 16 kB / 0.5606 GB, free: 7.547 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002293/0.6397, allocations: 165.8 kB / 0.5608 GB, free: 7.387 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.032e-05/0.6398, allocations: 36 kB / 0.5608 GB, free: 7.352 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001215/0.641, allocations: 358 kB / 0.5611 GB, free: 7.027 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.02e-05/0.641, allocations: 45.92 kB / 0.5612 GB, free: 6.992 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003411/0.6444, allocations: 190.7 kB / 0.5614 GB, free: 6.805 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002429/0.6447, allocations: 128 kB / 0.5615 GB, free: 6.68 MB / 462.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.001826/0.6465, allocations: 0.7171 MB / 0.5622 GB, free: 5.98 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002121/0.6486, allocations: 0.7647 MB / 0.5629 GB, free: 5.211 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006276/0.6549, allocations: 2.161 MB / 0.565 GB, free: 3.059 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.454e-05/0.6549, allocations: 8 kB / 0.565 GB, free: 3.051 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.6549, allocations: 3.188 kB / 0.5651 GB, free: 3.051 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.318e-06/0.6549, allocations: 3.984 kB / 0.5651 GB, free: 3.047 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009634/0.6646, allocations: 3.625 MB / 0.5686 GB, free: 15.38 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002009/0.6648, allocations: 144 kB / 0.5687 GB, free: 15.23 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008064/0.6656, allocations: 162.2 kB / 0.5689 GB, free: 15.09 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.755e-06/0.6656, allocations: 0 / 0.5689 GB, free: 15.09 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001056/0.6657, allocations: 56 kB / 0.5689 GB, free: 15.03 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.568e-06/0.6657, allocations: 7.125 kB / 0.5689 GB, free: 15.03 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.6657, allocations: 0 / 0.5689 GB, free: 15.03 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004861/0.6706, allocations: 2.2 MB / 0.5711 GB, free: 12.8 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002715/0.6733, allocations: 0.8592 MB / 0.5719 GB, free: 11.92 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001173/0.6745, allocations: 16 kB / 0.5719 GB, free: 11.91 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001319/0.6758, allocations: 35.95 kB / 0.572 GB, free: 11.87 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002531/0.676, allocations: 92.59 kB / 0.5721 GB, free: 11.78 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001426/0.6762, allocations: 75.97 kB / 0.5721 GB, free: 11.7 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00716/0.6833, allocations: 3.637 MB / 0.5757 GB, free: 8.098 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.6833, allocations: 0 / 0.5757 GB, free: 8.098 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004179/0.6875, allocations: 1.092 MB / 0.5768 GB, free: 7.004 MB / 478.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.007025/0.6945, allocations: 3.861 MB / 0.5805 GB, free: 3.344 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002836/0.6974, allocations: 1.372 MB / 0.5819 GB, free: 2.004 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.6974, allocations: 0 / 0.5819 GB, free: 2.004 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001244/0.6986, allocations: 0.7331 MB / 0.5826 GB, free: 1.234 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005183/0.7038, allocations: 0.995 MB / 0.5836 GB, free: 244 kB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06057/0.7644, allocations: 30.75 MB / 0.6136 GB, free: 0.9336 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002473/0.7668, allocations: 2.604 MB / 0.6161 GB, free: 14.3 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.002165/0.769, allocations: 0.685 MB / 0.6168 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002877/0.7719, allocations: 2.413 MB / 0.6192 GB, free: 11.2 MB / 0.5137 GB Notification: Performance of SimCode: time 1.192e-06/0.7719, allocations: 0 / 0.6192 GB, free: 11.2 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4176/1.189, allocations: 112.1 MB / 0.7287 GB, free: 144 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.21/28.4, allocations: 4.766 kB / 0.7287 GB, free: 143.9 MB / 0.5294 GB " [Timeout remaining time 631] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable mp1.S.v from file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! Error: Could not read variable mp2.S.v in file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable mp2.S.v from file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! Error: Could not read variable mp3.S.v in file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable mp3.S.v from file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! Error: Could not read variable mp4.S.v in file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable mp4.S.v from file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! Error: Could not read variable v.p.v in file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable v.p.v from file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 31.13435134399333]