Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009368/0.0009369, allocations: 181.9 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.221/1.221, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008582/0.0008581, allocations: 99.98 kB / 291.5 MB, free: 10.96 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002341/0.0002341, allocations: 7.938 kB / 351.1 MB, free: 15.38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2032/0.2035, allocations: 50.42 MB / 401.5 MB, free: 32.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.115/0.3186, allocations: 104.3 MB / 0.4939 GB, free: 8.203 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002713/0.3189, allocations: 75.95 kB / 0.494 GB, free: 8.129 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4394/0.7583, allocations: 143.3 MB / 0.6339 GB, free: 8.738 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.7583, allocations: 0 / 0.6339 GB, free: 8.738 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001131/0.7585, allocations: 48 kB / 0.6339 GB, free: 8.691 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.006651/0.7651, allocations: 3.557 MB / 0.6374 GB, free: 5.062 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.7652, allocations: 8.031 kB / 0.6374 GB, free: 5.055 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005185/0.7657, allocations: 414.9 kB / 0.6378 GB, free: 4.645 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004421/0.7701, allocations: 2.429 MB / 0.6402 GB, free: 2.148 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.304e-05/0.7702, allocations: 44.94 kB / 0.6402 GB, free: 2.102 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001299/0.7703, allocations: 55.91 kB / 0.6403 GB, free: 2.047 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001514/0.7719, allocations: 0.8612 MB / 0.6411 GB, free: 1.156 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.7719, allocations: 3.938 kB / 0.6411 GB, free: 1.152 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.356e-05/0.772, allocations: 23.98 kB / 0.6412 GB, free: 1.129 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.293e-05/0.772, allocations: 16 kB / 0.6412 GB, free: 1.113 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00155/0.7736, allocations: 0.8592 MB / 0.642 GB, free: 256 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005949/0.7795, allocations: 3.278 MB / 0.6452 GB, free: 12.89 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001213/0.7808, allocations: 0.6181 MB / 0.6458 GB, free: 12.26 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2209/1.002, allocations: 35.94 MB / 0.6809 GB, free: 56.58 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006836/1.002, allocations: 387.8 kB / 0.6813 GB, free: 56.53 MB / 426.7 MB Notification: Performance of pre-optimization done (n=49): time 2.645e-06/1.002, allocations: 0 / 0.6813 GB, free: 56.53 MB / 426.7 MB Notification: Performance of matching and sorting (n=49): time 0.002104/1.004, allocations: 1.491 MB / 0.6827 GB, free: 55.94 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.954e-05/1.005, allocations: 264.9 kB / 0.683 GB, free: 55.63 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003024/1.008, allocations: 2.693 MB / 0.6856 GB, free: 55.36 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.568e-05/1.008, allocations: 35.52 kB / 0.6857 GB, free: 55.32 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009763/1.009, allocations: 1.58 MB / 0.6872 GB, free: 55.11 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000113/1.009, allocations: 168.8 kB / 0.6874 GB, free: 55.03 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.075e-05/1.009, allocations: 11.78 kB / 0.6874 GB, free: 55.03 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.736e-05/1.009, allocations: 343.3 kB / 0.6877 GB, free: 54.72 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004966/1.009, allocations: 262.5 kB / 0.6879 GB, free: 54.72 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006689/1.01, allocations: 0.667 MB / 0.6886 GB, free: 54.21 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006175/1.011, allocations: 350.5 kB / 0.6889 GB, free: 54.21 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.064e-06/1.011, allocations: 3.906 kB / 0.6889 GB, free: 54.21 MB / 426.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001812/1.013, allocations: 1.283 MB / 0.6902 GB, free: 53.97 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.598e-05/1.013, allocations: 12.16 kB / 0.6902 GB, free: 53.97 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.307e-05/1.013, allocations: 80.83 kB / 0.6903 GB, free: 53.97 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.196e-05/1.013, allocations: 22.38 kB / 0.6903 GB, free: 53.97 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006803/1.013, allocations: 211.8 kB / 0.6905 GB, free: 53.97 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.973e-05/1.013, allocations: 22.56 kB / 0.6905 GB, free: 53.97 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001052/1.014, allocations: 129.3 kB / 0.6906 GB, free: 53.95 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001013/1.015, allocations: 67.66 kB / 0.6907 GB, free: 53.95 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0007667/1.015, allocations: 455.5 kB / 0.6911 GB, free: 53.83 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003071/1.016, allocations: 399.7 kB / 0.6915 GB, free: 53.63 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002724/1.018, allocations: 1.294 MB / 0.6928 GB, free: 53.54 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.293e-06/1.018, allocations: 8.969 kB / 0.6928 GB, free: 53.54 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/1.018, allocations: 0 / 0.6928 GB, free: 53.54 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/1.018, allocations: 7.594 kB / 0.6928 GB, free: 53.54 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00314/1.022, allocations: 2.329 MB / 0.6951 GB, free: 53.14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.052e-05/1.022, allocations: 70.69 kB / 0.6952 GB, free: 53.14 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004695/1.022, allocations: 101.6 kB / 0.6952 GB, free: 53.14 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.511e-06/1.022, allocations: 3.969 kB / 0.6953 GB, free: 53.14 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.169e-05/1.022, allocations: 32.39 kB / 0.6953 GB, free: 53.14 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/1.022, allocations: 2.812 kB / 0.6953 GB, free: 53.14 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/1.022, allocations: 7.25 kB / 0.6953 GB, free: 53.14 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001871/1.024, allocations: 1.439 MB / 0.6967 GB, free: 52.69 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007303/1.025, allocations: 0.5058 MB / 0.6972 GB, free: 52.39 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002761/1.025, allocations: 16.95 kB / 0.6972 GB, free: 52.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007016/1.026, allocations: 46.27 kB / 0.6973 GB, free: 52.39 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001231/1.026, allocations: 65.61 kB / 0.6973 GB, free: 52.39 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.691e-05/1.026, allocations: 36.88 kB / 0.6973 GB, free: 52.39 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002064/1.028, allocations: 2.055 MB / 0.6994 GB, free: 52.21 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.81e-07/1.028, allocations: 0 / 0.6994 GB, free: 52.21 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001312/1.029, allocations: 0.6661 MB / 0.7 GB, free: 52.2 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.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 (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.001037/1.03, allocations: 0.8675 MB / 0.7009 GB, free: 52.11 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001409/1.032, allocations: 0.8546 MB / 0.7017 GB, free: 51.98 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/1.032, allocations: 0 / 0.7017 GB, free: 51.98 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006369/1.033, allocations: 464.7 kB / 0.7021 GB, free: 51.85 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001861/1.034, allocations: 0.6304 MB / 0.7027 GB, free: 51.81 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005172/1.04, allocations: 5.118 MB / 0.7077 GB, free: 49.43 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000855/1.04, allocations: 1.772 MB / 0.7095 GB, free: 48.7 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001191/1.042, allocations: 385.3 kB / 0.7098 GB, free: 48.67 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002086/1.042, allocations: 157.5 kB / 0.71 GB, free: 48.66 MB / 426.7 MB Notification: Performance of SimCode: time 8.51e-07/1.042, allocations: 0 / 0.71 GB, free: 48.66 MB / 426.7 MB Notification: Performance of Templates: time 0.05154/1.093, allocations: 32.79 MB / 0.742 GB, free: 40.14 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches