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.001335/0.001335, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001447/0.001447, allocations: 211.9 kB / 19.25 MB, free: 3.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.334/1.334, allocations: 227.4 MB / 247.4 MB, free: 10.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001295, allocations: 68.61 kB / 307.6 MB, free: 0.6641 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08268/0.08399, allocations: 50.53 MB / 358.1 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.002946/0.08698, allocations: 2.006 MB / 360.1 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001051/0.08805, allocations: 0.6388 MB / 360.8 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001288/0.0882, allocations: 11.94 kB / 360.8 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001444/0.08835, allocations: 39.55 kB / 360.8 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.998e-05/0.08846, allocations: 35.64 kB / 360.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002729/0.08874, allocations: 87.77 kB / 361 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002169/0.08897, allocations: 199.2 kB / 361.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001672/0.08914, allocations: 80.33 kB / 361.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001596/0.08931, allocations: 75.7 kB / 361.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001051/0.08943, allocations: 91.44 kB / 361.4 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.562e-05/0.08946, allocations: 12 kB / 361.4 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.412e-05/0.08952, allocations: 19.98 kB / 361.4 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.807e-05/0.08955, allocations: 27.86 kB / 361.4 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.145e-05/0.08963, allocations: 91.47 kB / 361.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001778/0.08981, allocations: 163.6 kB / 361.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.08983, allocations: 0 / 361.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.163e-06/0.08984, allocations: 3.938 kB / 361.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.591e-06/0.08985, allocations: 4 kB / 361.7 MB, free: 10.54 MB / 302.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.0006214/0.09047, allocations: 0.4984 MB / 362.2 MB, free: 9.996 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.09052, allocations: 12.03 kB / 362.2 MB, free: 9.984 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002318/0.09075, allocations: 36.64 kB / 362.2 MB, free: 9.949 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002498/0.09102, allocations: 247.7 kB / 362.5 MB, free: 9.668 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.391e-05/0.09104, allocations: 12.38 kB / 362.5 MB, free: 9.656 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.177e-05/0.09107, allocations: 12.38 kB / 362.5 MB, free: 9.645 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002907/0.09137, allocations: 172.4 kB / 362.7 MB, free: 9.461 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/0.09139, allocations: 0 / 362.7 MB, free: 9.461 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.72e-05/0.09141, allocations: 8 kB / 362.7 MB, free: 9.453 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.09142, allocations: 4 kB / 362.7 MB, free: 9.449 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002136/0.09164, allocations: 83.94 kB / 362.8 MB, free: 9.367 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009142/0.09256, allocations: 0.6332 MB / 363.4 MB, free: 8.676 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003004/0.09288, allocations: 135.8 kB / 363.5 MB, free: 8.516 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001135/0.093, allocations: 58.67 kB / 363.6 MB, free: 8.449 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.421e-05/0.09302, allocations: 0 / 363.6 MB, free: 8.449 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.291e-05/0.09305, allocations: 38.5 kB / 363.6 MB, free: 8.402 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.042e-06/0.09306, allocations: 0 / 363.6 MB, free: 8.402 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004723/0.09354, allocations: 177.3 kB / 363.8 MB, free: 8.223 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.443e-05/0.0936, allocations: 106.8 kB / 363.9 MB, free: 8.094 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002182/0.09382, allocations: 238.6 kB / 364.1 MB, free: 7.855 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.998e-05/0.09385, allocations: 29.7 kB / 364.2 MB, free: 7.82 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.773e-05/0.09393, allocations: 140 kB / 364.3 MB, free: 7.68 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.503e-05/0.09399, allocations: 47.34 kB / 364.4 MB, free: 7.633 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.331e-05/0.09405, allocations: 37.83 kB / 364.4 MB, free: 7.59 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.09417, allocations: 330.8 kB / 364.7 MB, free: 7.258 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001072/0.09429, allocations: 39.98 kB / 364.8 MB, free: 7.219 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001349/0.09443, allocations: 93.59 kB / 364.9 MB, free: 7.105 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002603/0.0947, allocations: 154.8 kB / 365 MB, free: 6.93 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.09471, allocations: 4.438 kB / 365 MB, free: 6.926 MB / 302.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003436/0.09506, allocations: 185.2 kB / 365.2 MB, free: 6.738 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/0.09508, allocations: 4 kB / 365.2 MB, free: 6.734 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.09509, allocations: 4 kB / 365.2 MB, free: 6.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.612e-05/0.09511, allocations: 0 / 365.2 MB, free: 6.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001645/0.09528, allocations: 44.03 kB / 365.2 MB, free: 6.688 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.904e-06/0.0953, allocations: 8 kB / 365.2 MB, free: 6.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001069/0.09541, allocations: 15.84 kB / 365.3 MB, free: 6.664 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.734e-05/0.09544, allocations: 11.98 kB / 365.3 MB, free: 6.652 MB / 302.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 9.952e-05/0.09554, allocations: 137.6 kB / 365.4 MB, free: 6.508 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.712e-05/0.09563, allocations: 23.72 kB / 365.4 MB, free: 6.484 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000398/0.09603, allocations: 182.8 kB / 365.6 MB, free: 6.297 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/0.09605, allocations: 4 kB / 365.6 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.09606, allocations: 0 / 365.6 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.09607, allocations: 3.984 kB / 365.6 MB, free: 6.289 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004411/0.09652, allocations: 273.3 kB / 365.9 MB, free: 5.973 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.257e-06/0.09653, allocations: 3.984 kB / 365.9 MB, free: 5.969 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001841/0.09672, allocations: 39.86 kB / 365.9 MB, free: 5.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.09673, allocations: 0 / 365.9 MB, free: 5.93 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.739e-05/0.09675, allocations: 8 kB / 365.9 MB, free: 5.922 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.09676, allocations: 0 / 365.9 MB, free: 5.922 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.09677, allocations: 4 kB / 365.9 MB, free: 5.918 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005119/0.09728, allocations: 474.8 kB / 366.4 MB, free: 5.438 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.632e-05/0.09735, allocations: 100.9 kB / 366.5 MB, free: 5.32 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.931e-05/0.09739, allocations: 4 kB / 366.5 MB, free: 5.316 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001818/0.09757, allocations: 11.98 kB / 366.5 MB, free: 5.305 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.97e-05/0.09763, allocations: 15.98 kB / 366.5 MB, free: 5.289 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.041e-05/0.09765, allocations: 4 kB / 366.5 MB, free: 5.285 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001358/0.09779, allocations: 174 kB / 366.7 MB, free: 5.113 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.09779, allocations: 0 / 366.7 MB, free: 5.113 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003495/0.09815, allocations: 32 kB / 366.7 MB, free: 5.082 MB / 302.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 9.431e-05/0.09825, allocations: 95.19 kB / 366.8 MB, free: 4.98 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002981/0.09856, allocations: 139.9 kB / 367 MB, free: 4.844 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.09857, allocations: 0 / 367 MB, free: 4.844 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001323/0.09871, allocations: 63.91 kB / 367 MB, free: 4.781 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003956/0.09911, allocations: 12.56 kB / 367 MB, free: 4.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000996/0.1001, allocations: 0.6594 MB / 367.7 MB, free: 4.078 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000263/0.1004, allocations: 0.7397 MB / 368.4 MB, free: 3.312 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.943e-05/0.1005, allocations: 23.42 kB / 368.5 MB, free: 3.289 MB / 302.1 MB Notification: Performance of SimCode: time 1.583e-06/0.1005, allocations: 0 / 368.5 MB, free: 3.289 MB / 302.1 MB Notification: Performance of Templates: time 0.003615/0.1041, allocations: 2.161 MB / 370.6 MB, free: 1.125 MB / 302.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/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_trunk_Modelica.Blocks.Examples.Modulation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches