Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.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.Blocks.Examples.Modulation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|sine.y|sinAM.y|cosAM.y|sinFM.y|cosFM.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.Modulation") translateModel(Modelica.Blocks.Examples.Modulation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|sine.y|sinAM.y|cosAM.y|sinFM.y|cosFM.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.Modulation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001334/0.001334, allocations: 176.6 kB / 17.4 MB, free: 4.418 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.474/1.474, allocations: 223.3 MB / 241.4 MB, free: 11.72 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.0008679/0.000868, allocations: 92.88 kB / 292.6 MB, free: 10.78 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004488/0.0004491, allocations: 15.94 kB / 352.3 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.274/0.2745, allocations: 50.39 MB / 402.7 MB, free: 32.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09693/0.3715, allocations: 76.9 MB / 479.6 MB, free: 3.438 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002318/0.3718, allocations: 67.97 kB / 479.7 MB, free: 3.371 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00818/0.38, allocations: 2.881 MB / 482.6 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.38, allocations: 0 / 482.6 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.448e-05/0.3801, allocations: 8 kB / 482.6 MB, free: 496 kB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006779/0.3807, allocations: 478.6 kB / 483.1 MB, free: 15.96 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.3808, allocations: 12.03 kB / 483.1 MB, free: 15.95 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.832e-05/0.3809, allocations: 24.66 kB / 483.1 MB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002936/0.3812, allocations: 239.7 kB / 483.3 MB, free: 15.66 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/0.3812, allocations: 12.36 kB / 483.3 MB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.499e-05/0.3812, allocations: 12.38 kB / 483.3 MB, free: 15.63 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003111/0.3816, allocations: 176.7 kB / 483.5 MB, free: 15.45 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.3816, allocations: 192 / 483.5 MB, free: 15.45 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.416e-05/0.3816, allocations: 11.94 kB / 483.5 MB, free: 15.43 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.223e-06/0.3816, allocations: 7.938 kB / 483.5 MB, free: 15.43 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002325/0.3819, allocations: 95.88 kB / 483.6 MB, free: 15.33 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001056/0.3829, allocations: 0.6527 MB / 484.3 MB, free: 14.62 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002348/0.3832, allocations: 131.8 kB / 484.4 MB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001178/0.3833, allocations: 62.67 kB / 484.5 MB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.314e-05/0.3833, allocations: 3.938 kB / 484.5 MB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.191e-05/0.3834, allocations: 34.56 kB / 484.5 MB, free: 14.35 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 1.543e-06/0.3834, allocations: 0 / 484.5 MB, free: 14.35 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.000519/0.3839, allocations: 189.5 kB / 484.7 MB, free: 14.16 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.567e-05/0.384, allocations: 110.8 kB / 484.8 MB, free: 14.02 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002216/0.3842, allocations: 233 kB / 485 MB, free: 13.79 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.91e-05/0.3842, allocations: 25.7 kB / 485.1 MB, free: 13.75 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.393e-05/0.3843, allocations: 132 kB / 485.2 MB, free: 13.62 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.108e-05/0.3844, allocations: 55.31 kB / 485.2 MB, free: 13.57 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.794e-06/0.3844, allocations: 4 kB / 485.2 MB, free: 13.56 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.3845, allocations: 334.8 kB / 485.6 MB, free: 13.23 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001064/0.3847, allocations: 35.98 kB / 485.6 MB, free: 13.19 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001354/0.3848, allocations: 106.7 kB / 485.7 MB, free: 13.06 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002591/0.3851, allocations: 150.7 kB / 485.9 MB, free: 12.89 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.788e-06/0.3851, allocations: 4 kB / 485.9 MB, free: 12.89 MB / 362.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003447/0.3854, allocations: 189.2 kB / 486 MB, free: 12.7 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.3855, allocations: 8 kB / 486.1 MB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.3855, allocations: 0 / 486.1 MB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.3855, allocations: 4 kB / 486.1 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001538/0.3856, allocations: 35.97 kB / 486.1 MB, free: 12.65 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.011e-05/0.3857, allocations: 7.938 kB / 486.1 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001132/0.3858, allocations: 27.94 kB / 486.1 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.63e-05/0.3858, allocations: 7.984 kB / 486.1 MB, free: 12.61 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * 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.00011/0.3859, allocations: 126.4 kB / 486.3 MB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.629e-05/0.386, allocations: 27.78 kB / 486.3 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003726/0.3864, allocations: 190.7 kB / 486.5 MB, free: 12.25 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.121e-06/0.3864, allocations: 4 kB / 486.5 MB, free: 12.25 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.3864, allocations: 0 / 486.5 MB, free: 12.25 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.3864, allocations: 3.984 kB / 486.5 MB, free: 12.25 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004304/0.3869, allocations: 273.4 kB / 486.7 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.3869, allocations: 3.938 kB / 486.8 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001772/0.3871, allocations: 39.91 kB / 486.8 MB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.3871, allocations: 0 / 486.8 MB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.246e-05/0.3871, allocations: 12.56 kB / 486.8 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.3871, allocations: 0 / 486.8 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/0.3871, allocations: 4 kB / 486.8 MB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005334/0.3877, allocations: 492 kB / 487.3 MB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.324e-05/0.3877, allocations: 96.81 kB / 487.4 MB, free: 11.26 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.863e-05/0.3878, allocations: 8.062 kB / 487.4 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000171/0.388, allocations: 4 kB / 487.4 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.532e-05/0.388, allocations: 19.97 kB / 487.4 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.044e-05/0.388, allocations: 4 kB / 487.4 MB, free: 11.23 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001394/0.3882, allocations: 168.5 kB / 487.6 MB, free: 11.06 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3882, allocations: 0 / 487.6 MB, free: 11.06 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003527/0.3886, allocations: 43.94 kB / 487.6 MB, free: 11.02 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (sine.phi,sinAM.phi,cosAM.phi,sinFM.phi,cosFM.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * 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.0001406/0.3887, allocations: 107.4 kB / 487.7 MB, free: 10.9 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002929/0.389, allocations: 123.9 kB / 487.9 MB, free: 10.78 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.389, allocations: 0 / 487.9 MB, free: 10.78 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001309/0.3891, allocations: 67.89 kB / 487.9 MB, free: 10.71 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004166/0.3896, allocations: 24.38 kB / 487.9 MB, free: 10.69 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001131/0.3907, allocations: 0.732 MB / 488.7 MB, free: 9.922 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003095/0.391, allocations: 0.74 MB / 489.4 MB, free: 9.156 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.836e-05/0.3911, allocations: 21.48 kB / 489.4 MB, free: 9.137 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.873e-05/0.3912, allocations: 19.42 kB / 489.5 MB, free: 9.117 MB / 362.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3912, allocations: 0 / 489.5 MB, free: 9.117 MB / 362.7 MB Notification: Performance of Templates: time 0.003877/0.3951, allocations: 1.2 MB / 490.7 MB, free: 7.922 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.Modulation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.Modulation_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Modulation/Modulation.csv","../files/Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches