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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001524/0.001524, allocations: 112.4 kB / 17.7 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001524/0.001524, allocations: 187.8 kB / 18.62 MB, free: 4.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.411/1.411, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001027/0.001027, allocations: 55.91 kB / 351.9 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2983/0.2994, allocations: 49.43 MB / 401.3 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.003008/0.3024, allocations: 1.999 MB / 403.3 MB, free: 7.02 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000915/0.3034, allocations: 0.5687 MB / 403.9 MB, free: 6.449 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.128e-05/0.3035, allocations: 7.938 kB / 403.9 MB, free: 6.441 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000145/0.3036, allocations: 35.59 kB / 404 MB, free: 6.406 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.53e-05/0.3037, allocations: 39.59 kB / 404 MB, free: 6.367 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002211/0.304, allocations: 63.86 kB / 404.1 MB, free: 6.305 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002184/0.3042, allocations: 203.2 kB / 404.3 MB, free: 6.105 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001735/0.3044, allocations: 78.34 kB / 404.3 MB, free: 6.031 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001203/0.3045, allocations: 75.66 kB / 404.4 MB, free: 5.957 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001086/0.3046, allocations: 79.56 kB / 404.5 MB, free: 5.879 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.114e-05/0.3046, allocations: 12 kB / 404.5 MB, free: 5.867 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.392e-05/0.3047, allocations: 16 kB / 404.5 MB, free: 5.852 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.761e-05/0.3047, allocations: 31.84 kB / 404.5 MB, free: 5.82 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.957e-05/0.3048, allocations: 79.48 kB / 404.6 MB, free: 5.742 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000187/0.305, allocations: 188.4 kB / 404.8 MB, free: 5.562 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.305, allocations: 0 / 404.8 MB, free: 5.562 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.305, allocations: 0 / 404.8 MB, free: 5.562 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.305, allocations: 0 / 404.8 MB, free: 5.562 MB / 318.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.0006467/0.3057, allocations: 494.5 kB / 405.3 MB, free: 5.031 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.049e-05/0.3057, allocations: 12.03 kB / 405.3 MB, free: 5.02 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.972e-05/0.3058, allocations: 24.66 kB / 405.3 MB, free: 4.996 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002195/0.306, allocations: 231.9 kB / 405.5 MB, free: 4.73 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.511e-05/0.306, allocations: 8.375 kB / 405.6 MB, free: 4.723 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.74e-05/0.3061, allocations: 19.94 kB / 405.6 MB, free: 4.703 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000288/0.3064, allocations: 172.7 kB / 405.7 MB, free: 4.52 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.3064, allocations: 0 / 405.7 MB, free: 4.52 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.709e-05/0.3064, allocations: 4 kB / 405.7 MB, free: 4.516 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.3064, allocations: 4 kB / 405.7 MB, free: 4.512 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002149/0.3066, allocations: 95.86 kB / 405.8 MB, free: 4.418 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008892/0.3075, allocations: 0.6447 MB / 406.5 MB, free: 3.715 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002328/0.3078, allocations: 127.8 kB / 406.6 MB, free: 3.562 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001123/0.3079, allocations: 58.67 kB / 406.7 MB, free: 3.496 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.79e-05/0.3079, allocations: 0 / 406.7 MB, free: 3.496 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.375e-05/0.308, allocations: 38.56 kB / 406.7 MB, free: 3.449 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.232e-06/0.308, allocations: 0 / 406.7 MB, free: 3.449 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004743/0.3084, allocations: 181.3 kB / 406.9 MB, free: 3.266 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.358e-05/0.3085, allocations: 106.8 kB / 407 MB, free: 3.137 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002155/0.3087, allocations: 229 kB / 407.2 MB, free: 2.902 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.688e-05/0.3088, allocations: 29.7 kB / 407.2 MB, free: 2.867 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.511e-05/0.3089, allocations: 140 kB / 407.4 MB, free: 2.727 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.373e-05/0.3089, allocations: 43.34 kB / 407.4 MB, free: 2.684 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.163e-05/0.309, allocations: 33.7 kB / 407.5 MB, free: 2.645 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.3091, allocations: 338.8 kB / 407.8 MB, free: 2.305 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001107/0.3092, allocations: 35.97 kB / 407.8 MB, free: 2.27 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001323/0.3093, allocations: 94.78 kB / 407.9 MB, free: 2.152 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002615/0.3096, allocations: 143.3 kB / 408.1 MB, free: 1.988 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.3096, allocations: 4 kB / 408.1 MB, free: 1.984 MB / 318.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.000338/0.31, allocations: 185.2 kB / 408.2 MB, free: 1.797 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/0.31, allocations: 8 kB / 408.2 MB, free: 1.789 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.281e-06/0.31, allocations: 3.984 kB / 408.2 MB, free: 1.785 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.31, allocations: 4 kB / 408.3 MB, free: 1.781 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001594/0.3102, allocations: 39.91 kB / 408.3 MB, free: 1.742 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.3102, allocations: 0 / 408.3 MB, free: 1.742 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001091/0.3103, allocations: 20.03 kB / 408.3 MB, free: 1.723 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.268e-05/0.3103, allocations: 8 kB / 408.3 MB, free: 1.715 MB / 318.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.0001055/0.3104, allocations: 137.7 kB / 408.5 MB, free: 1.57 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.155e-05/0.3105, allocations: 23.75 kB / 408.5 MB, free: 1.547 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003626/0.3109, allocations: 182.7 kB / 408.7 MB, free: 1.359 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.3109, allocations: 0 / 408.7 MB, free: 1.359 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.3109, allocations: 4 kB / 408.7 MB, free: 1.355 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.117e-06/0.3109, allocations: 4 kB / 408.7 MB, free: 1.352 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004402/0.3114, allocations: 269.5 kB / 408.9 MB, free: 1.039 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.3114, allocations: 0 / 408.9 MB, free: 1.039 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001879/0.3116, allocations: 35.91 kB / 409 MB, free: 1.004 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.093e-06/0.3116, allocations: 4 kB / 409 MB, free: 1 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.657e-05/0.3116, allocations: 7.938 kB / 409 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.3116, allocations: 0 / 409 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.3116, allocations: 4 kB / 409 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000523/0.3122, allocations: 475.3 kB / 409.4 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.986e-05/0.3122, allocations: 104.8 kB / 409.5 MB, free: 396 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.959e-05/0.3123, allocations: 8.156 kB / 409.5 MB, free: 388 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001789/0.3125, allocations: 4 kB / 409.6 MB, free: 384 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.925e-05/0.3125, allocations: 19.91 kB / 409.6 MB, free: 364 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.173e-05/0.3125, allocations: 15.92 kB / 409.6 MB, free: 348 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001434/0.3127, allocations: 168.5 kB / 409.8 MB, free: 180 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3127, allocations: 0 / 409.8 MB, free: 180 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003553/0.3131, allocations: 36 kB / 409.8 MB, free: 144 kB / 318.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.00011/0.3132, allocations: 95.19 kB / 409.9 MB, free: 36 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003617/0.3135, allocations: 120 kB / 410 MB, free: 15.91 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.165e-06/0.3136, allocations: 4.125 kB / 410 MB, free: 15.91 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001267/0.3137, allocations: 59.91 kB / 410.1 MB, free: 15.85 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004077/0.3141, allocations: 20.44 kB / 410.1 MB, free: 15.83 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009955/0.3151, allocations: 0.641 MB / 410.7 MB, free: 15.16 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000291/0.3154, allocations: 0.7397 MB / 411.5 MB, free: 14.39 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.317e-05/0.3155, allocations: 27.44 kB / 411.5 MB, free: 14.37 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3155, allocations: 0 / 411.5 MB, free: 14.37 MB / 334.1 MB Notification: Performance of Templates: time 0.003476/0.319, allocations: 2.12 MB / 413.6 MB, free: 12.24 MB / 334.1 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches