Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00176/0.00176, allocations: 112 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002092/0.002092, allocations: 181.3 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.425/1.425, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00169/0.00169, allocations: 51.91 kB / 370.4 MB, free: 9.926 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.273/0.2747, allocations: 52.19 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.0163/0.291, allocations: 15.37 MB / 438 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02689/0.3179, allocations: 20.83 MB / 458.8 MB, free: 10.25 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002573/0.3205, allocations: 134.5 kB / 458.9 MB, free: 10.12 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003472/0.324, allocations: 1.273 MB / 460.2 MB, free: 8.84 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007897/0.3319, allocations: 2.409 MB / 462.6 MB, free: 6.41 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004677/0.3365, allocations: 1.457 MB / 464.1 MB, free: 4.949 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01126/0.3478, allocations: 6.645 MB / 470.7 MB, free: 14.29 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007718/0.3486, allocations: 274.2 kB / 471 MB, free: 13.99 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001938/0.3505, allocations: 1.182 MB / 472.2 MB, free: 12.8 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00169/0.3522, allocations: 1.145 MB / 473.3 MB, free: 11.65 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001897/0.3524, allocations: 76 kB / 473.4 MB, free: 11.58 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004046/0.3564, allocations: 1.483 MB / 474.9 MB, free: 10.09 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003847/0.3568, allocations: 337.5 kB / 475.2 MB, free: 9.762 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001577/0.3584, allocations: 1.424 MB / 476.6 MB, free: 8.328 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005852/0.3643, allocations: 4.005 MB / 480.6 MB, free: 4.305 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3643, allocations: 0 / 480.6 MB, free: 4.305 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.3643, allocations: 3.938 kB / 480.6 MB, free: 4.301 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.022e-05/0.3643, allocations: 0 / 480.6 MB, free: 4.301 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.005854/0.3702, allocations: 3.882 MB / 484.5 MB, free: 368 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/0.3702, allocations: 12.03 kB / 484.5 MB, free: 356 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001232/0.3704, allocations: 98.5 kB / 484.6 MB, free: 248 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004905/0.3708, allocations: 433.4 kB / 485.1 MB, free: 15.81 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003654/0.3745, allocations: 2.357 MB / 487.4 MB, free: 13.37 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.426e-05/0.3745, allocations: 37 kB / 487.5 MB, free: 13.33 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001263/0.3747, allocations: 55.95 kB / 487.5 MB, free: 13.27 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001354/0.376, allocations: 0.7382 MB / 488.2 MB, free: 12.53 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.773e-05/0.376, allocations: 4 kB / 488.2 MB, free: 12.52 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.348e-05/0.3761, allocations: 20 kB / 488.3 MB, free: 12.5 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.358e-05/0.3761, allocations: 19.98 kB / 488.3 MB, free: 12.48 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001557/0.3777, allocations: 0.8202 MB / 489.1 MB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005471/0.3831, allocations: 3.039 MB / 492.1 MB, free: 8.555 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001178/0.3843, allocations: 0.5164 MB / 492.7 MB, free: 8.031 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009857/0.3853, allocations: 0.577 MB / 493.2 MB, free: 7.453 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0261/0.4114, allocations: 13.76 MB / 0.4951 GB, free: 9.301 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008048/0.4122, allocations: 369.6 kB / 0.4955 GB, free: 8.926 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.574e-06/0.4122, allocations: 0 / 0.4955 GB, free: 8.926 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002399/0.4146, allocations: 1.126 MB / 0.4966 GB, free: 7.793 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.723e-05/0.4147, allocations: 63.41 kB / 0.4966 GB, free: 7.719 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00413/0.4188, allocations: 3.083 MB / 0.4996 GB, free: 4.637 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.625e-05/0.4189, allocations: 41.69 kB / 0.4997 GB, free: 4.59 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001647/0.4205, allocations: 1.586 MB / 0.5012 GB, free: 2.996 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000216/0.4207, allocations: 174.6 kB / 0.5014 GB, free: 2.824 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003413/0.4211, allocations: 230.3 kB / 0.5016 GB, free: 2.594 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001755/0.4213, allocations: 341.9 kB / 0.5019 GB, free: 2.254 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005707/0.4218, allocations: 241.9 kB / 0.5022 GB, free: 2.016 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000893/0.4227, allocations: 0.6056 MB / 0.5028 GB, free: 1.23 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00151/0.4242, allocations: 0.8974 MB / 0.5036 GB, free: 164 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.681e-06/0.4242, allocations: 0 / 0.5036 GB, free: 164 kB / 414.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002327/0.4266, allocations: 1.262 MB / 0.5049 GB, free: 14.89 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.319e-05/0.4266, allocations: 19.92 kB / 0.5049 GB, free: 14.87 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001213/0.4267, allocations: 80 kB / 0.505 GB, free: 14.79 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.4e-05/0.4268, allocations: 16 kB / 0.505 GB, free: 14.77 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000714/0.4275, allocations: 204.3 kB / 0.5052 GB, free: 14.57 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.914e-05/0.4275, allocations: 27.86 kB / 0.5052 GB, free: 14.55 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00107/0.4286, allocations: 111.3 kB / 0.5053 GB, free: 14.44 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001108/0.4287, allocations: 64 kB / 0.5054 GB, free: 14.38 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.0008432/0.4295, allocations: 457.4 kB / 0.5058 GB, free: 13.92 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004439/0.43, allocations: 421.4 kB / 0.5062 GB, free: 13.5 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002618/0.4326, allocations: 1.207 MB / 0.5074 GB, free: 12.29 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.798e-06/0.4326, allocations: 7.984 kB / 0.5074 GB, free: 12.29 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.4326, allocations: 0 / 0.5074 GB, free: 12.29 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.683e-06/0.4326, allocations: 3.984 kB / 0.5074 GB, free: 12.28 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003459/0.4361, allocations: 2.118 MB / 0.5095 GB, free: 10.1 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001003/0.4362, allocations: 68 kB / 0.5095 GB, free: 10.03 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004557/0.4366, allocations: 91.86 kB / 0.5096 GB, free: 9.941 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.953e-06/0.4366, allocations: 7.938 kB / 0.5096 GB, free: 9.934 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.937e-05/0.4367, allocations: 31.98 kB / 0.5097 GB, free: 9.902 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.995e-06/0.4367, allocations: 0 / 0.5097 GB, free: 9.902 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.4367, allocations: 4 kB / 0.5097 GB, free: 9.898 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002251/0.4389, allocations: 1.347 MB / 0.511 GB, free: 8.527 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008775/0.4398, allocations: 431 kB / 0.5114 GB, free: 8.105 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002796/0.4401, allocations: 12 kB / 0.5114 GB, free: 8.094 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006369/0.4407, allocations: 27.97 kB / 0.5114 GB, free: 8.066 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001585/0.4409, allocations: 67.92 kB / 0.5115 GB, free: 8 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.52e-05/0.441, allocations: 43.98 kB / 0.5115 GB, free: 7.957 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00266/0.4436, allocations: 2.003 MB / 0.5135 GB, free: 5.961 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4436, allocations: 0 / 0.5135 GB, free: 5.961 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001298/0.4449, allocations: 0.6008 MB / 0.5141 GB, free: 5.359 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.00358/0.4485, allocations: 2.566 MB / 0.5166 GB, free: 2.758 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001623/0.4501, allocations: 0.775 MB / 0.5173 GB, free: 1.957 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.4501, allocations: 0 / 0.5173 GB, free: 1.957 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007623/0.4509, allocations: 431.3 kB / 0.5178 GB, free: 1.512 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002606/0.4535, allocations: 0.6467 MB / 0.5184 GB, free: 0.8633 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.227/0.6805, allocations: 17.05 MB / 0.535 GB, free: 110.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001379/0.6818, allocations: 1.713 MB / 0.5367 GB, free: 109.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00115/0.683, allocations: 360.2 kB / 0.5371 GB, free: 109.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001052/0.684, allocations: 1.264 MB / 0.5383 GB, free: 109.2 MB / 446.1 MB Notification: Performance of SimCode: time 1.162e-06/0.684, allocations: 0 / 0.5383 GB, free: 109.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1098/0.7938, allocations: 63.81 MB / 0.6006 GB, free: 52.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.77/19.56, allocations: 6.297 kB / 0.6006 GB, free: 52.89 MB / 446.1 MB " [Timeout remaining time 640] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 22.831950789084658]