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.001404/0.001404, allocations: 87.62 kB / 21.43 MB, free: 3.133 MB / 18.57 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.004147/0.004147, allocations: 162.5 kB / 24.69 MB, free: 9.426 MB / 18.57 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 0.8609/0.8609, allocations: 158.6 MB / 186.5 MB, free: 3.039 MB / 170.7 MB " [Timeout remaining time 179] 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: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 298.4 MB, free: 3.535 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.658e-05/1.816e-05, allocations: 2.281 kB / 298.4 MB, free: 3.531 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.1473/0.1474, allocations: 21.09 MB / 319.5 MB, free: 2.867 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02422/0.1716, allocations: 18.65 MB / 338.2 MB, free: 5.293 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006763/0.1783, allocations: 277.7 kB / 338.4 MB, free: 5.102 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005515/0.1839, allocations: 1.643 MB / 340.1 MB, free: 3.863 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0132/0.1971, allocations: 3.38 MB / 343.5 MB, free: 1.078 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005551/0.2026, allocations: 1.576 MB / 345 MB, free: 15.84 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01466/0.2173, allocations: 12.81 MB / 357.9 MB, free: 3.168 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001332/0.2186, allocations: 0.4888 MB / 358.3 MB, free: 2.645 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004633/0.2232, allocations: 2.719 MB / 361.1 MB, free: 15.92 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002193/0.2254, allocations: 1.44 MB / 362.5 MB, free: 14.47 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004654/0.2259, allocations: 136 kB / 362.6 MB, free: 14.34 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004065/0.23, allocations: 1.163 MB / 363.8 MB, free: 13.18 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004152/0.2304, allocations: 0.6009 MB / 364.4 MB, free: 12.57 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002317/0.2327, allocations: 1.417 MB / 365.8 MB, free: 11.15 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009541/0.2422, allocations: 6.538 MB / 372.4 MB, free: 4.586 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.301e-06/0.2422, allocations: 0 / 372.4 MB, free: 4.586 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.355e-06/0.2422, allocations: 0 / 372.4 MB, free: 4.586 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002456/0.2425, allocations: 4 kB / 372.4 MB, free: 4.582 MB / 330.7 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.008124/0.2506, allocations: 6.824 MB / 379.2 MB, free: 13.68 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.829e-05/0.2507, allocations: 17.3 kB / 379.2 MB, free: 13.66 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001608/0.2508, allocations: 157.2 kB / 379.4 MB, free: 13.5 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000771/0.2516, allocations: 0.7839 MB / 380.1 MB, free: 12.71 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005089/0.2567, allocations: 4.411 MB / 384.5 MB, free: 8.184 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001944/0.2569, allocations: 70 kB / 384.6 MB, free: 8.117 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001659/0.257, allocations: 103.9 kB / 384.7 MB, free: 8.016 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001717/0.2588, allocations: 1.305 MB / 386 MB, free: 6.691 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.141e-05/0.2588, allocations: 0 / 386 MB, free: 6.691 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.247e-05/0.2589, allocations: 36 kB / 386.1 MB, free: 6.656 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.746e-05/0.2589, allocations: 35.98 kB / 386.1 MB, free: 6.621 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001874/0.2608, allocations: 1.496 MB / 387.6 MB, free: 5.125 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007074/0.2679, allocations: 5.301 MB / 392.9 MB, free: 15.73 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009968/0.2688, allocations: 0.8802 MB / 393.8 MB, free: 14.84 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009801/0.2698, allocations: 1.065 MB / 394.8 MB, free: 13.77 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03022/0.3, allocations: 27.1 MB / 421.9 MB, free: 1.926 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007198/0.3008, allocations: 0.5528 MB / 422.5 MB, free: 1.363 MB / 378.7 MB Notification: Performance of pre-optimization done (n=85): time 4.037e-06/0.3008, allocations: 3.938 kB / 422.5 MB, free: 1.359 MB / 378.7 MB Notification: Performance of matching and sorting (n=85): time 0.002622/0.3034, allocations: 1.919 MB / 424.4 MB, free: 15.43 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.272e-05/0.3034, allocations: 64.05 kB / 424.5 MB, free: 15.36 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005506/0.309, allocations: 5.667 MB / 430.1 MB, free: 9.723 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001821/0.3091, allocations: 41.7 kB / 430.2 MB, free: 9.676 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001656/0.3108, allocations: 2.953 MB / 433.1 MB, free: 6.711 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003058/0.3111, allocations: 305.4 kB / 433.4 MB, free: 6.41 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003713/0.3115, allocations: 422.9 kB / 433.8 MB, free: 5.992 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.803e-05/0.3115, allocations: 305.1 kB / 434.1 MB, free: 5.691 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005276/0.3121, allocations: 404.4 kB / 434.5 MB, free: 5.297 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009439/0.313, allocations: 1.091 MB / 435.6 MB, free: 3.875 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001392/0.3144, allocations: 1.615 MB / 437.2 MB, free: 1.922 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.779e-06/0.3144, allocations: 8 kB / 437.3 MB, free: 1.914 MB / 394.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002653/0.3171, allocations: 2.253 MB / 439.5 MB, free: 15.65 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.233e-05/0.3171, allocations: 16 kB / 439.5 MB, free: 15.63 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001262/0.3172, allocations: 167.4 kB / 439.7 MB, free: 15.47 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.916e-05/0.3173, allocations: 32.75 kB / 439.7 MB, free: 15.44 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006389/0.3179, allocations: 359.4 kB / 440.1 MB, free: 15.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.67e-05/0.3179, allocations: 53.67 kB / 440.1 MB, free: 15.04 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001403/0.3193, allocations: 186.7 kB / 440.3 MB, free: 14.86 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001301/0.3195, allocations: 124 kB / 440.4 MB, free: 14.73 MB / 410.7 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.001096/0.3206, allocations: 0.7198 MB / 441.1 MB, free: 14 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008142/0.3214, allocations: 0.7531 MB / 441.9 MB, free: 13.25 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002689/0.3241, allocations: 2.165 MB / 444.1 MB, free: 11.08 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.967e-06/0.3241, allocations: 4 kB / 444.1 MB, free: 11.07 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.3241, allocations: 4 kB / 444.1 MB, free: 11.07 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.293e-06/0.3241, allocations: 3.984 kB / 444.1 MB, free: 11.07 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004266/0.3283, allocations: 3.514 MB / 447.6 MB, free: 7.484 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000101/0.3284, allocations: 140 kB / 447.7 MB, free: 7.348 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004218/0.3289, allocations: 155.8 kB / 447.9 MB, free: 7.195 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.682e-06/0.3289, allocations: 4 kB / 447.9 MB, free: 7.191 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.332e-05/0.3289, allocations: 60 kB / 447.9 MB, free: 7.133 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.201e-06/0.3289, allocations: 4 kB / 447.9 MB, free: 7.129 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.3289, allocations: 3.938 kB / 447.9 MB, free: 7.125 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002755/0.3317, allocations: 2.198 MB / 450.1 MB, free: 4.902 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001421/0.3331, allocations: 0.7859 MB / 450.9 MB, free: 4.105 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003451/0.3335, allocations: 20 kB / 450.9 MB, free: 4.086 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005929/0.3341, allocations: 35.95 kB / 451 MB, free: 4.051 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001795/0.3342, allocations: 100.5 kB / 451.1 MB, free: 3.953 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000108/0.3343, allocations: 71.98 kB / 451.2 MB, free: 3.883 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004926/0.3393, allocations: 3.633 MB / 454.8 MB, free: 288 kB / 410.7 MB Notification: Performance of sort global known variables: time 1.002e-06/0.3393, allocations: 0 / 454.8 MB, free: 288 kB / 410.7 MB Notification: Performance of remove unused functions: time 0.002978/0.3423, allocations: 1.085 MB / 455.9 MB, free: 15.19 MB / 426.7 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.004226/0.3465, allocations: 3.952 MB / 459.8 MB, free: 11.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001724/0.3482, allocations: 1.378 MB / 461.2 MB, free: 9.773 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.3482, allocations: 0 / 461.2 MB, free: 9.773 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006568/0.3489, allocations: 0.7281 MB / 461.9 MB, free: 9 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00286/0.3517, allocations: 1.007 MB / 462.9 MB, free: 7.996 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1752/0.5269, allocations: 30.61 MB / 493.5 MB, free: 134 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00135/0.5283, allocations: 2.117 MB / 495.7 MB, free: 133.7 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001581/0.5298, allocations: 0.686 MB / 496.3 MB, free: 133.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001454/0.5313, allocations: 2.412 MB / 498.8 MB, free: 131.3 MB / 426.7 MB Notification: Performance of SimCode: time 1.874e-06/0.5313, allocations: 3.938 kB / 498.8 MB, free: 131.3 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1272/0.6585, allocations: 117.6 MB / 0.6019 GB, free: 13.51 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.9/14.56, allocations: 10.66 kB / 0.6019 GB, free: 13.5 MB / 426.7 MB " [Timeout remaining time 645] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins/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: 16.398078699596226]