Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.INV3S.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.Digital.Examples.INV3S,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|iNV3S.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.INV3S") translateModel(Modelica.Electrical.Digital.Examples.INV3S,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|iNV3S.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.INV3S") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00144/0.00144, allocations: 186.2 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.937/1.937, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001149/0.001149, allocations: 88.42 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003955/0.0003955, allocations: 8 kB / 327 MB, free: 216 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3454/0.3458, allocations: 47.57 MB / 374.5 MB, free: 45.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1307/0.4766, allocations: 81.92 MB / 456.5 MB, free: 14.85 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002576/0.4769, allocations: 67.97 kB / 456.5 MB, free: 14.78 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09946/0.5764, allocations: 27.88 MB / 484.4 MB, free: 2.961 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.5764, allocations: 0 / 484.4 MB, free: 2.961 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.476e-05/0.5765, allocations: 4 kB / 484.4 MB, free: 2.957 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0008905/0.5774, allocations: 0.6721 MB / 485.1 MB, free: 2.211 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/0.5774, allocations: 8.031 kB / 485.1 MB, free: 2.203 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001394/0.5776, allocations: 35.62 kB / 485.1 MB, free: 2.168 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004054/0.578, allocations: 261.4 kB / 485.4 MB, free: 1.875 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.506e-05/0.578, allocations: 4 kB / 485.4 MB, free: 1.871 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.109e-05/0.5781, allocations: 15.98 kB / 485.4 MB, free: 1.855 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004857/0.5786, allocations: 153.5 kB / 485.5 MB, free: 1.699 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.827e-06/0.5786, allocations: 0 / 485.5 MB, free: 1.699 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.413e-05/0.5787, allocations: 8 kB / 485.5 MB, free: 1.691 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.5787, allocations: 3.938 kB / 485.6 MB, free: 1.688 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002671/0.579, allocations: 67.89 kB / 485.6 MB, free: 1.621 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001026/0.58, allocations: 480.5 kB / 486.1 MB, free: 1.102 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003205/0.5804, allocations: 98.55 kB / 486.2 MB, free: 0.9961 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.125e-06/0.5804, allocations: 11.88 kB / 486.2 MB, free: 0.9844 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004864/0.5809, allocations: 234.7 kB / 486.4 MB, free: 0.7305 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 2.595e-06/0.5809, allocations: 0 / 486.4 MB, free: 0.7305 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.001631/0.5825, allocations: 0.6505 MB / 487.1 MB, free: 12 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001542/0.5827, allocations: 162.2 kB / 487.2 MB, free: 15.82 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009893/0.5837, allocations: 472.4 kB / 487.7 MB, free: 15.35 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.325e-05/0.5838, allocations: 29.7 kB / 487.7 MB, free: 15.31 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001087/0.5839, allocations: 167.6 kB / 487.9 MB, free: 15.14 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.18e-05/0.584, allocations: 27.7 kB / 487.9 MB, free: 15.12 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.068e-05/0.5841, allocations: 0 / 487.9 MB, free: 15.12 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.5842, allocations: 318.8 kB / 488.2 MB, free: 14.8 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002614/0.5845, allocations: 63.95 kB / 488.3 MB, free: 14.73 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002658/0.5848, allocations: 81.67 kB / 488.4 MB, free: 14.65 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003296/0.5851, allocations: 170.9 kB / 488.5 MB, free: 14.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.5851, allocations: 7.938 kB / 488.5 MB, free: 14.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.001083/0.5862, allocations: 416.1 kB / 488.9 MB, free: 14.01 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001267/0.5864, allocations: 122.8 kB / 489.1 MB, free: 13.87 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.5864, allocations: 0 / 489.1 MB, free: 13.87 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.8e-05/0.5864, allocations: 0 / 489.1 MB, free: 13.87 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.932e-05/0.5865, allocations: 7.984 kB / 489.1 MB, free: 13.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.027e-06/0.5865, allocations: 0 / 489.1 MB, free: 13.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002426/0.5867, allocations: 15.94 kB / 489.1 MB, free: 13.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001996/0.5869, allocations: 127.8 kB / 489.2 MB, free: 13.72 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.iNV3S.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,e_table.y,x_table.y,iNV3S.nextstate,iNV3S.yy,$PRE.iNV3S.inertialDelaySensitive.x,iNV3S.inertialDelaySensitive.x,iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.delayTime,iNV3S.inertialDelaySensitive.y_auxiliary,iNV3S.inertialDelaySensitive.y_old,iNV3S.inertialDelaySensitive.lh,iNV3S.inertialDelaySensitive.t_next) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * 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.000584/0.5875, allocations: 362.3 kB / 489.6 MB, free: 13.33 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.975e-05/0.5877, allocations: 43.48 kB / 489.6 MB, free: 13.29 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001542/0.5878, allocations: 63.16 kB / 489.7 MB, free: 13.22 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.614e-06/0.5878, allocations: 4 kB / 489.7 MB, free: 13.22 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.5879, allocations: 0 / 489.7 MB, free: 13.22 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.5879, allocations: 3.984 kB / 489.7 MB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001674/0.5896, allocations: 0.837 MB / 490.5 MB, free: 12.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/0.5896, allocations: 8 kB / 490.5 MB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.202e-05/0.5896, allocations: 4 kB / 490.5 MB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.676e-06/0.5897, allocations: 3.984 kB / 490.5 MB, free: 12.28 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.274e-05/0.5897, allocations: 23.98 kB / 490.6 MB, free: 12.26 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.968e-06/0.5897, allocations: 0 / 490.6 MB, free: 12.26 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.073e-06/0.5897, allocations: 0 / 490.6 MB, free: 12.26 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001198/0.591, allocations: 0.5645 MB / 491.1 MB, free: 11.65 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005732/0.5916, allocations: 244.5 kB / 491.4 MB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001024/0.5917, allocations: 19.92 kB / 491.4 MB, free: 11.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002446/0.5919, allocations: 12 kB / 491.4 MB, free: 11.36 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000182/0.5921, allocations: 39.94 kB / 491.4 MB, free: 11.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001953/0.5923, allocations: 119.9 kB / 491.6 MB, free: 11.21 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007961/0.5931, allocations: 390.8 kB / 491.9 MB, free: 10.83 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.344e-06/0.5932, allocations: 0 / 491.9 MB, free: 10.83 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004749/0.5936, allocations: 47.94 kB / 492 MB, free: 10.79 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,iNV3S.nextstate,iNV3S.yy,iNV3S.inertialDelaySensitive.x,iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.delayTime,iNV3S.inertialDelaySensitive.y_auxiliary,iNV3S.inertialDelaySensitive.y_old,iNV3S.inertialDelaySensitive.lh,iNV3S.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,iNV3S.yy,iNV3S.nextstate,iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.y_auxiliary,iNV3S.inertialDelaySensitive.t_next,iNV3S.inertialDelaySensitive.delayTime,iNV3S.inertialDelaySensitive.lh,iNV3S.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,iNV3S.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * 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 Backend phase and start with SimCode phase: time 0.0001953/0.5939, allocations: 115 kB / 492.1 MB, free: 10.66 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008723/0.5947, allocations: 449.5 kB / 492.5 MB, free: 10.18 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.5948, allocations: 4 kB / 492.5 MB, free: 10.17 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005237/0.5953, allocations: 385.5 kB / 492.9 MB, free: 9.746 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008299/0.5961, allocations: 103.8 kB / 493 MB, free: 9.645 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001873/0.598, allocations: 0.7951 MB / 493.8 MB, free: 8.812 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005526/0.5986, allocations: 0.8102 MB / 494.6 MB, free: 7.977 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.304e-05/0.5987, allocations: 15.44 kB / 494.6 MB, free: 7.961 MB / 378.7 MB Notification: Performance of SimCode: time 1.633e-06/0.5987, allocations: 0 / 494.6 MB, free: 7.961 MB / 378.7 MB Notification: Performance of Templates: time 0.008974/0.6077, allocations: 3.852 MB / 498.5 MB, free: 4.066 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.INV3S.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.INV3S.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.INV3S.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.INV3S.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.INV3S.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.INV3S --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.INV3S.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.INV3S_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/INV3S/INV3S.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.INV3S.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches