Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.001932/0.001932, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 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.00236/0.00236, allocations: 207.8 kB / 23.73 MB, free: 4.391 MB / 14.72 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 1.457/1.457, allocations: 230.5 MB / 257.4 MB, free: 7.766 MB / 206.1 MB " [Timeout remaining time 178] 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.InvertersExtendedModel,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001968/0.001968, allocations: 67.89 kB / 377.7 MB, free: 2.926 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2216/0.2235, allocations: 53.41 MB / 431.1 MB, free: 6.477 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01456/0.2381, allocations: 12.89 MB / 444 MB, free: 9.539 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02402/0.2621, allocations: 17.98 MB / 462 MB, free: 7.492 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002058/0.2642, allocations: 138.5 kB / 462.1 MB, free: 7.355 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00295/0.2671, allocations: 1.149 MB / 463.3 MB, free: 6.203 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006646/0.2738, allocations: 2.409 MB / 465.7 MB, free: 3.773 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00423/0.278, allocations: 1.414 MB / 467.1 MB, free: 2.359 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0101/0.2881, allocations: 6.727 MB / 473.8 MB, free: 11.61 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005555/0.2886, allocations: 274.1 kB / 474.1 MB, free: 11.31 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001692/0.2903, allocations: 1.182 MB / 475.3 MB, free: 10.12 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001481/0.2918, allocations: 1.094 MB / 476.4 MB, free: 9.023 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002201/0.292, allocations: 76 kB / 476.5 MB, free: 8.949 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003251/0.2953, allocations: 1.206 MB / 477.7 MB, free: 7.742 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003489/0.2956, allocations: 337.5 kB / 478 MB, free: 7.41 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00114/0.2968, allocations: 1.052 MB / 479 MB, free: 6.352 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004873/0.3017, allocations: 4.048 MB / 483.1 MB, free: 2.285 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3017, allocations: 0 / 483.1 MB, free: 2.285 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3017, allocations: 4 kB / 483.1 MB, free: 2.281 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.444e-05/0.3017, allocations: 0 / 483.1 MB, free: 2.281 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.005756/0.3075, allocations: 3.886 MB / 487 MB, free: 14.34 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.3075, allocations: 11.98 kB / 487 MB, free: 14.32 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001379/0.3076, allocations: 102.5 kB / 487.1 MB, free: 14.21 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004938/0.3081, allocations: 433.2 kB / 487.5 MB, free: 13.79 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003816/0.3119, allocations: 2.345 MB / 489.9 MB, free: 11.35 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.962e-05/0.312, allocations: 37 kB / 489.9 MB, free: 11.31 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001363/0.3121, allocations: 59.94 kB / 490 MB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001398/0.3135, allocations: 0.7304 MB / 490.7 MB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.466e-05/0.3135, allocations: 0 / 490.7 MB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.198e-05/0.3136, allocations: 20 kB / 490.7 MB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.274e-05/0.3136, allocations: 19.98 kB / 490.7 MB, free: 10.48 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001674/0.3153, allocations: 0.8202 MB / 491.5 MB, free: 9.66 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005379/0.3207, allocations: 2.895 MB / 494.4 MB, free: 6.699 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001227/0.3219, allocations: 0.5319 MB / 495 MB, free: 6.16 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001026/0.3229, allocations: 0.5692 MB / 495.5 MB, free: 5.582 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02638/0.3493, allocations: 13.72 MB / 0.4973 GB, free: 7.48 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007935/0.3501, allocations: 365.6 kB / 0.4977 GB, free: 7.109 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.665e-06/0.3501, allocations: 4 kB / 0.4977 GB, free: 7.105 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002458/0.3526, allocations: 1.126 MB / 0.4988 GB, free: 5.977 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.731e-05/0.3526, allocations: 63.39 kB / 0.4988 GB, free: 5.902 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004077/0.3567, allocations: 3.106 MB / 0.5019 GB, free: 2.797 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.748e-05/0.3568, allocations: 29.7 kB / 0.5019 GB, free: 2.762 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001555/0.3583, allocations: 1.601 MB / 0.5035 GB, free: 1.152 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001677/0.3585, allocations: 166.6 kB / 0.5036 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003138/0.3588, allocations: 226.4 kB / 0.5038 GB, free: 0.7617 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002103/0.359, allocations: 341.9 kB / 0.5042 GB, free: 432 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006072/0.3596, allocations: 245.9 kB / 0.5044 GB, free: 184 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009326/0.3606, allocations: 0.6057 MB / 0.505 GB, free: 15.39 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001611/0.3622, allocations: 0.8934 MB / 0.5059 GB, free: 14.32 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.975e-06/0.3622, allocations: 4 kB / 0.5059 GB, free: 14.32 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002237/0.3644, allocations: 1.27 MB / 0.5071 GB, free: 13.05 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.111e-05/0.3644, allocations: 8 kB / 0.5071 GB, free: 13.04 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001203/0.3645, allocations: 83.98 kB / 0.5072 GB, free: 12.96 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.223e-05/0.3646, allocations: 20 kB / 0.5072 GB, free: 12.94 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007268/0.3653, allocations: 200.4 kB / 0.5074 GB, free: 12.74 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.034e-05/0.3653, allocations: 23.88 kB / 0.5074 GB, free: 12.72 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009699/0.3663, allocations: 119.2 kB / 0.5075 GB, free: 12.6 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001045/0.3664, allocations: 64 kB / 0.5076 GB, free: 12.54 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0007373/0.3671, allocations: 452.5 kB / 0.508 GB, free: 12.09 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004253/0.3676, allocations: 417.4 kB / 0.5084 GB, free: 11.68 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00268/0.3703, allocations: 1.211 MB / 0.5096 GB, free: 10.46 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.574e-06/0.3703, allocations: 4 kB / 0.5096 GB, free: 10.46 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.3703, allocations: 3.938 kB / 0.5096 GB, free: 10.45 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.237e-06/0.3703, allocations: 7.984 kB / 0.5096 GB, free: 10.45 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00353/0.3738, allocations: 2.068 MB / 0.5116 GB, free: 8.316 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001123/0.3739, allocations: 75.98 kB / 0.5117 GB, free: 8.242 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005027/0.3744, allocations: 91.92 kB / 0.5118 GB, free: 8.152 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.261e-06/0.3744, allocations: 4 kB / 0.5118 GB, free: 8.148 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.176e-05/0.3745, allocations: 35.98 kB / 0.5118 GB, free: 8.113 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.3745, allocations: 0 / 0.5118 GB, free: 8.113 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.3745, allocations: 0 / 0.5118 GB, free: 8.113 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002401/0.3769, allocations: 1.347 MB / 0.5132 GB, free: 6.742 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008541/0.3777, allocations: 443.1 kB / 0.5136 GB, free: 6.309 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003091/0.3781, allocations: 15.98 kB / 0.5136 GB, free: 6.293 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007126/0.3788, allocations: 28.03 kB / 0.5136 GB, free: 6.266 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001513/0.3789, allocations: 67.86 kB / 0.5137 GB, free: 6.199 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.636e-05/0.379, allocations: 36 kB / 0.5137 GB, free: 6.164 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002719/0.3817, allocations: 2.007 MB / 0.5157 GB, free: 4.164 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3817, allocations: 0 / 0.5157 GB, free: 4.164 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001359/0.3831, allocations: 0.6008 MB / 0.5163 GB, free: 3.562 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.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 (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.003916/0.387, allocations: 2.577 MB / 0.5188 GB, free: 0.9492 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001649/0.3886, allocations: 0.7672 MB / 0.5195 GB, free: 160 kB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3886, allocations: 0 / 0.5195 GB, free: 160 kB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008268/0.3895, allocations: 435.4 kB / 0.5199 GB, free: 15.71 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002534/0.392, allocations: 0.6356 MB / 0.5206 GB, free: 15.07 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.198/0.59, allocations: 17.03 MB / 0.5372 GB, free: 104.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001086/0.5911, allocations: 1.16 MB / 0.5383 GB, free: 104.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001176/0.5923, allocations: 364 kB / 0.5387 GB, free: 104.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001091/0.5934, allocations: 1.265 MB / 0.5399 GB, free: 103.9 MB / 446.1 MB Notification: Performance of SimCode: time 1.503e-06/0.5934, allocations: 0 / 0.5399 GB, free: 103.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1005/0.6939, allocations: 66.5 MB / 0.6049 GB, free: 42.16 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.9/16.59, allocations: 15.73 kB / 0.6049 GB, free: 42.14 MB / 446.1 MB " [Timeout remaining time 643] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_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_InvertersExtendedModel.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.InvertersExtendedModel_res.csv. Warning: Get data of variable mp1.S.v from file Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv failed! Error: Could not read variable mp2.S.v in file Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv. Warning: Get data of variable mp2.S.v from file Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv failed! Error: Could not read variable v.p.v in file Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv. Warning: Get data of variable v.p.v from file Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.172491868957877]