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.001362/0.001362, allocations: 113.6 kB / 21.19 MB, free: 0.7031 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.001529/0.001529, allocations: 208.6 kB / 24.49 MB, free: 4.055 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.417/1.417, allocations: 207.6 MB / 235.3 MB, free: 10 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",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.002034/0.002034, allocations: 58.86 kB / 347.2 MB, free: 10.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.265/0.2671, allocations: 49.16 MB / 396.3 MB, free: 9.023 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02403/0.2911, allocations: 25.45 MB / 421.8 MB, free: 6.211 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03487/0.326, allocations: 21.41 MB / 443.2 MB, free: 4.344 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007511/0.3335, allocations: 277 kB / 443.5 MB, free: 4.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005931/0.3394, allocations: 1.737 MB / 445.2 MB, free: 2.328 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01419/0.3536, allocations: 3.27 MB / 448.5 MB, free: 15.03 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00629/0.3599, allocations: 1.593 MB / 450.1 MB, free: 13.43 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02195/0.3818, allocations: 12.47 MB / 462.5 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00135/0.3832, allocations: 0.5083 MB / 463.1 MB, free: 388 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00349/0.3867, allocations: 2.002 MB / 465.1 MB, free: 14.37 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003735/0.3904, allocations: 2.057 MB / 467.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004776/0.3909, allocations: 132 kB / 467.2 MB, free: 12.17 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004731/0.3956, allocations: 1.226 MB / 468.5 MB, free: 10.94 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008092/0.3964, allocations: 0.6049 MB / 469.1 MB, free: 10.33 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00387/0.4003, allocations: 2.639 MB / 471.7 MB, free: 7.676 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01141/0.4117, allocations: 6.71 MB / 478.4 MB, free: 0.9336 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.4117, allocations: 0 / 478.4 MB, free: 0.9336 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.4117, allocations: 0 / 478.4 MB, free: 0.9336 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002087/0.4119, allocations: 0 / 478.4 MB, free: 0.9336 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.01164/0.4236, allocations: 6.898 MB / 485.3 MB, free: 9.949 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.703e-05/0.4236, allocations: 15.98 kB / 485.3 MB, free: 9.934 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002595/0.4239, allocations: 161.1 kB / 485.5 MB, free: 9.766 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001173/0.4251, allocations: 0.788 MB / 486.3 MB, free: 8.973 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008488/0.4335, allocations: 4.403 MB / 490.7 MB, free: 4.453 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.419e-05/0.4336, allocations: 77.94 kB / 490.8 MB, free: 4.375 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003198/0.4339, allocations: 95.95 kB / 490.9 MB, free: 4.281 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002439/0.4364, allocations: 1.305 MB / 492.2 MB, free: 2.961 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.329e-05/0.4364, allocations: 0 / 492.2 MB, free: 2.961 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001167/0.4365, allocations: 39.94 kB / 492.2 MB, free: 2.922 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.196e-05/0.4366, allocations: 39.97 kB / 492.2 MB, free: 2.883 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002675/0.4392, allocations: 1.496 MB / 493.7 MB, free: 1.387 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0112/0.4504, allocations: 5.583 MB / 499.3 MB, free: 11.72 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001819/0.4523, allocations: 0.8757 MB / 0.4885 GB, free: 10.82 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001775/0.454, allocations: 1.067 MB / 0.4895 GB, free: 9.754 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05235/0.5064, allocations: 27.21 MB / 0.5161 GB, free: 13.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001105/0.5075, allocations: 0.5567 MB / 0.5166 GB, free: 13.23 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 4.098e-06/0.5075, allocations: 0 / 0.5166 GB, free: 13.23 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.003856/0.5113, allocations: 1.915 MB / 0.5185 GB, free: 11.31 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.913e-05/0.5114, allocations: 67.98 kB / 0.5186 GB, free: 11.23 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009278/0.5207, allocations: 5.636 MB / 0.5241 GB, free: 5.629 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001728/0.5209, allocations: 37.7 kB / 0.5241 GB, free: 5.586 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003147/0.524, allocations: 2.957 MB / 0.527 GB, free: 2.617 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004413/0.5244, allocations: 313.4 kB / 0.5273 GB, free: 2.309 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007941/0.5252, allocations: 427 kB / 0.5277 GB, free: 1.887 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.5254, allocations: 305.1 kB / 0.528 GB, free: 1.586 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009816/0.5264, allocations: 403.8 kB / 0.5284 GB, free: 1.191 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001505/0.5279, allocations: 1.091 MB / 0.5294 GB, free: 15.77 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00256/0.5304, allocations: 1.615 MB / 0.531 GB, free: 13.82 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.765e-05/0.5304, allocations: 8 kB / 0.531 GB, free: 13.81 MB / 462.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004154/0.5346, allocations: 2.25 MB / 0.5332 GB, free: 11.55 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.278e-05/0.5346, allocations: 12 kB / 0.5332 GB, free: 11.54 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002564/0.5349, allocations: 164 kB / 0.5334 GB, free: 11.38 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.7e-05/0.5349, allocations: 40.03 kB / 0.5334 GB, free: 11.34 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001269/0.5362, allocations: 355.4 kB / 0.5338 GB, free: 11 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.89e-05/0.5363, allocations: 43.86 kB / 0.5338 GB, free: 10.95 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001998/0.5383, allocations: 190.6 kB / 0.534 GB, free: 10.77 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002536/0.5385, allocations: 139.9 kB / 0.5341 GB, free: 10.63 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.001642/0.5401, allocations: 0.7119 MB / 0.5348 GB, free: 9.906 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001349/0.5415, allocations: 0.757 MB / 0.5356 GB, free: 9.145 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005277/0.5468, allocations: 2.167 MB / 0.5377 GB, free: 6.965 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.999e-06/0.5468, allocations: 8 kB / 0.5377 GB, free: 6.957 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.5468, allocations: 0 / 0.5377 GB, free: 6.957 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.233e-05/0.5468, allocations: 15.92 kB / 0.5377 GB, free: 6.941 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008505/0.5553, allocations: 3.592 MB / 0.5412 GB, free: 3.285 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002228/0.5555, allocations: 144 kB / 0.5413 GB, free: 3.145 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008131/0.5563, allocations: 151.8 kB / 0.5415 GB, free: 2.996 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.269e-05/0.5564, allocations: 12 kB / 0.5415 GB, free: 2.984 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001379/0.5565, allocations: 63.94 kB / 0.5416 GB, free: 2.922 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.526e-06/0.5565, allocations: 0 / 0.5416 GB, free: 2.922 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.311e-06/0.5565, allocations: 8 kB / 0.5416 GB, free: 2.914 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004097/0.5606, allocations: 2.186 MB / 0.5437 GB, free: 0.6992 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002907/0.5635, allocations: 0.7858 MB / 0.5445 GB, free: 15.9 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001238/0.5647, allocations: 15.94 kB / 0.5445 GB, free: 15.89 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001589/0.5663, allocations: 39.95 kB / 0.5445 GB, free: 15.85 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002416/0.5666, allocations: 104.5 kB / 0.5446 GB, free: 15.74 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001399/0.5667, allocations: 71.98 kB / 0.5447 GB, free: 15.67 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.007353/0.5741, allocations: 3.629 MB / 0.5482 GB, free: 12.07 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.5741, allocations: 0 / 0.5482 GB, free: 12.07 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003008/0.5771, allocations: 1.096 MB / 0.5493 GB, free: 10.98 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.006391/0.5835, allocations: 3.861 MB / 0.5531 GB, free: 7.074 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00263/0.5861, allocations: 1.37 MB / 0.5544 GB, free: 5.664 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.5861, allocations: 256 / 0.5544 GB, free: 5.664 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001233/0.5873, allocations: 0.7398 MB / 0.5551 GB, free: 4.875 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004535/0.5919, allocations: 0.9811 MB / 0.5561 GB, free: 3.891 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2274/0.8193, allocations: 30.75 MB / 0.5861 GB, free: 139.9 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002856/0.8222, allocations: 2.602 MB / 0.5887 GB, free: 137.3 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002238/0.8244, allocations: 0.6942 MB / 0.5893 GB, free: 136.7 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002112/0.8265, allocations: 2.413 MB / 0.5917 GB, free: 134.3 MB / 478.1 MB Notification: Performance of SimCode: time 1.433e-06/0.8265, allocations: 0 / 0.5917 GB, free: 134.3 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1708/0.9974, allocations: 113.2 MB / 0.7022 GB, free: 20.96 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 31.95/32.95, allocations: 8.797 kB / 0.7022 GB, free: 20.95 MB / 478.1 MB " [Timeout remaining time 627] (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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 36.99367566406727]