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.001462/0.001461, allocations: 186.9 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.896/1.896, allocations: 205.4 MB / 222.5 MB, free: 9.129 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001118/0.001118, allocations: 95.23 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003905/0.0003905, allocations: 11.98 kB / 327 MB, free: 204 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3297/0.3301, allocations: 47.56 MB / 374.5 MB, free: 45.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.164/0.4942, allocations: 102.5 MB / 477 MB, free: 10.27 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000274/0.4945, allocations: 79.97 kB / 477.1 MB, free: 10.2 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.173/1.668, allocations: 193.6 MB / 0.6549 GB, free: 52.93 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.485e-06/1.668, allocations: 0 / 0.6549 GB, free: 52.93 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004603/1.668, allocations: 83.31 kB / 0.655 GB, free: 52.93 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.01507/1.684, allocations: 6.069 MB / 0.6609 GB, free: 49.84 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.689e-05/1.684, allocations: 10.02 kB / 0.6609 GB, free: 49.84 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001713/1.685, allocations: 0.7491 MB / 0.6617 GB, free: 49.45 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01245/1.698, allocations: 4.566 MB / 0.6661 GB, free: 48.41 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001084/1.698, allocations: 69.33 kB / 0.6662 GB, free: 48.4 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005901/1.699, allocations: 102.8 kB / 0.6663 GB, free: 48.39 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004376/1.703, allocations: 1.533 MB / 0.6678 GB, free: 48.19 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.811e-05/1.703, allocations: 0 / 0.6678 GB, free: 48.19 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002016/1.703, allocations: 37.72 kB / 0.6678 GB, free: 48.19 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.847e-05/1.703, allocations: 34.83 kB / 0.6679 GB, free: 48.19 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004066/1.707, allocations: 1.526 MB / 0.6693 GB, free: 48.18 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01752/1.725, allocations: 5.863 MB / 0.6751 GB, free: 47.4 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003389/1.728, allocations: 1.029 MB / 0.6761 GB, free: 47.36 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09461/1.823, allocations: 71.6 MB / 0.746 GB, free: 26.77 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00163/1.825, allocations: 0.5779 MB / 0.7466 GB, free: 26.72 MB / 442.7 MB Notification: Performance of pre-optimization done (n=85): time 5.65e-06/1.825, allocations: 0 / 0.7466 GB, free: 26.72 MB / 442.7 MB Notification: Performance of matching and sorting (n=85): time 0.00667/1.831, allocations: 2.586 MB / 0.7491 GB, free: 25.54 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003008/1.832, allocations: 481.7 kB / 0.7495 GB, free: 24.97 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01284/1.845, allocations: 4.866 MB / 0.7543 GB, free: 24.54 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003157/1.845, allocations: 48.95 kB / 0.7543 GB, free: 24.51 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003207/1.848, allocations: 2.365 MB / 0.7566 GB, free: 24.05 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005632/1.849, allocations: 300.8 kB / 0.7569 GB, free: 23.87 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001896/1.849, allocations: 30.66 kB / 0.757 GB, free: 23.87 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002313/1.849, allocations: 374.9 kB / 0.7573 GB, free: 23.55 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001604/1.851, allocations: 423.4 kB / 0.7577 GB, free: 23.55 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002038/1.853, allocations: 1.198 MB / 0.7589 GB, free: 22.55 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001932/1.855, allocations: 0.5804 MB / 0.7595 GB, free: 22.46 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.705e-05/1.855, allocations: 10.47 kB / 0.7595 GB, free: 22.45 MB / 442.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004641/1.86, allocations: 1.64 MB / 0.7611 GB, free: 22.03 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.799e-05/1.86, allocations: 16.44 kB / 0.7611 GB, free: 22.03 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003061/1.86, allocations: 163.8 kB / 0.7612 GB, free: 22.02 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.337e-05/1.86, allocations: 35.97 kB / 0.7613 GB, free: 22.02 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00234/1.863, allocations: 376 kB / 0.7616 GB, free: 22.01 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.395e-05/1.863, allocations: 49.95 kB / 0.7617 GB, free: 22.01 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004015/1.867, allocations: 204.8 kB / 0.7619 GB, free: 21.89 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000401/1.867, allocations: 127 kB / 0.762 GB, free: 21.88 MB / 442.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002736/1.87, allocations: 0.7308 MB / 0.7627 GB, free: 21.43 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001519/1.871, allocations: 0.7211 MB / 0.7634 GB, free: 21.05 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01014/1.882, allocations: 2.274 MB / 0.7656 GB, free: 20.5 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.888e-05/1.882, allocations: 7.469 kB / 0.7656 GB, free: 20.5 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.966e-06/1.882, allocations: 3.969 kB / 0.7657 GB, free: 20.5 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.75e-05/1.882, allocations: 3.844 kB / 0.7657 GB, free: 20.5 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01318/1.895, allocations: 3.876 MB / 0.7694 GB, free: 18.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000324/1.895, allocations: 139.2 kB / 0.7696 GB, free: 18.17 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001508/1.897, allocations: 162.7 kB / 0.7697 GB, free: 18.05 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.475e-05/1.897, allocations: 7.938 kB / 0.7697 GB, free: 18.04 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003111/1.897, allocations: 59.89 kB / 0.7698 GB, free: 17.99 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.628e-06/1.897, allocations: 7.125 kB / 0.7698 GB, free: 17.98 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/1.897, allocations: 3.156 kB / 0.7698 GB, free: 17.98 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006454/1.904, allocations: 2.314 MB / 0.7721 GB, free: 15.75 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002782/1.906, allocations: 0.9339 MB / 0.773 GB, free: 14.88 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001429/1.908, allocations: 27.89 kB / 0.773 GB, free: 14.86 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002784/1.911, allocations: 51.48 kB / 0.7731 GB, free: 14.82 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000403/1.911, allocations: 99.11 kB / 0.7731 GB, free: 14.75 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001777/1.911, allocations: 71.84 kB / 0.7732 GB, free: 14.68 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.008133/1.92, allocations: 3.709 MB / 0.7768 GB, free: 11.65 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.32e-07/1.92, allocations: 0 / 0.7768 GB, free: 11.65 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004035/1.924, allocations: 1.176 MB / 0.778 GB, free: 10.49 MB / 442.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) * 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 (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.002564/1.926, allocations: 1.242 MB / 0.7792 GB, free: 9.637 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004765/1.931, allocations: 1.476 MB / 0.7806 GB, free: 8.32 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.566e-05/1.931, allocations: 0 / 0.7806 GB, free: 8.32 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002365/1.934, allocations: 0.7855 MB / 0.7814 GB, free: 7.555 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008687/1.942, allocations: 0.9596 MB / 0.7823 GB, free: 6.738 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03267/1.975, allocations: 9.376 MB / 0.7915 GB, free: 13.98 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003787/1.979, allocations: 2.723 MB / 0.7942 GB, free: 12.02 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009873/1.98, allocations: 315.4 kB / 0.7945 GB, free: 11.71 MB / 458.7 MB Notification: Performance of SimCode: time 1.223e-06/1.98, allocations: 0 / 0.7945 GB, free: 11.71 MB / 458.7 MB Notification: Performance of Templates: time 0.4617/2.442, allocations: 68.99 MB / 0.8618 GB, free: 85.45 MB / 458.7 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