Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.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.0009522/0.0009522, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001035/0.001035, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.9418/0.9418, allocations: 177 MB / 204.1 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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.FourInverters,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.904e-05/2.053e-05, allocations: 3.125 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.01428/0.0143, allocations: 22.25 MB / 346.8 MB, free: 9.547 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02164/0.03594, allocations: 19.56 MB / 366.3 MB, free: 5.91 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005558/0.04149, allocations: 269.1 kB / 366.6 MB, free: 5.645 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004384/0.04588, allocations: 1.687 MB / 368.3 MB, free: 3.945 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00991/0.05579, allocations: 3.426 MB / 371.7 MB, free: 0.4922 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004669/0.06046, allocations: 1.628 MB / 373.3 MB, free: 14.86 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.01563/0.07609, allocations: 13.26 MB / 386.6 MB, free: 1.559 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001423/0.07751, allocations: 496.2 kB / 387.1 MB, free: 1.039 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005506/0.08302, allocations: 2.988 MB / 390.1 MB, free: 14.04 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00289/0.08591, allocations: 1.498 MB / 391.6 MB, free: 12.54 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005855/0.08649, allocations: 132 kB / 391.7 MB, free: 12.41 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004165/0.09066, allocations: 1.264 MB / 392.9 MB, free: 11.14 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005241/0.09118, allocations: 0.6126 MB / 393.6 MB, free: 10.53 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002867/0.09405, allocations: 1.41 MB / 395 MB, free: 9.113 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008253/0.1023, allocations: 6.503 MB / 401.5 MB, free: 2.586 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.1023, allocations: 0 / 401.5 MB, free: 2.586 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.893e-06/0.1023, allocations: 0 / 401.5 MB, free: 2.586 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000261/0.1026, allocations: 4 kB / 401.5 MB, free: 2.582 MB / 362.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.00823/0.1108, allocations: 6.781 MB / 408.3 MB, free: 11.72 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.873e-05/0.1108, allocations: 15.98 kB / 408.3 MB, free: 11.71 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001672/0.111, allocations: 157.2 kB / 408.4 MB, free: 11.54 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000765/0.1118, allocations: 0.7803 MB / 409.2 MB, free: 10.76 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005648/0.1174, allocations: 4.367 MB / 413.6 MB, free: 6.27 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.078e-05/0.1175, allocations: 66 kB / 413.6 MB, free: 6.207 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001793/0.1176, allocations: 103.9 kB / 413.7 MB, free: 6.105 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001851/0.1195, allocations: 1.313 MB / 415.1 MB, free: 4.773 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.753e-05/0.1195, allocations: 3.938 kB / 415.1 MB, free: 4.77 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.19e-05/0.1196, allocations: 39.98 kB / 415.1 MB, free: 4.73 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.779e-05/0.1196, allocations: 31.98 kB / 415.1 MB, free: 4.699 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001688/0.1213, allocations: 1.484 MB / 416.6 MB, free: 3.211 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007581/0.1289, allocations: 5.29 MB / 421.9 MB, free: 13.84 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001071/0.13, allocations: 0.8719 MB / 422.8 MB, free: 12.96 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009882/0.131, allocations: 1.064 MB / 423.8 MB, free: 11.89 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0303/0.1613, allocations: 27.06 MB / 450.9 MB, free: 88 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.1651/0.3264, allocations: 0.5505 MB / 451.4 MB, free: 119 MB / 410.7 MB Notification: Performance of pre-optimization done (n=85): time 4.218e-06/0.3264, allocations: 0 / 451.4 MB, free: 119 MB / 410.7 MB Notification: Performance of matching and sorting (n=85): time 0.003077/0.3295, allocations: 1.91 MB / 453.4 MB, free: 118.9 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.06e-05/0.3295, allocations: 66.7 kB / 453.4 MB, free: 118.9 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005192/0.3347, allocations: 5.63 MB / 459.1 MB, free: 117 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001494/0.3349, allocations: 41.05 kB / 459.1 MB, free: 117 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001271/0.3361, allocations: 2.96 MB / 462.1 MB, free: 114.4 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002555/0.3364, allocations: 317.8 kB / 462.4 MB, free: 114.1 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003491/0.3367, allocations: 419 kB / 462.8 MB, free: 113.7 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.855e-05/0.3368, allocations: 301.1 kB / 463.1 MB, free: 113.4 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005116/0.3373, allocations: 403.7 kB / 463.5 MB, free: 113 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006591/0.338, allocations: 1.089 MB / 464.6 MB, free: 111.6 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00122/0.3392, allocations: 1.609 MB / 466.2 MB, free: 109.7 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.859e-06/0.3392, allocations: 8 kB / 466.2 MB, free: 109.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002431/0.3416, allocations: 2.238 MB / 468.4 MB, free: 107.5 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.109e-05/0.3416, allocations: 12 kB / 468.4 MB, free: 107.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001071/0.3418, allocations: 167.5 kB / 468.6 MB, free: 107.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.303e-05/0.3418, allocations: 32 kB / 468.6 MB, free: 107.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006106/0.3424, allocations: 361.6 kB / 469 MB, free: 106.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.476e-05/0.3424, allocations: 47.8 kB / 469 MB, free: 106.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001546/0.344, allocations: 196.2 kB / 469.2 MB, free: 106.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001353/0.3441, allocations: 124 kB / 469.3 MB, free: 106.6 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.00115/0.3453, allocations: 0.709 MB / 470 MB, free: 105.9 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004824/0.3457, allocations: 0.7569 MB / 470.8 MB, free: 105.1 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002345/0.3481, allocations: 2.145 MB / 472.9 MB, free: 103.1 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.214e-06/0.3481, allocations: 12 kB / 472.9 MB, free: 103.1 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.3481, allocations: 0 / 472.9 MB, free: 103.1 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.3481, allocations: 3.984 kB / 473 MB, free: 103.1 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003352/0.3515, allocations: 3.499 MB / 476.4 MB, free: 99.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.665e-05/0.3515, allocations: 140 kB / 476.6 MB, free: 99.46 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003642/0.3519, allocations: 150.1 kB / 476.7 MB, free: 99.32 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.943e-06/0.3519, allocations: 8.062 kB / 476.7 MB, free: 99.31 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.264e-05/0.352, allocations: 60 kB / 476.8 MB, free: 99.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-06/0.352, allocations: 7.984 kB / 476.8 MB, free: 99.24 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.352, allocations: 0 / 476.8 MB, free: 99.24 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001795/0.3538, allocations: 2.191 MB / 479 MB, free: 97.03 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009275/0.3547, allocations: 0.7784 MB / 479.8 MB, free: 96.25 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003069/0.355, allocations: 16 kB / 479.8 MB, free: 96.23 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005828/0.3556, allocations: 35.95 kB / 479.8 MB, free: 96.2 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001443/0.3557, allocations: 100.5 kB / 479.9 MB, free: 96.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.076e-05/0.3558, allocations: 65.44 kB / 480 MB, free: 96.04 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003122/0.3589, allocations: 3.616 MB / 483.6 MB, free: 92.45 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3589, allocations: 0 / 483.6 MB, free: 92.45 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001683/0.3606, allocations: 1.084 MB / 484.7 MB, free: 91.44 MB / 410.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.003116/0.3637, allocations: 3.942 MB / 488.6 MB, free: 87.7 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001504/0.3652, allocations: 1.363 MB / 490 MB, free: 86.3 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.3652, allocations: 4 kB / 490 MB, free: 86.29 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005624/0.3658, allocations: 0.7361 MB / 490.7 MB, free: 85.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003322/0.3691, allocations: 1.174 MB / 491.9 MB, free: 84.33 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03582/0.4049, allocations: 30.43 MB / 0.5101 GB, free: 53.11 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001307/0.4062, allocations: 2.105 MB / 0.5121 GB, free: 50.98 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001726/0.408, allocations: 0.6846 MB / 0.5128 GB, free: 50.29 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001308/0.4093, allocations: 2.394 MB / 0.5152 GB, free: 47.89 MB / 410.7 MB Notification: Performance of SimCode: time 2.094e-06/0.4093, allocations: 0 / 0.5152 GB, free: 47.89 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2961/0.7054, allocations: 116.8 MB / 0.6293 GB, free: 144.4 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.17/13.88, allocations: 7.375 kB / 0.6293 GB, free: 144.4 MB / 458.7 MB " [Timeout remaining time 646] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable mp1.S.v from file Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! Error: Could not read variable mp2.S.v in file Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable mp2.S.v from file Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! Error: Could not read variable mp3.S.v in file Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable mp3.S.v from file Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! Error: Could not read variable mp4.S.v in file Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable mp4.S.v from file Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! Error: Could not read variable v.p.v in file Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv. Warning: Get data of variable v.p.v from file Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.83062709774822]