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.001234/0.001235, allocations: 116.2 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001453/0.001453, allocations: 214 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.386/1.386, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 59.91 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.293/0.2943, allocations: 50.54 MB / 409.9 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.003138/0.2975, allocations: 2.019 MB / 411.9 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001152/0.2987, allocations: 0.6349 MB / 412.6 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000112/0.2988, allocations: 11.94 kB / 412.6 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001688/0.299, allocations: 43.53 kB / 412.6 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.407e-05/0.2991, allocations: 31.61 kB / 412.7 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003046/0.2994, allocations: 83.83 kB / 412.7 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002528/0.2997, allocations: 207.2 kB / 412.9 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001893/0.2999, allocations: 76.34 kB / 413 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000171/0.3001, allocations: 79.62 kB / 413.1 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001237/0.3002, allocations: 83.58 kB / 413.2 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.034e-05/0.3002, allocations: 12 kB / 413.2 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.287e-05/0.3003, allocations: 23.92 kB / 413.2 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.954e-05/0.3004, allocations: 31.86 kB / 413.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.319e-05/0.3004, allocations: 83.47 kB / 413.3 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002348/0.3007, allocations: 182.9 kB / 413.5 MB, free: 13.99 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3007, allocations: 4 kB / 413.5 MB, free: 13.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3007, allocations: 0 / 413.5 MB, free: 13.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.843e-06/0.3007, allocations: 0 / 413.5 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.0006989/0.3014, allocations: 499.9 kB / 414 MB, free: 13.45 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.3015, allocations: 8.031 kB / 414 MB, free: 13.44 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002596/0.3017, allocations: 44.62 kB / 414 MB, free: 13.4 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003476/0.3021, allocations: 251.6 kB / 414.3 MB, free: 13.11 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.166e-05/0.3021, allocations: 8.375 kB / 414.3 MB, free: 13.11 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.64e-05/0.3021, allocations: 12.38 kB / 414.3 MB, free: 13.09 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000312/0.3025, allocations: 172.5 kB / 414.5 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.3025, allocations: 3.938 kB / 414.5 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.803e-05/0.3025, allocations: 7.938 kB / 414.5 MB, free: 12.9 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.585e-06/0.3025, allocations: 4 kB / 414.5 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002072/0.3027, allocations: 79.95 kB / 414.6 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009176/0.3037, allocations: 0.6371 MB / 415.2 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002428/0.3039, allocations: 139.7 kB / 415.3 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001111/0.304, allocations: 54.69 kB / 415.4 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.677e-05/0.3041, allocations: 0 / 415.4 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.859e-05/0.3041, allocations: 46.48 kB / 415.4 MB, free: 11.84 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 2.886e-06/0.3041, allocations: 3.984 kB / 415.4 MB, free: 11.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004813/0.3046, allocations: 173.9 kB / 415.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.901e-05/0.3047, allocations: 106.8 kB / 415.7 MB, free: 11.53 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002304/0.3049, allocations: 238.6 kB / 415.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.066e-05/0.3049, allocations: 29.7 kB / 416 MB, free: 11.25 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.798e-05/0.305, allocations: 132 kB / 416.1 MB, free: 11.12 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.721e-05/0.3051, allocations: 47.36 kB / 416.2 MB, free: 11.07 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.15e-05/0.3051, allocations: 29.7 kB / 416.2 MB, free: 11.04 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001277/0.3053, allocations: 338.8 kB / 416.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001071/0.3054, allocations: 43.88 kB / 416.6 MB, free: 10.66 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001429/0.3055, allocations: 97.75 kB / 416.7 MB, free: 10.54 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002668/0.3058, allocations: 142.8 kB / 416.8 MB, free: 10.38 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.3058, allocations: 4 kB / 416.8 MB, free: 10.37 MB / 334.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.000336/0.3062, allocations: 185.1 kB / 417 MB, free: 10.18 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/0.3062, allocations: 8 kB / 417 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.3062, allocations: 0 / 417 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.821e-05/0.3062, allocations: 4 kB / 417 MB, free: 10.17 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000152/0.3064, allocations: 31.92 kB / 417 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/0.3064, allocations: 8.172 kB / 417 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001089/0.3065, allocations: 23.84 kB / 417.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.495e-05/0.3065, allocations: 4 kB / 417.1 MB, free: 10.11 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.000112/0.3067, allocations: 141.6 kB / 417.2 MB, free: 9.957 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.378e-05/0.3067, allocations: 23.8 kB / 417.2 MB, free: 9.934 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003712/0.3071, allocations: 182.7 kB / 417.4 MB, free: 9.75 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.109e-06/0.3071, allocations: 4 kB / 417.4 MB, free: 9.746 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.3072, allocations: 4 kB / 417.4 MB, free: 9.742 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.7e-06/0.3072, allocations: 4 kB / 417.4 MB, free: 9.738 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004487/0.3076, allocations: 265.5 kB / 417.7 MB, free: 9.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.3076, allocations: 4 kB / 417.7 MB, free: 9.426 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000179/0.3078, allocations: 35.91 kB / 417.7 MB, free: 9.391 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.115e-06/0.3078, allocations: 0 / 417.7 MB, free: 9.391 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.927e-05/0.3079, allocations: 8 kB / 417.7 MB, free: 9.383 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.3079, allocations: 3.938 kB / 417.7 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.3079, allocations: 8.062 kB / 417.7 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005581/0.3084, allocations: 477 kB / 418.2 MB, free: 8.891 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.422e-05/0.3085, allocations: 104.8 kB / 418.3 MB, free: 8.77 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.281e-05/0.3086, allocations: 12 kB / 418.3 MB, free: 8.758 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001738/0.3087, allocations: 4 kB / 418.3 MB, free: 8.754 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.576e-05/0.3088, allocations: 15.98 kB / 418.3 MB, free: 8.738 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.185e-05/0.3088, allocations: 7.984 kB / 418.3 MB, free: 8.73 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000159/0.309, allocations: 174 kB / 418.5 MB, free: 8.559 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.309, allocations: 0 / 418.5 MB, free: 8.559 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003476/0.3093, allocations: 35.91 kB / 418.5 MB, free: 8.523 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.0001215/0.3095, allocations: 95.25 kB / 418.6 MB, free: 8.418 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003303/0.3098, allocations: 124 kB / 418.7 MB, free: 8.297 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3098, allocations: 0 / 418.7 MB, free: 8.297 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001311/0.31, allocations: 67.91 kB / 418.8 MB, free: 8.23 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004063/0.3104, allocations: 12.56 kB / 418.8 MB, free: 8.219 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001078/0.3115, allocations: 0.649 MB / 419.5 MB, free: 7.535 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003059/0.3118, allocations: 0.7475 MB / 420.2 MB, free: 6.762 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.977e-05/0.3118, allocations: 15.44 kB / 420.2 MB, free: 6.746 MB / 334.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3118, allocations: 4 kB / 420.2 MB, free: 6.742 MB / 334.1 MB Notification: Performance of Templates: time 0.003769/0.3156, allocations: 2.182 MB / 422.4 MB, free: 4.555 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/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