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.001524/0.001524, allocations: 119.9 kB / 17.79 MB, free: 5.137 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.001504/0.001504, allocations: 185.2 kB / 20.73 MB, free: 2.207 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.405/1.405, allocations: 225.6 MB / 249.1 MB, free: 3.605 MB / 190.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.001516/0.001516, allocations: 51.91 kB / 365.6 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1142, allocations: 52.14 MB / 417.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.017/0.1312, allocations: 15.34 MB / 433.1 MB, free: 13.21 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2561/0.3873, allocations: 20.8 MB / 453.9 MB, free: 6.836 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003321/0.3906, allocations: 89.06 kB / 454 MB, free: 6.836 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004249/0.3948, allocations: 1.273 MB / 455.3 MB, free: 6.762 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008138/0.403, allocations: 2.371 MB / 457.6 MB, free: 6.02 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005024/0.408, allocations: 1.449 MB / 459.1 MB, free: 5.645 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01319/0.4212, allocations: 6.626 MB / 465.7 MB, free: 4.508 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000919/0.4221, allocations: 277.9 kB / 466 MB, free: 4.398 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002372/0.4245, allocations: 1.136 MB / 467.1 MB, free: 4.078 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001681/0.4262, allocations: 1.142 MB / 468.3 MB, free: 3.621 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002122/0.4264, allocations: 74.25 kB / 468.3 MB, free: 3.621 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004794/0.4312, allocations: 1.486 MB / 469.8 MB, free: 3.547 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003624/0.4315, allocations: 335.1 kB / 470.2 MB, free: 3.359 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001811/0.4333, allocations: 1.427 MB / 471.6 MB, free: 2.461 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006631/0.44, allocations: 4.002 MB / 475.6 MB, free: 1.047 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.44, allocations: 0 / 475.6 MB, free: 1.047 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.44, allocations: 0 / 475.6 MB, free: 1.047 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000114/0.4401, allocations: 0 / 475.6 MB, free: 1.047 MB / 366.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.007307/0.4474, allocations: 3.968 MB / 479.6 MB, free: 14.33 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.4474, allocations: 9.625 kB / 479.6 MB, free: 14.33 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001436/0.4476, allocations: 102.7 kB / 479.7 MB, free: 14.24 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007002/0.4483, allocations: 430.8 kB / 480.1 MB, free: 14.02 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004247/0.4525, allocations: 2.505 MB / 482.6 MB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.225e-05/0.4526, allocations: 32.78 kB / 482.6 MB, free: 12.19 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001298/0.4527, allocations: 57.14 kB / 482.7 MB, free: 12.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001428/0.4541, allocations: 0.7316 MB / 483.4 MB, free: 11.74 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.708e-05/0.4541, allocations: 0 / 483.4 MB, free: 11.74 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.651e-05/0.4542, allocations: 25.48 kB / 483.4 MB, free: 11.72 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.495e-05/0.4542, allocations: 19.89 kB / 483.5 MB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001512/0.4557, allocations: 0.8173 MB / 484.3 MB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006061/0.4618, allocations: 3.107 MB / 487.4 MB, free: 9.289 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001082/0.4629, allocations: 0.5159 MB / 487.9 MB, free: 9.016 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008896/0.4638, allocations: 0.5707 MB / 488.5 MB, free: 8.711 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03774/0.5015, allocations: 30.13 MB / 0.5064 GB, free: 7.68 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007761/0.5023, allocations: 366.2 kB / 0.5068 GB, free: 7.312 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.405e-06/0.5023, allocations: 0 / 0.5068 GB, free: 7.312 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002601/0.5049, allocations: 1.132 MB / 0.5079 GB, free: 6.172 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.333e-05/0.505, allocations: 59.41 kB / 0.5079 GB, free: 6.102 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004417/0.5094, allocations: 3.087 MB / 0.511 GB, free: 3.016 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001022/0.5095, allocations: 33.7 kB / 0.511 GB, free: 2.977 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001911/0.5114, allocations: 1.588 MB / 0.5125 GB, free: 1.383 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000244/0.5116, allocations: 175.7 kB / 0.5127 GB, free: 1.215 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000356/0.512, allocations: 226.4 kB / 0.5129 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001653/0.5122, allocations: 341.9 kB / 0.5133 GB, free: 0.6484 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005891/0.5128, allocations: 241.9 kB / 0.5135 GB, free: 424 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009261/0.5137, allocations: 0.6098 MB / 0.5141 GB, free: 15.63 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001621/0.5153, allocations: 0.8969 MB / 0.515 GB, free: 14.57 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.656e-06/0.5153, allocations: 4 kB / 0.515 GB, free: 14.56 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002785/0.5181, allocations: 1.263 MB / 0.5162 GB, free: 13.3 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.276e-05/0.5181, allocations: 15.94 kB / 0.5162 GB, free: 13.28 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001257/0.5183, allocations: 83.98 kB / 0.5163 GB, free: 13.2 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.701e-05/0.5183, allocations: 20.75 kB / 0.5163 GB, free: 13.18 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006988/0.519, allocations: 203.7 kB / 0.5165 GB, free: 12.98 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001076/0.5191, allocations: 27.88 kB / 0.5165 GB, free: 12.95 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001443/0.5205, allocations: 111.2 kB / 0.5166 GB, free: 12.84 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001277/0.5207, allocations: 71.94 kB / 0.5167 GB, free: 12.78 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.0009709/0.5216, allocations: 450.1 kB / 0.5171 GB, free: 12.33 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006488/0.5223, allocations: 422.8 kB / 0.5175 GB, free: 11.91 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002944/0.5252, allocations: 1.205 MB / 0.5187 GB, free: 10.71 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.207e-06/0.5252, allocations: 4 kB / 0.5187 GB, free: 10.71 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.5253, allocations: 0 / 0.5187 GB, free: 10.71 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.303e-06/0.5253, allocations: 7.984 kB / 0.5187 GB, free: 10.7 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004489/0.5297, allocations: 2.156 MB / 0.5208 GB, free: 8.484 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001032/0.5299, allocations: 68 kB / 0.5209 GB, free: 8.418 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005617/0.5304, allocations: 87.86 kB / 0.521 GB, free: 8.332 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.715e-06/0.5304, allocations: 4 kB / 0.521 GB, free: 8.328 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.161e-05/0.5305, allocations: 35.98 kB / 0.521 GB, free: 8.293 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.5305, allocations: 3.938 kB / 0.521 GB, free: 8.289 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.5305, allocations: 8.062 kB / 0.521 GB, free: 8.281 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002497/0.533, allocations: 1.339 MB / 0.5223 GB, free: 6.918 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001251/0.5342, allocations: 0.4983 MB / 0.5228 GB, free: 6.398 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003827/0.5346, allocations: 11.98 kB / 0.5228 GB, free: 6.387 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006987/0.5353, allocations: 27.97 kB / 0.5229 GB, free: 6.359 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001875/0.5355, allocations: 64.02 kB / 0.5229 GB, free: 6.297 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.926e-05/0.5356, allocations: 39.98 kB / 0.523 GB, free: 6.258 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002887/0.5385, allocations: 2.007 MB / 0.5249 GB, free: 4.258 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5385, allocations: 0 / 0.5249 GB, free: 4.258 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001656/0.5401, allocations: 0.6008 MB / 0.5255 GB, free: 3.656 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.003972/0.5441, allocations: 2.579 MB / 0.528 GB, free: 1.191 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001667/0.5458, allocations: 0.7669 MB / 0.5288 GB, free: 408 kB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.5458, allocations: 4.375 kB / 0.5288 GB, free: 404 kB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008132/0.5466, allocations: 426.9 kB / 0.5292 GB, free: 15.95 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003083/0.5497, allocations: 0.6386 MB / 0.5298 GB, free: 15.32 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02615/0.5758, allocations: 17.06 MB / 0.5465 GB, free: 13.77 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001453/0.5773, allocations: 1.718 MB / 0.5481 GB, free: 12.02 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001089/0.5784, allocations: 357.3 kB / 0.5485 GB, free: 11.66 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001426/0.5798, allocations: 1.269 MB / 0.5497 GB, free: 10.39 MB / 462.1 MB Notification: Performance of SimCode: time 1.183e-06/0.5798, allocations: 0 / 0.5497 GB, free: 10.39 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.12/0.6998, allocations: 63.2 MB / 0.6114 GB, free: 11.58 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.8/16.5, allocations: 4.375 kB / 0.6114 GB, free: 11.58 MB / 0.5137 GB " [Timeout remaining time 643] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 19.85881303390488]