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.001693/0.001693, allocations: 132.4 kB / 17.79 MB, free: 5.242 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.002024/0.002024, allocations: 210.5 kB / 20.75 MB, free: 2.293 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.515/1.515, allocations: 230.4 MB / 254 MB, free: 15.02 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.002135/0.002135, allocations: 59.89 kB / 373 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1059, allocations: 53.38 MB / 426.3 MB, free: 4.613 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.2145/0.3204, allocations: 15.36 MB / 441.7 MB, free: 1.863 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02748/0.3479, allocations: 20.85 MB / 462.6 MB, free: 3.031 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003957/0.3518, allocations: 133.2 kB / 462.7 MB, free: 2.941 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004994/0.3568, allocations: 1.272 MB / 464 MB, free: 2.27 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01216/0.369, allocations: 2.373 MB / 466.3 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005863/0.3749, allocations: 1.436 MB / 467.8 MB, free: 64 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01254/0.3874, allocations: 6.712 MB / 474.5 MB, free: 12.88 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008647/0.3883, allocations: 274.7 kB / 474.7 MB, free: 12.7 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002521/0.3908, allocations: 1.184 MB / 475.9 MB, free: 12.14 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002588/0.3934, allocations: 1.145 MB / 477.1 MB, free: 11.46 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003568/0.3937, allocations: 74.53 kB / 477.1 MB, free: 11.46 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006903/0.4006, allocations: 1.48 MB / 478.6 MB, free: 10.84 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006798/0.4013, allocations: 339.6 kB / 479 MB, free: 10.57 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002829/0.4042, allocations: 1.425 MB / 480.4 MB, free: 9.633 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007979/0.4121, allocations: 4.014 MB / 484.4 MB, free: 6.457 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.4121, allocations: 0 / 484.4 MB, free: 6.457 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4121, allocations: 3.938 kB / 484.4 MB, free: 6.453 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.006e-05/0.4122, allocations: 0 / 484.4 MB, free: 6.453 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.006649/0.4189, allocations: 3.962 MB / 488.4 MB, free: 2.406 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.014e-05/0.4189, allocations: 8.031 kB / 488.4 MB, free: 2.398 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001511/0.4191, allocations: 102.5 kB / 488.5 MB, free: 2.289 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006015/0.4197, allocations: 429.3 kB / 488.9 MB, free: 1.867 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003962/0.4236, allocations: 2.503 MB / 491.4 MB, free: 15.3 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.841e-05/0.4237, allocations: 37 kB / 491.4 MB, free: 15.26 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001416/0.4238, allocations: 55.95 kB / 491.5 MB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00148/0.4253, allocations: 0.7304 MB / 492.2 MB, free: 14.47 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.762e-05/0.4253, allocations: 4 kB / 492.2 MB, free: 14.46 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001044/0.4254, allocations: 19.98 kB / 492.2 MB, free: 14.45 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.317e-05/0.4255, allocations: 16 kB / 492.3 MB, free: 14.43 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001666/0.4271, allocations: 0.8163 MB / 493.1 MB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00597/0.4331, allocations: 3.104 MB / 496.2 MB, free: 10.43 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001264/0.4344, allocations: 0.5243 MB / 496.7 MB, free: 9.895 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001023/0.4354, allocations: 0.5674 MB / 497.3 MB, free: 9.328 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03267/0.468, allocations: 30.76 MB / 0.5157 GB, free: 6.316 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007973/0.4688, allocations: 365.6 kB / 0.516 GB, free: 5.945 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.705e-06/0.4688, allocations: 0 / 0.516 GB, free: 5.945 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.002564/0.4714, allocations: 1.134 MB / 0.5171 GB, free: 4.805 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.024e-05/0.4715, allocations: 59.34 kB / 0.5172 GB, free: 4.734 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004331/0.4758, allocations: 3.087 MB / 0.5202 GB, free: 1.648 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.6e-05/0.4759, allocations: 37.7 kB / 0.5202 GB, free: 1.605 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00146/0.4773, allocations: 1.582 MB / 0.5218 GB, free: 16 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002281/0.4776, allocations: 182.6 kB / 0.5219 GB, free: 15.83 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003353/0.4779, allocations: 226.4 kB / 0.5222 GB, free: 15.61 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.00017/0.4781, allocations: 345.9 kB / 0.5225 GB, free: 15.26 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006372/0.4787, allocations: 237.9 kB / 0.5227 GB, free: 15.03 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009541/0.4797, allocations: 0.6064 MB / 0.5233 GB, free: 14.25 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001613/0.4813, allocations: 0.9013 MB / 0.5242 GB, free: 13.18 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.476e-06/0.4813, allocations: 4 kB / 0.5242 GB, free: 13.17 MB / 446.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002507/0.4838, allocations: 1.258 MB / 0.5254 GB, free: 11.91 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.634e-05/0.4838, allocations: 8 kB / 0.5254 GB, free: 11.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001187/0.4839, allocations: 83.98 kB / 0.5255 GB, free: 11.82 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.344e-05/0.484, allocations: 20 kB / 0.5255 GB, free: 11.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007468/0.4847, allocations: 210.4 kB / 0.5257 GB, free: 11.59 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.394e-05/0.4848, allocations: 19.94 kB / 0.5257 GB, free: 11.57 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001203/0.486, allocations: 119.2 kB / 0.5259 GB, free: 11.46 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001198/0.4861, allocations: 67.94 kB / 0.5259 GB, free: 11.39 MB / 446.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.0008538/0.4869, allocations: 449.5 kB / 0.5263 GB, free: 10.94 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005239/0.4875, allocations: 421.3 kB / 0.5267 GB, free: 10.53 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002931/0.4904, allocations: 1.205 MB / 0.5279 GB, free: 9.312 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.538e-06/0.4904, allocations: 7.938 kB / 0.5279 GB, free: 9.305 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.4904, allocations: 4 kB / 0.5279 GB, free: 9.301 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.134e-06/0.4904, allocations: 3.984 kB / 0.5279 GB, free: 9.297 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003924/0.4943, allocations: 2.139 MB / 0.53 GB, free: 7.094 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.429e-05/0.4944, allocations: 68 kB / 0.5301 GB, free: 7.027 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005098/0.4949, allocations: 95.86 kB / 0.5302 GB, free: 6.934 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.743e-06/0.4949, allocations: 0 / 0.5302 GB, free: 6.934 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.051e-05/0.495, allocations: 35.98 kB / 0.5302 GB, free: 6.898 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.472e-06/0.495, allocations: 4 kB / 0.5302 GB, free: 6.895 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.495, allocations: 0 / 0.5302 GB, free: 6.895 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002587/0.4976, allocations: 1.347 MB / 0.5315 GB, free: 5.52 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009797/0.4986, allocations: 0.5071 MB / 0.532 GB, free: 4.992 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003339/0.4989, allocations: 11.98 kB / 0.532 GB, free: 4.98 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007138/0.4996, allocations: 35.91 kB / 0.5321 GB, free: 4.945 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001642/0.4998, allocations: 55.89 kB / 0.5321 GB, free: 4.891 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.565e-05/0.4999, allocations: 48.05 kB / 0.5322 GB, free: 4.844 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003138/0.503, allocations: 2.007 MB / 0.5341 GB, free: 2.844 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.503, allocations: 0 / 0.5341 GB, free: 2.844 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001665/0.5047, allocations: 0.5969 MB / 0.5347 GB, free: 2.246 MB / 446.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.004159/0.5088, allocations: 2.578 MB / 0.5372 GB, free: 15.64 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001755/0.5106, allocations: 0.7674 MB / 0.538 GB, free: 14.84 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.5106, allocations: 0 / 0.538 GB, free: 14.84 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008388/0.5114, allocations: 431.2 kB / 0.5384 GB, free: 14.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002946/0.5144, allocations: 0.634 MB / 0.539 GB, free: 13.77 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02676/0.5411, allocations: 17.06 MB / 0.5557 GB, free: 12.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001326/0.5425, allocations: 1.71 MB / 0.5574 GB, free: 10.46 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001161/0.5436, allocations: 361.3 kB / 0.5577 GB, free: 10.1 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001418/0.5451, allocations: 1.265 MB / 0.5589 GB, free: 8.832 MB / 478.1 MB Notification: Performance of SimCode: time 1.002e-06/0.5451, allocations: 4 kB / 0.5589 GB, free: 8.828 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3244/0.8695, allocations: 63.2 MB / 0.6206 GB, free: 165.3 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.97/17.84, allocations: 2.188 kB / 0.6207 GB, free: 165.3 MB / 0.5137 GB " [Timeout remaining time 642] (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: 20.54703164100647]