Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002092/0.002092, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.051/2.051, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001116/0.001115, allocations: 86.8 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 1.979e-05/1.989e-05, allocations: 4 kB / 314.8 MB, free: 9.16 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3386/0.3386, allocations: 47.57 MB / 362.3 MB, free: 45.83 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1641/0.5028, allocations: 101.7 MB / 464 MB, free: 0.5664 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002865/0.5031, allocations: 75.95 kB / 464.1 MB, free: 0.4922 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.8973/1.4, allocations: 186.8 MB / 0.6357 GB, free: 2.695 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.565e-06/1.4, allocations: 0 / 0.6357 GB, free: 2.695 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0004796/1.401, allocations: 84 kB / 0.6357 GB, free: 2.613 MB / 395.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.01192/1.413, allocations: 4.677 MB / 0.6403 GB, free: 13.87 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.293e-05/1.413, allocations: 11.97 kB / 0.6403 GB, free: 13.86 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001922/1.415, allocations: 0.7487 MB / 0.6411 GB, free: 13.1 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0143/1.429, allocations: 4.52 MB / 0.6455 GB, free: 8.496 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.504e-05/1.429, allocations: 35.89 kB / 0.6455 GB, free: 8.461 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004522/1.43, allocations: 67.89 kB / 0.6456 GB, free: 8.395 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00343/1.433, allocations: 1.313 MB / 0.6469 GB, free: 7.082 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003333/1.437, allocations: 1.328 MB / 0.6481 GB, free: 5.684 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.325e-05/1.437, allocations: 8 kB / 0.6482 GB, free: 5.676 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001764/1.437, allocations: 0 / 0.6482 GB, free: 5.676 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.429e-05/1.437, allocations: 39.97 kB / 0.6482 GB, free: 5.637 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3169/1.754, allocations: 5.654 MB / 0.6537 GB, free: 56.29 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001859/1.756, allocations: 0.8545 MB / 0.6545 GB, free: 56.26 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001723/1.757, allocations: 1.127 MB / 0.6556 GB, free: 56.25 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09793/1.855, allocations: 71.86 MB / 0.7258 GB, free: 19.88 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001136/1.857, allocations: 497.2 kB / 0.7263 GB, free: 19.82 MB / 427.1 MB Notification: Performance of pre-optimization done (n=85): time 5.73e-06/1.857, allocations: 0 / 0.7263 GB, free: 19.82 MB / 427.1 MB Notification: Performance of matching and sorting (n=85): time 0.003938/1.861, allocations: 1.427 MB / 0.7277 GB, free: 19.41 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003148/1.861, allocations: 484.6 kB / 0.7282 GB, free: 18.84 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01032/1.871, allocations: 4.405 MB / 0.7325 GB, free: 18.43 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002836/1.872, allocations: 33.06 kB / 0.7325 GB, free: 18.39 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003017/1.875, allocations: 2.366 MB / 0.7348 GB, free: 18.01 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00056/1.875, allocations: 292.9 kB / 0.7351 GB, free: 17.87 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001143/1.875, allocations: 1.031 kB / 0.7351 GB, free: 17.87 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 0.0007346/1.876, allocations: 372.4 kB / 0.7354 GB, free: 33.55 MB / 443.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007834/1.877, allocations: 314.6 kB / 0.7357 GB, free: 33.55 MB / 443.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001124/1.878, allocations: 1.082 MB / 0.7368 GB, free: 32.55 MB / 443.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001202/1.879, allocations: 499.7 kB / 0.7373 GB, free: 32.54 MB / 443.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-05/1.879, allocations: 7.844 kB / 0.7373 GB, free: 32.54 MB / 443.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003088/1.883, allocations: 1.311 MB / 0.7386 GB, free: 32.46 MB / 443.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.537e-05/1.883, allocations: 15.59 kB / 0.7386 GB, free: 32.46 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002924/1.883, allocations: 163.7 kB / 0.7387 GB, free: 32.46 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.164e-05/1.883, allocations: 36.88 kB / 0.7388 GB, free: 32.46 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002156/1.885, allocations: 366.4 kB / 0.7391 GB, free: 32.46 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.87e-05/1.885, allocations: 53 kB / 0.7392 GB, free: 32.46 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003689/1.889, allocations: 175.3 kB / 0.7393 GB, free: 32.42 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004046/1.889, allocations: 122.7 kB / 0.7394 GB, free: 32.42 MB / 443.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 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004179/1.89, allocations: 179.3 kB / 0.7396 GB, free: 32.31 MB / 443.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001196/1.891, allocations: 0.7209 MB / 0.7403 GB, free: 31.94 MB / 443.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008318/1.899, allocations: 2.088 MB / 0.7424 GB, free: 31.8 MB / 443.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.691e-05/1.899, allocations: 13.62 kB / 0.7424 GB, free: 31.8 MB / 443.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.674e-06/1.899, allocations: 0 / 0.7424 GB, free: 31.8 MB / 443.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/1.899, allocations: 3.75 kB / 0.7424 GB, free: 31.8 MB / 443.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009031/1.908, allocations: 3.554 MB / 0.7458 GB, free: 31.4 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002824/1.909, allocations: 142.1 kB / 0.746 GB, free: 31.4 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001417/1.91, allocations: 160.5 kB / 0.7461 GB, free: 31.4 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.195e-05/1.91, allocations: 5.156 kB / 0.7461 GB, free: 31.4 MB / 443.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001444/1.91, allocations: 58.14 kB / 0.7462 GB, free: 31.4 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.955e-06/1.91, allocations: 4.781 kB / 0.7462 GB, free: 31.4 MB / 443.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.151e-06/1.91, allocations: 3.953 kB / 0.7462 GB, free: 31.4 MB / 443.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003969/1.914, allocations: 2.053 MB / 0.7482 GB, free: 30.71 MB / 443.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00285/1.917, allocations: 0.935 MB / 0.7491 GB, free: 30.17 MB / 443.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001436/1.919, allocations: 16.8 kB / 0.7491 GB, free: 30.17 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00298/1.922, allocations: 38.02 kB / 0.7492 GB, free: 30.17 MB / 443.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004079/1.922, allocations: 99.47 kB / 0.7493 GB, free: 30.17 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001876/1.922, allocations: 65.62 kB / 0.7493 GB, free: 30.17 MB / 443.1 MB Notification: Performance of sorting global known variables: time 0.007975/1.93, allocations: 3.261 MB / 0.7525 GB, free: 29.92 MB / 443.1 MB Notification: Performance of sort global known variables: time 1.263e-06/1.93, allocations: 0 / 0.7525 GB, free: 29.92 MB / 443.1 MB Notification: Performance of remove unused functions: time 0.004218/1.935, allocations: 1.12 MB / 0.7536 GB, free: 29.9 MB / 443.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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002702/1.937, allocations: 1.302 MB / 0.7549 GB, free: 29.79 MB / 443.1 MB Notification: Performance of simCode: created initialization part: time 0.002754/1.94, allocations: 1.246 MB / 0.7561 GB, free: 29.53 MB / 443.1 MB Notification: Performance of simCode: created event and clocks part: time 9.498e-06/1.94, allocations: 7.047 kB / 0.7561 GB, free: 29.53 MB / 443.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001236/1.942, allocations: 0.7095 MB / 0.7568 GB, free: 29.27 MB / 443.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005559/1.947, allocations: 0.9499 MB / 0.7577 GB, free: 29.21 MB / 443.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01475/1.962, allocations: 6.117 MB / 0.7637 GB, free: 27.32 MB / 443.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002729/1.965, allocations: 2.721 MB / 0.7664 GB, free: 26.53 MB / 443.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009138/1.966, allocations: 314.3 kB / 0.7667 GB, free: 26.52 MB / 443.1 MB Notification: Performance of SimCode: time 1.142e-06/1.966, allocations: 0 / 0.7667 GB, free: 26.52 MB / 443.1 MB Notification: Performance of Templates: time 0.4608/2.427, allocations: 68.78 MB / 0.8338 GB, free: 87.78 MB / 459.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches