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.005065/0.005065, allocations: 102.2 kB / 21.96 MB, free: 5.203 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.001328/0.001328, allocations: 217.5 kB / 25.26 MB, free: 3.137 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.314/1.314, allocations: 207.7 MB / 236.1 MB, free: 9.809 MB / 190.1 MB " [Timeout remaining time 179] 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.001668/0.001668, allocations: 50.58 kB / 348 MB, free: 9.906 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2476/0.2493, allocations: 49.16 MB / 397.1 MB, free: 8.883 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.01874/0.268, allocations: 21.06 MB / 418.2 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02831/0.2963, allocations: 18.64 MB / 436.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00673/0.303, allocations: 276.9 kB / 437.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005962/0.309, allocations: 1.626 MB / 438.7 MB, free: 9.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01528/0.3243, allocations: 3.263 MB / 442 MB, free: 6.125 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00624/0.3305, allocations: 1.539 MB / 443.5 MB, free: 4.582 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.02168/0.3522, allocations: 12.47 MB / 456 MB, free: 8.07 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001395/0.3536, allocations: 0.5122 MB / 456.5 MB, free: 7.523 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003337/0.3569, allocations: 2.006 MB / 458.5 MB, free: 5.508 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003332/0.3603, allocations: 2.057 MB / 460.6 MB, free: 3.438 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004837/0.3607, allocations: 132 kB / 460.7 MB, free: 3.309 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004243/0.365, allocations: 1.183 MB / 461.9 MB, free: 2.125 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009397/0.3659, allocations: 0.6088 MB / 462.5 MB, free: 1.512 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003602/0.3695, allocations: 1.936 MB / 464.4 MB, free: 15.56 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01083/0.3804, allocations: 6.78 MB / 471.2 MB, free: 8.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.3804, allocations: 0 / 471.2 MB, free: 8.75 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3804, allocations: 4 kB / 471.2 MB, free: 8.746 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000197/0.3806, allocations: 0 / 471.2 MB, free: 8.746 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.01033/0.3909, allocations: 6.898 MB / 478.1 MB, free: 1.766 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.626e-05/0.391, allocations: 19.98 kB / 478.1 MB, free: 1.746 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.43e-05/0.391, allocations: 22 kB / 478.2 MB, free: 1.727 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002143/0.3912, allocations: 165.1 kB / 478.3 MB, free: 1.555 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001034/0.3922, allocations: 0.7841 MB / 479.1 MB, free: 0.7656 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007263/0.3995, allocations: 4.411 MB / 483.5 MB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.446e-05/0.3996, allocations: 73.94 kB / 483.6 MB, free: 12.16 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002672/0.3998, allocations: 99.91 kB / 483.7 MB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002387/0.4022, allocations: 1.313 MB / 485 MB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.131e-05/0.4022, allocations: 0 / 485 MB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000131/0.4024, allocations: 43.88 kB / 485 MB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.475e-05/0.4024, allocations: 43.95 kB / 485.1 MB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002603/0.405, allocations: 1.492 MB / 486.6 MB, free: 9.156 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01057/0.4156, allocations: 5.306 MB / 491.9 MB, free: 3.77 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001743/0.4173, allocations: 0.8795 MB / 492.8 MB, free: 2.867 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001608/0.4189, allocations: 1.059 MB / 493.8 MB, free: 1.805 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04882/0.4678, allocations: 27.11 MB / 0.5087 GB, free: 5.957 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001107/0.4689, allocations: 0.5606 MB / 0.5093 GB, free: 5.383 MB / 430.1 MB Notification: Performance of pre-optimization done (n=85): time 3.797e-06/0.4689, allocations: 0 / 0.5093 GB, free: 5.383 MB / 430.1 MB Notification: Performance of matching and sorting (n=85): time 0.003846/0.4727, allocations: 1.911 MB / 0.5111 GB, free: 3.465 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.406e-05/0.4728, allocations: 68 kB / 0.5112 GB, free: 3.387 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008007/0.4808, allocations: 5.632 MB / 0.5167 GB, free: 13.79 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001866/0.481, allocations: 41.7 kB / 0.5167 GB, free: 13.74 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002823/0.4838, allocations: 2.957 MB / 0.5196 GB, free: 10.77 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004412/0.4842, allocations: 321.3 kB / 0.5199 GB, free: 10.45 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005909/0.4848, allocations: 423 kB / 0.5203 GB, free: 10.04 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.485, allocations: 305.1 kB / 0.5206 GB, free: 9.734 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008731/0.4858, allocations: 395.8 kB / 0.521 GB, free: 9.348 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001408/0.4872, allocations: 1.099 MB / 0.5221 GB, free: 7.918 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0025/0.4897, allocations: 1.611 MB / 0.5236 GB, free: 5.973 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-05/0.4898, allocations: 8 kB / 0.5237 GB, free: 5.965 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004298/0.4941, allocations: 2.246 MB / 0.5259 GB, free: 3.711 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.33e-05/0.4941, allocations: 16 kB / 0.5259 GB, free: 3.695 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000225/0.4943, allocations: 164 kB / 0.526 GB, free: 3.535 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.317e-05/0.4944, allocations: 32 kB / 0.5261 GB, free: 3.504 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001181/0.4955, allocations: 355.6 kB / 0.5264 GB, free: 3.156 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.764e-05/0.4956, allocations: 55.8 kB / 0.5264 GB, free: 3.102 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002081/0.4977, allocations: 194.7 kB / 0.5266 GB, free: 2.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002549/0.4979, allocations: 124 kB / 0.5267 GB, free: 2.789 MB / 446.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.001487/0.4994, allocations: 0.7158 MB / 0.5274 GB, free: 2.062 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001076/0.5005, allocations: 0.7569 MB / 0.5282 GB, free: 1.301 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004448/0.5049, allocations: 2.175 MB / 0.5303 GB, free: 15.11 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.728e-06/0.505, allocations: 4 kB / 0.5303 GB, free: 15.1 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.898e-06/0.505, allocations: 7.938 kB / 0.5303 GB, free: 15.09 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.505, allocations: 7.922 kB / 0.5303 GB, free: 15.09 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005996/0.511, allocations: 3.506 MB / 0.5338 GB, free: 11.52 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001916/0.5112, allocations: 140 kB / 0.5339 GB, free: 11.38 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007466/0.5119, allocations: 155.9 kB / 0.534 GB, free: 11.23 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-05/0.5119, allocations: 7.938 kB / 0.534 GB, free: 11.22 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001049/0.512, allocations: 56 kB / 0.5341 GB, free: 11.16 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.648e-06/0.512, allocations: 11.92 kB / 0.5341 GB, free: 11.15 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.512, allocations: 0 / 0.5341 GB, free: 11.15 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003682/0.5157, allocations: 2.202 MB / 0.5363 GB, free: 8.922 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001618/0.5173, allocations: 0.782 MB / 0.537 GB, free: 8.133 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005561/0.5179, allocations: 19.94 kB / 0.537 GB, free: 8.113 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00107/0.519, allocations: 35.95 kB / 0.5371 GB, free: 8.078 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002349/0.5192, allocations: 104.5 kB / 0.5372 GB, free: 7.973 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001516/0.5193, allocations: 72 kB / 0.5372 GB, free: 7.902 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005223/0.5246, allocations: 3.629 MB / 0.5408 GB, free: 4.305 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5246, allocations: 7.938 kB / 0.5408 GB, free: 4.297 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002306/0.5269, allocations: 1.092 MB / 0.5419 GB, free: 3.203 MB / 462.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.005613/0.5325, allocations: 3.857 MB / 0.5456 GB, free: 15.3 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002484/0.535, allocations: 1.366 MB / 0.547 GB, free: 13.9 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.535, allocations: 0 / 0.547 GB, free: 13.9 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001225/0.5362, allocations: 0.7399 MB / 0.5477 GB, free: 13.11 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003402/0.5396, allocations: 0.9842 MB / 0.5486 GB, free: 12.12 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2272/0.7668, allocations: 30.72 MB / 0.5786 GB, free: 145 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001413/0.7682, allocations: 2.115 MB / 0.5807 GB, free: 144.7 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001727/0.7699, allocations: 0.6865 MB / 0.5814 GB, free: 144.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001687/0.7716, allocations: 2.412 MB / 0.5837 GB, free: 142.4 MB / 478.1 MB Notification: Performance of SimCode: time 1.804e-06/0.7716, allocations: 0 / 0.5837 GB, free: 142.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1553/0.9269, allocations: 117.8 MB / 0.6988 GB, free: 25.33 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 28.12/29.04, allocations: 11.94 kB / 0.6988 GB, free: 25.32 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.36657005199231]