Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.005074/0.005074, allocations: 110 kB / 21.96 MB, free: 5.25 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001429/0.001429, allocations: 202.5 kB / 25.27 MB, free: 3.238 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.335/1.335, allocations: 207.6 MB / 236 MB, free: 9.988 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001892/0.001892, allocations: 51.92 kB / 348 MB, free: 10.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2658/0.2677, allocations: 49.16 MB / 397.1 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.0233/0.291, allocations: 25.45 MB / 422.6 MB, free: 6.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03195/0.3229, allocations: 21.41 MB / 444 MB, free: 4.301 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00729/0.3302, allocations: 273 kB / 444.3 MB, free: 4.031 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006757/0.337, allocations: 1.741 MB / 446 MB, free: 2.285 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01478/0.3517, allocations: 3.274 MB / 449.3 MB, free: 14.98 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006128/0.3579, allocations: 1.585 MB / 450.9 MB, free: 13.39 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02234/0.3802, allocations: 12.48 MB / 463.3 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00154/0.3817, allocations: 0.5083 MB / 463.8 MB, free: 344 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003822/0.3856, allocations: 1.999 MB / 465.8 MB, free: 14.33 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00417/0.3897, allocations: 2.057 MB / 467.9 MB, free: 12.26 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005299/0.3903, allocations: 136 kB / 468 MB, free: 12.12 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00533/0.3956, allocations: 1.222 MB / 469.3 MB, free: 10.9 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007634/0.3964, allocations: 0.6049 MB / 469.9 MB, free: 10.29 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004187/0.4005, allocations: 2.635 MB / 472.5 MB, free: 7.641 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01205/0.4126, allocations: 6.71 MB / 479.2 MB, free: 0.8984 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.4126, allocations: 0 / 479.2 MB, free: 0.8984 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.4126, allocations: 0 / 479.2 MB, free: 0.8984 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002118/0.4128, allocations: 0 / 479.2 MB, free: 0.8984 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: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.01145/0.4243, allocations: 6.906 MB / 486.1 MB, free: 9.91 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.306e-05/0.4243, allocations: 11.98 kB / 486.1 MB, free: 9.898 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.151e-05/0.4244, allocations: 26 kB / 486.1 MB, free: 9.875 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002515/0.4246, allocations: 169.1 kB / 486.3 MB, free: 9.699 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001388/0.426, allocations: 0.7803 MB / 487.1 MB, free: 8.914 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008457/0.4344, allocations: 4.407 MB / 491.5 MB, free: 4.387 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.897e-05/0.4345, allocations: 69.94 kB / 491.6 MB, free: 4.32 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004448/0.435, allocations: 99.94 kB / 491.7 MB, free: 4.223 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002958/0.4379, allocations: 1.305 MB / 493 MB, free: 2.898 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.279e-05/0.438, allocations: 11.98 kB / 493 MB, free: 2.887 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001644/0.4381, allocations: 35.94 kB / 493 MB, free: 2.852 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.547e-05/0.4382, allocations: 35.98 kB / 493 MB, free: 2.816 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002858/0.441, allocations: 1.492 MB / 494.5 MB, free: 1.324 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01137/0.4524, allocations: 5.587 MB / 0.4884 GB, free: 11.66 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001834/0.4542, allocations: 0.8718 MB / 0.4893 GB, free: 10.76 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001714/0.456, allocations: 1.071 MB / 0.4903 GB, free: 9.688 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0506/0.5066, allocations: 27.21 MB / 0.5169 GB, free: 13.74 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001114/0.5077, allocations: 0.5567 MB / 0.5174 GB, free: 13.17 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 2.986e-06/0.5077, allocations: 3.938 kB / 0.5174 GB, free: 13.16 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.003828/0.5115, allocations: 1.915 MB / 0.5193 GB, free: 11.24 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.581e-05/0.5116, allocations: 68.06 kB / 0.5194 GB, free: 11.16 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009131/0.5207, allocations: 5.632 MB / 0.5249 GB, free: 5.562 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002119/0.5209, allocations: 37.7 kB / 0.5249 GB, free: 5.52 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003069/0.524, allocations: 2.957 MB / 0.5278 GB, free: 2.551 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004839/0.5245, allocations: 317.4 kB / 0.5281 GB, free: 2.238 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007731/0.5252, allocations: 419 kB / 0.5285 GB, free: 1.824 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.5254, allocations: 309.1 kB / 0.5288 GB, free: 1.52 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009747/0.5264, allocations: 395.8 kB / 0.5292 GB, free: 1.133 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001504/0.5279, allocations: 1.099 MB / 0.5302 GB, free: 15.7 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002796/0.5307, allocations: 1.615 MB / 0.5318 GB, free: 13.75 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.827e-05/0.5307, allocations: 8 kB / 0.5318 GB, free: 13.75 MB / 462.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.0044/0.5351, allocations: 2.242 MB / 0.534 GB, free: 11.5 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.401e-05/0.5351, allocations: 12 kB / 0.534 GB, free: 11.48 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002533/0.5354, allocations: 168 kB / 0.5342 GB, free: 11.32 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.908e-05/0.5354, allocations: 32 kB / 0.5342 GB, free: 11.29 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001273/0.5367, allocations: 355.4 kB / 0.5345 GB, free: 10.94 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.519e-05/0.5367, allocations: 59.97 kB / 0.5346 GB, free: 10.88 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002095/0.5388, allocations: 198.6 kB / 0.5348 GB, free: 10.69 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002308/0.5391, allocations: 128 kB / 0.5349 GB, free: 10.56 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.001754/0.5408, allocations: 0.7158 MB / 0.5356 GB, free: 9.836 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002181/0.543, allocations: 0.7531 MB / 0.5363 GB, free: 9.078 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006035/0.549, allocations: 2.171 MB / 0.5385 GB, free: 6.891 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.417e-05/0.5491, allocations: 8 kB / 0.5385 GB, free: 6.883 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.487e-06/0.5491, allocations: 3.938 kB / 0.5385 GB, free: 6.879 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.046e-05/0.5491, allocations: 3.984 kB / 0.5385 GB, free: 6.875 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00778/0.5569, allocations: 3.592 MB / 0.542 GB, free: 3.219 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001909/0.557, allocations: 140 kB / 0.5421 GB, free: 3.082 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007985/0.5578, allocations: 159.8 kB / 0.5423 GB, free: 2.926 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.436e-05/0.5579, allocations: 11.88 kB / 0.5423 GB, free: 2.914 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001126/0.558, allocations: 56 kB / 0.5423 GB, free: 2.859 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.999e-06/0.558, allocations: 7.969 kB / 0.5423 GB, free: 2.852 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.558, allocations: 8 kB / 0.5424 GB, free: 2.844 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003821/0.5618, allocations: 2.202 MB / 0.5445 GB, free: 0.6133 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00193/0.5637, allocations: 0.7782 MB / 0.5453 GB, free: 15.82 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009923/0.5647, allocations: 23.75 kB / 0.5453 GB, free: 15.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001516/0.5662, allocations: 31.95 kB / 0.5453 GB, free: 15.77 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002359/0.5665, allocations: 104.5 kB / 0.5454 GB, free: 15.66 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001434/0.5666, allocations: 68 kB / 0.5455 GB, free: 15.6 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.006783/0.5734, allocations: 3.633 MB / 0.549 GB, free: 12 MB / 478.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5734, allocations: 0 / 0.549 GB, free: 12 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003033/0.5764, allocations: 1.092 MB / 0.5501 GB, free: 10.9 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.006945/0.5834, allocations: 3.853 MB / 0.5539 GB, free: 7.008 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002935/0.5863, allocations: 1.374 MB / 0.5552 GB, free: 5.594 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.5863, allocations: 0 / 0.5552 GB, free: 5.594 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001256/0.5876, allocations: 0.7359 MB / 0.5559 GB, free: 4.809 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004623/0.5922, allocations: 0.9882 MB / 0.5569 GB, free: 3.816 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2293/0.8215, allocations: 30.75 MB / 0.5869 GB, free: 139.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002368/0.8239, allocations: 2.601 MB / 0.5895 GB, free: 137.2 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001917/0.8258, allocations: 0.6897 MB / 0.5901 GB, free: 136.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002037/0.8278, allocations: 2.409 MB / 0.5925 GB, free: 134.2 MB / 478.1 MB Notification: Performance of SimCode: time 1.122e-06/0.8278, allocations: 0 / 0.5925 GB, free: 134.2 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1565/0.9843, allocations: 113.2 MB / 0.703 GB, free: 20.86 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 27.68/28.66, allocations: 11.94 kB / 0.703 GB, free: 20.84 MB / 478.1 MB " [Timeout remaining time 631] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 34.02608547301497]