Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.Modulation.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Blocks.Examples.Modulation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001099/0.0011, allocations: 194 kB / 17.38 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.406/1.406, allocations: 226.6 MB / 244.7 MB, free: 6.441 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007508/0.0007508, allocations: 96.7 kB / 296.8 MB, free: 6.648 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002303/0.0002304, allocations: 8 kB / 356.7 MB, free: 10.67 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2275/0.2277, allocations: 51.29 MB / 408 MB, free: 27.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.001636/0.2294, allocations: 1.636 MB / 409.7 MB, free: 26.02 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007529/0.2302, allocations: 0.5724 MB / 410.2 MB, free: 25.45 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.494e-05/0.2303, allocations: 3.938 kB / 410.2 MB, free: 25.44 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001335/0.2304, allocations: 31.66 kB / 410.3 MB, free: 25.41 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.064e-05/0.2305, allocations: 29.27 kB / 410.3 MB, free: 25.38 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001936/0.2307, allocations: 48.81 kB / 410.4 MB, free: 25.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001722/0.2309, allocations: 183.2 kB / 410.5 MB, free: 25.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001468/0.231, allocations: 69.22 kB / 410.6 MB, free: 25.09 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001256/0.2312, allocations: 59.72 kB / 410.7 MB, free: 25.03 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.706e-05/0.2313, allocations: 56.89 kB / 410.7 MB, free: 24.97 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.931e-05/0.2313, allocations: 8 kB / 410.7 MB, free: 24.96 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.532e-05/0.2313, allocations: 11.98 kB / 410.7 MB, free: 24.95 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.232e-05/0.2314, allocations: 27.33 kB / 410.8 MB, free: 24.93 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.917e-05/0.2314, allocations: 93.23 kB / 410.9 MB, free: 24.83 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000125/0.2316, allocations: 124.6 kB / 411 MB, free: 24.71 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.2316, allocations: 0 / 411 MB, free: 24.71 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2316, allocations: 0 / 411 MB, free: 24.71 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.262e-06/0.2316, allocations: 4 kB / 411 MB, free: 24.71 MB / 298.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.0005264/0.2321, allocations: 460 kB / 411.4 MB, free: 24.21 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.2322, allocations: 8.031 kB / 411.4 MB, free: 24.2 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002154/0.2324, allocations: 56.75 kB / 411.5 MB, free: 24.15 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001928/0.2326, allocations: 239.7 kB / 411.7 MB, free: 23.88 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.662e-05/0.2326, allocations: 12.38 kB / 411.7 MB, free: 23.87 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.041e-05/0.2327, allocations: 12.38 kB / 411.7 MB, free: 23.86 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002623/0.2329, allocations: 168.5 kB / 411.9 MB, free: 23.68 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.2329, allocations: 0 / 411.9 MB, free: 23.68 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.908e-05/0.233, allocations: 8 kB / 411.9 MB, free: 23.67 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.233, allocations: 11.92 kB / 411.9 MB, free: 23.66 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001957/0.2332, allocations: 95.62 kB / 412 MB, free: 23.57 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007461/0.2339, allocations: 0.6371 MB / 412.7 MB, free: 22.87 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002027/0.2341, allocations: 143.8 kB / 412.8 MB, free: 22.7 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.983e-05/0.2343, allocations: 54.69 kB / 412.9 MB, free: 22.64 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.983e-05/0.2343, allocations: 3.984 kB / 412.9 MB, free: 22.64 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.027e-05/0.2343, allocations: 38.56 kB / 412.9 MB, free: 22.59 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 1.553e-06/0.2343, allocations: 0 / 412.9 MB, free: 22.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0004381/0.2348, allocations: 181.4 kB / 413.1 MB, free: 22.41 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.688e-05/0.2348, allocations: 114.8 kB / 413.2 MB, free: 22.27 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001643/0.235, allocations: 225 kB / 413.4 MB, free: 22.04 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.434e-05/0.235, allocations: 29.7 kB / 413.4 MB, free: 22.01 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.462e-05/0.2351, allocations: 136 kB / 413.6 MB, free: 21.87 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.564e-05/0.2351, allocations: 47.34 kB / 413.6 MB, free: 21.82 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.133e-06/0.2351, allocations: 0 / 413.6 MB, free: 21.82 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.783e-05/0.2352, allocations: 338.8 kB / 413.9 MB, free: 21.48 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001024/0.2353, allocations: 43.97 kB / 414 MB, free: 21.44 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001102/0.2354, allocations: 98.69 kB / 414.1 MB, free: 21.32 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002176/0.2357, allocations: 158.7 kB / 414.2 MB, free: 21.14 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.2357, allocations: 0 / 414.2 MB, free: 21.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0002873/0.236, allocations: 185.4 kB / 414.4 MB, free: 20.95 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/0.236, allocations: 12.03 kB / 414.4 MB, free: 20.94 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.236, allocations: 0 / 414.4 MB, free: 20.94 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.236, allocations: 4 kB / 414.4 MB, free: 20.94 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001396/0.2362, allocations: 36.53 kB / 414.5 MB, free: 20.9 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.245e-06/0.2362, allocations: 3.938 kB / 414.5 MB, free: 20.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.767e-05/0.2363, allocations: 27.83 kB / 414.5 MB, free: 20.87 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.378e-05/0.2363, allocations: 4 kB / 414.5 MB, free: 20.87 MB / 298.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 7.983e-05/0.2364, allocations: 133.8 kB / 414.6 MB, free: 20.73 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.672e-05/0.2365, allocations: 27.72 kB / 414.7 MB, free: 20.7 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003376/0.2368, allocations: 194.7 kB / 414.9 MB, free: 20.5 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.2368, allocations: 4 kB / 414.9 MB, free: 20.5 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.2368, allocations: 4 kB / 414.9 MB, free: 20.49 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.2368, allocations: 0 / 414.9 MB, free: 20.49 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003549/0.2372, allocations: 273.4 kB / 415.1 MB, free: 20.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.2372, allocations: 0 / 415.1 MB, free: 20.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001657/0.2374, allocations: 35.92 kB / 415.2 MB, free: 20.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-06/0.2374, allocations: 0 / 415.2 MB, free: 20.14 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.896e-05/0.2374, allocations: 11.98 kB / 415.2 MB, free: 20.13 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.2374, allocations: 0 / 415.2 MB, free: 20.13 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2374, allocations: 3.938 kB / 415.2 MB, free: 20.12 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004387/0.2379, allocations: 492.9 kB / 415.7 MB, free: 19.63 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.416e-05/0.2379, allocations: 100.8 kB / 415.8 MB, free: 19.51 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.692e-05/0.2379, allocations: 8.062 kB / 415.8 MB, free: 19.5 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001645/0.2381, allocations: 7.984 kB / 415.8 MB, free: 19.5 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.113e-05/0.2382, allocations: 15.98 kB / 415.8 MB, free: 19.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.387e-06/0.2382, allocations: 4 kB / 415.8 MB, free: 19.48 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.897e-05/0.2383, allocations: 164.5 kB / 416 MB, free: 19.32 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.51e-07/0.2383, allocations: 0 / 416 MB, free: 19.32 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003102/0.2386, allocations: 35.94 kB / 416 MB, free: 19.28 MB / 298.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 8.534e-05/0.2387, allocations: 99.78 kB / 416.1 MB, free: 19.17 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002658/0.239, allocations: 127.7 kB / 416.2 MB, free: 19.05 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.239, allocations: 4.375 kB / 416.2 MB, free: 19.04 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001153/0.2391, allocations: 67.91 kB / 416.3 MB, free: 18.98 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003853/0.2395, allocations: 12.44 kB / 416.3 MB, free: 18.96 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008642/0.2404, allocations: 0.7607 MB / 417.1 MB, free: 18.17 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001856/0.2406, allocations: 0.7439 MB / 417.8 MB, free: 17.4 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.853e-05/0.2406, allocations: 23.42 kB / 417.8 MB, free: 17.38 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2406, allocations: 0 / 417.8 MB, free: 17.38 MB / 298.7 MB Notification: Performance of Templates: time 0.002868/0.2435, allocations: 2.088 MB / 419.9 MB, free: 15.29 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Modulation.makefile (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Modulation.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.Modulation.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.Modulation.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.Modulation.sim & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.Modulation --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Blocks.Examples.Modulation.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.Modulation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches