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.001407/0.001407, allocations: 114 kB / 20.43 MB, free: 1.457 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.00149/0.00149, allocations: 213.1 kB / 23.74 MB, free: 4.672 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.468/1.468, allocations: 230.5 MB / 257.4 MB, free: 8 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.002098/0.002098, allocations: 63.89 kB / 377.8 MB, free: 2.988 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2628/0.2649, allocations: 53.41 MB / 431.2 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.02237/0.2873, allocations: 15.37 MB / 446.5 MB, free: 7.223 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03726/0.3245, allocations: 20.86 MB / 467.4 MB, free: 2.277 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003773/0.3283, allocations: 138.5 kB / 467.5 MB, free: 2.141 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003953/0.3323, allocations: 1.269 MB / 468.8 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008967/0.3412, allocations: 2.413 MB / 471.2 MB, free: 14.43 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005037/0.3463, allocations: 1.457 MB / 472.7 MB, free: 12.97 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01165/0.3579, allocations: 6.735 MB / 479.4 MB, free: 6.219 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008106/0.3587, allocations: 274.2 kB / 479.7 MB, free: 5.922 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00215/0.3609, allocations: 1.178 MB / 480.9 MB, free: 4.738 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0018/0.3627, allocations: 1.145 MB / 482 MB, free: 3.586 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002044/0.3629, allocations: 76 kB / 482.1 MB, free: 3.512 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004341/0.3672, allocations: 1.479 MB / 483.6 MB, free: 2.031 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004411/0.3677, allocations: 341.5 kB / 483.9 MB, free: 1.695 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001711/0.3694, allocations: 1.432 MB / 485.3 MB, free: 260 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007145/0.3765, allocations: 4.009 MB / 489.3 MB, free: 12.23 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.3765, allocations: 0 / 489.3 MB, free: 12.23 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3765, allocations: 0 / 489.3 MB, free: 12.23 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.544e-05/0.3766, allocations: 0 / 489.3 MB, free: 12.23 MB / 398.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.007484/0.3841, allocations: 3.886 MB / 493.2 MB, free: 8.281 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.326e-05/0.3841, allocations: 8.031 kB / 493.2 MB, free: 8.273 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001926/0.3843, allocations: 98.5 kB / 493.3 MB, free: 8.168 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008721/0.3852, allocations: 433.3 kB / 493.8 MB, free: 7.742 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005574/0.3908, allocations: 2.353 MB / 496.1 MB, free: 5.297 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.949e-05/0.3908, allocations: 33 kB / 496.1 MB, free: 5.262 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000216/0.391, allocations: 59.94 kB / 496.2 MB, free: 5.203 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002149/0.3932, allocations: 0.7343 MB / 496.9 MB, free: 4.465 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.093e-05/0.3932, allocations: 0 / 496.9 MB, free: 4.465 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001056/0.3933, allocations: 20 kB / 497 MB, free: 4.445 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.826e-05/0.3934, allocations: 27.98 kB / 497 MB, free: 4.418 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002507/0.3959, allocations: 0.8085 MB / 497.8 MB, free: 3.605 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008905/0.4048, allocations: 3.058 MB / 0.4891 GB, free: 492 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001887/0.4067, allocations: 0.5203 MB / 0.4896 GB, free: 15.95 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001506/0.4082, allocations: 0.5769 MB / 0.4902 GB, free: 15.37 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0427/0.4509, allocations: 13.78 MB / 0.5036 GB, free: 1.203 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008274/0.4517, allocations: 369.6 kB / 0.504 GB, free: 0.8281 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.645e-06/0.4517, allocations: 0 / 0.504 GB, free: 0.8281 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002532/0.4542, allocations: 1.122 MB / 0.5051 GB, free: 15.7 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.267e-05/0.4543, allocations: 63.34 kB / 0.5051 GB, free: 15.62 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004237/0.4585, allocations: 3.087 MB / 0.5082 GB, free: 12.54 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.467e-05/0.4586, allocations: 37.64 kB / 0.5082 GB, free: 12.5 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00157/0.4602, allocations: 1.593 MB / 0.5098 GB, free: 10.89 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002182/0.4604, allocations: 174.5 kB / 0.5099 GB, free: 10.72 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003513/0.4607, allocations: 230.4 kB / 0.5101 GB, free: 10.49 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001725/0.4609, allocations: 341.9 kB / 0.5105 GB, free: 10.15 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006271/0.4615, allocations: 241.9 kB / 0.5107 GB, free: 9.914 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009389/0.4625, allocations: 0.6018 MB / 0.5113 GB, free: 9.137 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001561/0.464, allocations: 0.8972 MB / 0.5122 GB, free: 8.066 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-05/0.4641, allocations: 4 kB / 0.5122 GB, free: 8.062 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002452/0.4665, allocations: 1.266 MB / 0.5134 GB, free: 6.789 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.992e-05/0.4665, allocations: 12 kB / 0.5134 GB, free: 6.777 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00013/0.4667, allocations: 80 kB / 0.5135 GB, free: 6.699 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.566e-05/0.4667, allocations: 16 kB / 0.5135 GB, free: 6.684 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007541/0.4675, allocations: 204.1 kB / 0.5137 GB, free: 6.484 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.083e-05/0.4675, allocations: 23.92 kB / 0.5137 GB, free: 6.461 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001181/0.4687, allocations: 111.3 kB / 0.5138 GB, free: 6.352 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001143/0.4688, allocations: 67.98 kB / 0.5139 GB, free: 6.285 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.0008649/0.4697, allocations: 456.5 kB / 0.5143 GB, free: 5.832 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004478/0.4701, allocations: 425.3 kB / 0.5147 GB, free: 5.414 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002691/0.4728, allocations: 1.203 MB / 0.5159 GB, free: 4.203 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.667e-06/0.4728, allocations: 7.938 kB / 0.5159 GB, free: 4.195 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.4728, allocations: 0 / 0.5159 GB, free: 4.195 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.243e-06/0.4728, allocations: 3.984 kB / 0.5159 GB, free: 4.191 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00386/0.4767, allocations: 2.122 MB / 0.518 GB, free: 2.008 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000103/0.4768, allocations: 68 kB / 0.5181 GB, free: 1.941 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004939/0.4773, allocations: 95.92 kB / 0.5181 GB, free: 1.848 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.418e-06/0.4773, allocations: 7.984 kB / 0.5182 GB, free: 1.84 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.091e-05/0.4773, allocations: 32 kB / 0.5182 GB, free: 1.809 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.959e-06/0.4773, allocations: 0 / 0.5182 GB, free: 1.809 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.4773, allocations: 4 kB / 0.5182 GB, free: 1.805 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002412/0.4798, allocations: 1.347 MB / 0.5195 GB, free: 444 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009776/0.4807, allocations: 443 kB / 0.5199 GB, free: 0 / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003132/0.4811, allocations: 12.08 kB / 0.5199 GB, free: 15.98 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006669/0.4817, allocations: 35.95 kB / 0.52 GB, free: 15.95 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001593/0.4819, allocations: 63.81 kB / 0.52 GB, free: 15.89 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.282e-05/0.482, allocations: 39.98 kB / 0.5201 GB, free: 15.85 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003455/0.4854, allocations: 2.007 MB / 0.522 GB, free: 13.85 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.4854, allocations: 4 kB / 0.522 GB, free: 13.84 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001916/0.4873, allocations: 0.593 MB / 0.5226 GB, free: 13.25 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.004177/0.4915, allocations: 2.577 MB / 0.5251 GB, free: 10.64 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001765/0.4933, allocations: 0.7779 MB / 0.5259 GB, free: 9.836 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.4933, allocations: 1.312 kB / 0.5259 GB, free: 9.836 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008123/0.4941, allocations: 431 kB / 0.5263 GB, free: 9.391 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002975/0.4971, allocations: 0.6317 MB / 0.5269 GB, free: 8.754 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2338/0.7308, allocations: 17.05 MB / 0.5436 GB, free: 100.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007824/0.7316, allocations: 1.712 MB / 0.5452 GB, free: 99.68 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009545/0.7326, allocations: 362.6 kB / 0.5456 GB, free: 99.66 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009174/0.7335, allocations: 1.258 MB / 0.5468 GB, free: 98.64 MB / 446.1 MB Notification: Performance of SimCode: time 1.082e-06/0.7335, allocations: 3 kB / 0.5468 GB, free: 98.64 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09686/0.8303, allocations: 63.83 MB / 0.6092 GB, free: 38.35 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.61/20.44, allocations: 7.859 kB / 0.6092 GB, free: 38.34 MB / 446.1 MB " [Timeout remaining time 639] (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: 23.11497492199851]