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.001608/0.001608, allocations: 118.2 kB / 18.49 MB, free: 4.566 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.001911/0.001911, allocations: 218.3 kB / 21.46 MB, free: 1.613 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.501/1.501, allocations: 230.4 MB / 254.7 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001842/0.001842, allocations: 63.89 kB / 373.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1074, allocations: 53.38 MB / 427.1 MB, free: 4.691 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.2355/0.3429, allocations: 15.35 MB / 442.4 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03008/0.3729, allocations: 20.85 MB / 463.3 MB, free: 3.09 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004674/0.3776, allocations: 137.4 kB / 463.4 MB, free: 2.996 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004682/0.3823, allocations: 1.268 MB / 464.7 MB, free: 2.328 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01389/0.3962, allocations: 2.374 MB / 467 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008776/0.405, allocations: 1.44 MB / 468.5 MB, free: 120 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01461/0.4196, allocations: 6.714 MB / 475.2 MB, free: 12.93 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009666/0.4205, allocations: 274.1 kB / 475.4 MB, free: 12.75 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002658/0.4232, allocations: 1.18 MB / 476.6 MB, free: 12.2 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00216/0.4254, allocations: 1.142 MB / 477.8 MB, free: 11.53 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003096/0.4257, allocations: 74.44 kB / 477.8 MB, free: 11.53 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005771/0.4314, allocations: 1.481 MB / 479.3 MB, free: 10.91 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006329/0.4321, allocations: 339.2 kB / 479.7 MB, free: 10.64 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002757/0.4348, allocations: 1.43 MB / 481.1 MB, free: 9.695 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008508/0.4433, allocations: 4.011 MB / 485.1 MB, free: 6.496 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/0.4433, allocations: 0 / 485.1 MB, free: 6.496 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.4433, allocations: 0 / 485.1 MB, free: 6.496 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001075/0.4435, allocations: 0 / 485.1 MB, free: 6.496 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.006952/0.4504, allocations: 3.965 MB / 489.1 MB, free: 2.445 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.832e-05/0.4505, allocations: 16.03 kB / 489.1 MB, free: 2.43 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.841e-05/0.4505, allocations: 13 kB / 489.1 MB, free: 2.418 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000135/0.4506, allocations: 94.5 kB / 489.2 MB, free: 2.316 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005275/0.4511, allocations: 433.3 kB / 489.6 MB, free: 1.891 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003793/0.4549, allocations: 2.499 MB / 492.1 MB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.81e-05/0.455, allocations: 37 kB / 492.1 MB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001368/0.4551, allocations: 51.95 kB / 492.2 MB, free: 15.24 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001445/0.4566, allocations: 0.7408 MB / 492.9 MB, free: 14.49 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.638e-05/0.4566, allocations: 0 / 492.9 MB, free: 14.49 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.055e-05/0.4566, allocations: 16 kB / 492.9 MB, free: 14.47 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.86e-05/0.4567, allocations: 23.98 kB / 493 MB, free: 14.45 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001641/0.4583, allocations: 0.8163 MB / 493.8 MB, free: 13.64 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005768/0.4641, allocations: 3.106 MB / 496.9 MB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001267/0.4653, allocations: 0.5239 MB / 497.4 MB, free: 9.918 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001015/0.4664, allocations: 0.5657 MB / 498 MB, free: 9.352 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03355/0.4999, allocations: 30.76 MB / 0.5163 GB, free: 6.348 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008265/0.5007, allocations: 377.5 kB / 0.5167 GB, free: 5.965 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.545e-06/0.5007, allocations: 0 / 0.5167 GB, free: 5.965 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.002575/0.5033, allocations: 1.122 MB / 0.5178 GB, free: 4.836 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.635e-05/0.5034, allocations: 59.41 kB / 0.5179 GB, free: 4.766 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004308/0.5077, allocations: 3.09 MB / 0.5209 GB, free: 1.676 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001059/0.5078, allocations: 45.64 kB / 0.5209 GB, free: 1.625 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001436/0.5092, allocations: 1.578 MB / 0.5225 GB, free: 40 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002192/0.5094, allocations: 174.8 kB / 0.5226 GB, free: 15.86 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003303/0.5098, allocations: 238.3 kB / 0.5229 GB, free: 15.62 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.5099, allocations: 341.7 kB / 0.5232 GB, free: 15.29 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006362/0.5106, allocations: 249.8 kB / 0.5234 GB, free: 15.04 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009292/0.5115, allocations: 0.5981 MB / 0.524 GB, free: 14.27 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001623/0.5131, allocations: 0.8974 MB / 0.5249 GB, free: 13.2 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.678e-06/0.5131, allocations: 4 kB / 0.5249 GB, free: 13.19 MB / 446.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002575/0.5157, allocations: 1.258 MB / 0.5261 GB, free: 11.93 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.924e-05/0.5157, allocations: 13.72 kB / 0.5261 GB, free: 11.91 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001152/0.5158, allocations: 80.91 kB / 0.5262 GB, free: 11.84 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.579e-05/0.5159, allocations: 16 kB / 0.5262 GB, free: 11.82 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007366/0.5166, allocations: 207.6 kB / 0.5264 GB, free: 11.62 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.83e-05/0.5166, allocations: 27.92 kB / 0.5264 GB, free: 11.59 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001091/0.5177, allocations: 111.3 kB / 0.5265 GB, free: 11.48 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001119/0.5179, allocations: 64 kB / 0.5266 GB, free: 11.42 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.0008358/0.5187, allocations: 457.4 kB / 0.527 GB, free: 10.96 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004198/0.5191, allocations: 417.4 kB / 0.5274 GB, free: 10.55 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00275/0.5219, allocations: 1.206 MB / 0.5286 GB, free: 9.336 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.447e-06/0.5219, allocations: 7.938 kB / 0.5286 GB, free: 9.328 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.5219, allocations: 4 kB / 0.5286 GB, free: 9.324 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.895e-06/0.5219, allocations: 3.984 kB / 0.5286 GB, free: 9.32 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003732/0.5256, allocations: 2.14 MB / 0.5307 GB, free: 7.117 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.687e-05/0.5257, allocations: 68 kB / 0.5308 GB, free: 7.051 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005136/0.5262, allocations: 95.84 kB / 0.5309 GB, free: 6.957 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.889e-06/0.5262, allocations: 4 kB / 0.5309 GB, free: 6.953 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.132e-05/0.5263, allocations: 32 kB / 0.5309 GB, free: 6.922 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.436e-06/0.5263, allocations: 7.625 kB / 0.5309 GB, free: 6.918 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.5263, allocations: 11.88 kB / 0.5309 GB, free: 6.906 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00247/0.5288, allocations: 1.339 MB / 0.5322 GB, free: 5.539 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008796/0.5297, allocations: 0.5061 MB / 0.5327 GB, free: 5.012 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002689/0.5299, allocations: 8 kB / 0.5327 GB, free: 5.004 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006675/0.5306, allocations: 32.03 kB / 0.5328 GB, free: 4.973 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001838/0.5308, allocations: 67.88 kB / 0.5328 GB, free: 4.906 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.552e-05/0.5309, allocations: 36 kB / 0.5329 GB, free: 4.871 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002952/0.5338, allocations: 2.007 MB / 0.5348 GB, free: 2.871 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5338, allocations: 0 / 0.5348 GB, free: 2.871 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001533/0.5353, allocations: 0.5969 MB / 0.5354 GB, free: 2.273 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.004148/0.5395, allocations: 2.582 MB / 0.5379 GB, free: 15.66 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0018/0.5413, allocations: 0.7752 MB / 0.5387 GB, free: 14.86 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.5413, allocations: 4.062 kB / 0.5387 GB, free: 14.86 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008129/0.5421, allocations: 423 kB / 0.5391 GB, free: 14.42 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002845/0.545, allocations: 0.6368 MB / 0.5397 GB, free: 13.78 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02669/0.5716, allocations: 17.06 MB / 0.5564 GB, free: 12.21 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001332/0.573, allocations: 1.71 MB / 0.5581 GB, free: 10.47 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001103/0.5741, allocations: 357.3 kB / 0.5584 GB, free: 10.11 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00137/0.5754, allocations: 1.265 MB / 0.5596 GB, free: 8.848 MB / 478.1 MB Notification: Performance of SimCode: time 9.02e-07/0.5755, allocations: 0 / 0.5596 GB, free: 8.848 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3225/0.8979, allocations: 63.25 MB / 0.6214 GB, free: 165.1 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.47/17.37, allocations: 11.25 kB / 0.6214 GB, free: 165.1 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 21.382176316983532]