Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Modulation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Blocks.Examples.Modulation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001161/0.001161, allocations: 118.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001371/0.001371, allocations: 201.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001295, allocations: 59.91 kB / 358.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3663/0.3676, allocations: 50.55 MB / 409.2 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.003288/0.371, allocations: 2.012 MB / 411.3 MB, free: 15.56 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001178/0.3722, allocations: 0.6349 MB / 411.9 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001368/0.3723, allocations: 0 / 411.9 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001786/0.3725, allocations: 43.53 kB / 411.9 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.981e-05/0.3726, allocations: 43.58 kB / 412 MB, free: 14.83 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003159/0.3729, allocations: 79.84 kB / 412.1 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000258/0.3732, allocations: 207.2 kB / 412.3 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001987/0.3734, allocations: 76.34 kB / 412.3 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001715/0.3736, allocations: 75.64 kB / 412.4 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001261/0.3737, allocations: 83.55 kB / 412.5 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.881e-05/0.3738, allocations: 12 kB / 412.5 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.295e-05/0.3738, allocations: 23.94 kB / 412.5 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.051e-05/0.3739, allocations: 31.86 kB / 412.5 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.258e-05/0.3739, allocations: 87.41 kB / 412.6 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002597/0.3742, allocations: 183.1 kB / 412.8 MB, free: 13.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3742, allocations: 0 / 412.8 MB, free: 13.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3742, allocations: 0 / 412.8 MB, free: 13.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.319e-05/0.3742, allocations: 0 / 412.8 MB, free: 13.98 MB / 334.1 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.0007421/0.375, allocations: 0.4944 MB / 413.3 MB, free: 13.44 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/0.375, allocations: 8.031 kB / 413.3 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002534/0.3753, allocations: 44.78 kB / 413.4 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003185/0.3756, allocations: 247.8 kB / 413.6 MB, free: 13.11 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.637e-05/0.3757, allocations: 8.375 kB / 413.6 MB, free: 13.1 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.391e-05/0.3757, allocations: 16.31 kB / 413.6 MB, free: 13.08 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003317/0.376, allocations: 172.4 kB / 413.8 MB, free: 12.9 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.3761, allocations: 4 kB / 413.8 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.773e-05/0.3761, allocations: 4 kB / 413.8 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.3761, allocations: 4 kB / 413.8 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002281/0.3763, allocations: 91.88 kB / 413.9 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009265/0.3773, allocations: 0.6335 MB / 414.5 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000244/0.3775, allocations: 139.7 kB / 414.7 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000116/0.3777, allocations: 62.61 kB / 414.7 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.278e-05/0.3777, allocations: 11.98 kB / 414.7 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.289e-05/0.3777, allocations: 34.56 kB / 414.8 MB, free: 11.82 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.102e-06/0.3777, allocations: 0 / 414.8 MB, free: 11.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005105/0.3782, allocations: 177.4 kB / 414.9 MB, free: 11.64 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.955e-05/0.3783, allocations: 106.9 kB / 415 MB, free: 11.51 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002445/0.3786, allocations: 242.6 kB / 415.3 MB, free: 11.26 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.627e-05/0.3786, allocations: 25.7 kB / 415.3 MB, free: 11.23 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.338e-05/0.3787, allocations: 140 kB / 415.4 MB, free: 11.09 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.407e-05/0.3787, allocations: 51.59 kB / 415.5 MB, free: 11.04 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.889e-05/0.3788, allocations: 29.7 kB / 415.5 MB, free: 11 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.3789, allocations: 334.8 kB / 415.9 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001056/0.3791, allocations: 35.98 kB / 415.9 MB, free: 10.63 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001477/0.3792, allocations: 94.83 kB / 416 MB, free: 10.52 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002531/0.3795, allocations: 142.7 kB / 416.1 MB, free: 10.35 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.3795, allocations: 0 / 416.1 MB, free: 10.35 MB / 334.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003425/0.3798, allocations: 193.4 kB / 416.3 MB, free: 10.16 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.3799, allocations: 8 kB / 416.3 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-06/0.3799, allocations: 0 / 416.3 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.933e-05/0.3799, allocations: 4 kB / 416.3 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001496/0.3801, allocations: 31.97 kB / 416.4 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.428e-06/0.3801, allocations: 4 kB / 416.4 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001022/0.3802, allocations: 15.89 kB / 416.4 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.884e-05/0.3802, allocations: 11.98 kB / 416.4 MB, free: 10.08 MB / 334.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001202/0.3803, allocations: 141.7 kB / 416.5 MB, free: 9.934 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.955e-05/0.3804, allocations: 23.86 kB / 416.5 MB, free: 9.91 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003848/0.3808, allocations: 178.8 kB / 416.7 MB, free: 9.73 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.536e-06/0.3808, allocations: 4.5 kB / 416.7 MB, free: 9.727 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.043e-05/0.3808, allocations: 0 / 416.7 MB, free: 9.727 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.197e-05/0.3809, allocations: 7.984 kB / 416.7 MB, free: 9.719 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004536/0.3813, allocations: 269.4 kB / 417 MB, free: 9.406 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.3813, allocations: 8 kB / 417 MB, free: 9.398 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001695/0.3815, allocations: 35.98 kB / 417 MB, free: 9.363 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.3815, allocations: 0 / 417 MB, free: 9.363 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.948e-05/0.3815, allocations: 7.938 kB / 417 MB, free: 9.355 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/0.3816, allocations: 7.922 kB / 417.1 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.3816, allocations: 4 kB / 417.1 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000564/0.3821, allocations: 481.8 kB / 417.5 MB, free: 8.855 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.012e-05/0.3822, allocations: 105 kB / 417.6 MB, free: 8.734 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.876e-05/0.3823, allocations: 4 kB / 417.6 MB, free: 8.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001769/0.3824, allocations: 11.98 kB / 417.6 MB, free: 8.719 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.822e-05/0.3825, allocations: 7.984 kB / 417.7 MB, free: 8.711 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.132e-05/0.3825, allocations: 8 kB / 417.7 MB, free: 8.703 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000149/0.3827, allocations: 170 kB / 417.8 MB, free: 8.535 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3827, allocations: 4 kB / 417.8 MB, free: 8.531 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003405/0.383, allocations: 32 kB / 417.9 MB, free: 8.5 MB / 334.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001218/0.3832, allocations: 99.19 kB / 418 MB, free: 8.391 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003113/0.3835, allocations: 119.9 kB / 418.1 MB, free: 8.273 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.083e-06/0.3835, allocations: 3.938 kB / 418.1 MB, free: 8.27 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001307/0.3836, allocations: 72.36 kB / 418.2 MB, free: 8.199 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004002/0.384, allocations: 15.22 kB / 418.2 MB, free: 8.188 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001033/0.3851, allocations: 0.6189 MB / 418.8 MB, free: 7.539 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002911/0.3854, allocations: 0.7436 MB / 419.5 MB, free: 6.77 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.739e-05/0.3855, allocations: 25.52 kB / 419.6 MB, free: 6.746 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.866e-05/0.3855, allocations: 27.44 kB / 419.6 MB, free: 6.719 MB / 334.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3855, allocations: 0 / 419.6 MB, free: 6.719 MB / 334.1 MB Notification: Performance of Templates: time 0.004277/0.3898, allocations: 1.382 MB / 421 MB, free: 5.34 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.Modulation.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.Modulation.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Modulation.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Modulation.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Modulation.sim & ./Modelica_trunk_Modelica.Blocks.Examples.Modulation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.Modulation.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.Modulation_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Modulation/Modulation.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.Modulation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches