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/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_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_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.0009957/0.0009959, allocations: 177.7 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.509/1.509, allocations: 205.3 MB / 214.4 MB, free: 1.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001021/0.001021, allocations: 79.97 kB / 262.4 MB, free: 1.621 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.294e-05/1.297e-05, allocations: 3.938 kB / 315.5 MB, free: 22.71 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08862/0.08864, allocations: 47.58 MB / 363.1 MB, free: 7.07 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3452/0.4339, allocations: 101.9 MB / 465 MB, free: 9.922 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002578/0.4342, allocations: 74.58 kB / 465.1 MB, free: 9.883 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5697/1.004, allocations: 186.8 MB / 0.6366 GB, free: 45.86 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.553e-06/1.004, allocations: 0 / 0.6366 GB, free: 45.86 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002238/1.004, allocations: 88 kB / 0.6367 GB, free: 45.78 MB / 410.7 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.007121/1.011, allocations: 4.683 MB / 0.6413 GB, free: 41.03 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/1.011, allocations: 8.031 kB / 0.6413 GB, free: 41.02 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008996/1.012, allocations: 0.7487 MB / 0.642 GB, free: 40.27 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007239/1.02, allocations: 4.516 MB / 0.6464 GB, free: 35.67 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.122e-05/1.02, allocations: 35.95 kB / 0.6465 GB, free: 35.63 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002/1.02, allocations: 63.91 kB / 0.6465 GB, free: 35.57 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001595/1.021, allocations: 1.32 MB / 0.6478 GB, free: 34.25 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001546/1.023, allocations: 1.32 MB / 0.6491 GB, free: 32.86 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.062e-05/1.023, allocations: 3.938 kB / 0.6491 GB, free: 32.86 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001139/1.023, allocations: 7.984 kB / 0.6491 GB, free: 32.85 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.61e-05/1.023, allocations: 31.98 kB / 0.6491 GB, free: 32.82 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00902/1.032, allocations: 5.661 MB / 0.6547 GB, free: 27.07 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008739/1.033, allocations: 0.8545 MB / 0.6555 GB, free: 26.2 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009358/1.034, allocations: 1.127 MB / 0.6566 GB, free: 25.07 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2872/1.321, allocations: 71.86 MB / 0.7268 GB, free: 55.57 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005785/1.322, allocations: 499 kB / 0.7272 GB, free: 55.52 MB / 426.7 MB Notification: Performance of pre-optimization done (n=85): time 3.176e-06/1.322, allocations: 0 / 0.7272 GB, free: 55.52 MB / 426.7 MB Notification: Performance of matching and sorting (n=85): time 0.001885/1.324, allocations: 1.431 MB / 0.7286 GB, free: 55.1 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/1.324, allocations: 483.2 kB / 0.7291 GB, free: 54.54 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004924/1.329, allocations: 4.403 MB / 0.7334 GB, free: 54.12 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.022e-05/1.329, allocations: 34.05 kB / 0.7334 GB, free: 54.09 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001851/1.331, allocations: 2.94 MB / 0.7363 GB, free: 53.74 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002074/1.331, allocations: 291.5 kB / 0.7366 GB, free: 53.6 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.943e-05/1.331, allocations: 0 / 0.7366 GB, free: 53.6 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.926e-05/1.331, allocations: 363.1 kB / 0.7369 GB, free: 53.29 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004115/1.332, allocations: 318.5 kB / 0.7372 GB, free: 53.29 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006421/1.332, allocations: 1.081 MB / 0.7383 GB, free: 52.3 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006698/1.333, allocations: 497.4 kB / 0.7388 GB, free: 52.28 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.048e-05/1.333, allocations: 7.812 kB / 0.7388 GB, free: 52.28 MB / 426.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002365/1.335, allocations: 1.918 MB / 0.7406 GB, free: 51.89 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.53e-05/1.335, allocations: 14.25 kB / 0.7407 GB, free: 51.89 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001762/1.336, allocations: 167.1 kB / 0.7408 GB, free: 51.89 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.309e-05/1.336, allocations: 35.62 kB / 0.7409 GB, free: 51.89 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001109/1.337, allocations: 370.4 kB / 0.7412 GB, free: 51.89 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.943e-05/1.337, allocations: 46.58 kB / 0.7413 GB, free: 51.89 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001941/1.339, allocations: 179.8 kB / 0.7414 GB, free: 51.84 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001474/1.339, allocations: 122.9 kB / 0.7415 GB, free: 51.84 MB / 426.7 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.0002238/1.339, allocations: 178.7 kB / 0.7417 GB, free: 51.73 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004961/1.34, allocations: 0.73 MB / 0.7424 GB, free: 51.36 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004679/1.344, allocations: 2.083 MB / 0.7445 GB, free: 51.23 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.616e-06/1.344, allocations: 6.781 kB / 0.7445 GB, free: 51.23 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/1.344, allocations: 3.062 kB / 0.7445 GB, free: 51.23 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/1.344, allocations: 3.844 kB / 0.7445 GB, free: 51.23 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005087/1.349, allocations: 3.556 MB / 0.7479 GB, free: 50.83 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001502/1.35, allocations: 138.6 kB / 0.7481 GB, free: 50.83 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007321/1.35, allocations: 163.4 kB / 0.7482 GB, free: 50.83 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.095e-06/1.35, allocations: 3.688 kB / 0.7482 GB, free: 50.83 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.018e-05/1.35, allocations: 56.64 kB / 0.7483 GB, free: 50.83 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.28e-06/1.35, allocations: 7.891 kB / 0.7483 GB, free: 50.83 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/1.35, allocations: 1.312 kB / 0.7483 GB, free: 50.83 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00208/1.353, allocations: 2.053 MB / 0.7503 GB, free: 50.14 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00144/1.354, allocations: 0.936 MB / 0.7512 GB, free: 49.6 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006046/1.355, allocations: 10.97 kB / 0.7512 GB, free: 49.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001166/1.356, allocations: 37.38 kB / 0.7513 GB, free: 49.6 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001688/1.356, allocations: 96.48 kB / 0.7514 GB, free: 49.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001022/1.356, allocations: 73.83 kB / 0.7514 GB, free: 49.6 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004291/1.36, allocations: 3.252 MB / 0.7546 GB, free: 49.35 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.4e-07/1.36, allocations: 0 / 0.7546 GB, free: 49.35 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002684/1.363, allocations: 1.126 MB / 0.7557 GB, free: 49.33 MB / 426.7 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.001736/1.365, allocations: 1.307 MB / 0.757 GB, free: 49.23 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001558/1.366, allocations: 1.245 MB / 0.7582 GB, free: 48.97 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/1.366, allocations: 3.969 kB / 0.7582 GB, free: 48.97 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006255/1.367, allocations: 0.7034 MB / 0.7589 GB, free: 48.71 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003025/1.37, allocations: 0.9509 MB / 0.7598 GB, free: 48.64 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008221/1.378, allocations: 6.011 MB / 0.7657 GB, free: 46.77 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001515/1.38, allocations: 2.725 MB / 0.7683 GB, free: 45.99 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002423/1.382, allocations: 0.7339 MB / 0.7691 GB, free: 45.94 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003631/1.383, allocations: 305 kB / 0.7694 GB, free: 45.93 MB / 426.7 MB Notification: Performance of SimCode: time 9.82e-07/1.383, allocations: 0 / 0.7694 GB, free: 45.93 MB / 426.7 MB Notification: Performance of Templates: time 0.07902/1.462, allocations: 51.44 MB / 0.8196 GB, free: 10.72 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (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 & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins/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_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches