Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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.Clocked.Examples.Elementary.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001168/0.001174, allocations: 109.5 kB / 17.06 MB, free: 6.023 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.001162/0.001162, allocations: 191 kB / 18 MB, free: 5.105 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.423/1.423, allocations: 222.9 MB / 241.7 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009605/0.0009606, allocations: 43.92 kB / 351.3 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2896/0.2906, allocations: 49.44 MB / 400.7 MB, free: 8.773 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.003135/0.2938, allocations: 1.548 MB / 402.3 MB, free: 7.352 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003965/0.2942, allocations: 139.5 kB / 402.4 MB, free: 7.215 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.226e-05/0.2943, allocations: 11.94 kB / 402.4 MB, free: 7.203 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.743e-05/0.2943, allocations: 3.938 kB / 402.4 MB, free: 7.199 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001103/0.2945, allocations: 7.922 kB / 402.4 MB, free: 7.191 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002025/0.2947, allocations: 39.91 kB / 402.5 MB, free: 7.152 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 7.909e-05/0.2948, allocations: 31.86 kB / 402.5 MB, free: 7.121 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.739e-05/0.2949, allocations: 15.98 kB / 402.5 MB, free: 7.105 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.707e-05/0.2949, allocations: 11.94 kB / 402.5 MB, free: 7.094 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.461e-05/0.2949, allocations: 23.84 kB / 402.6 MB, free: 7.07 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.287e-05/0.295, allocations: 4 kB / 402.6 MB, free: 7.066 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.357e-06/0.295, allocations: 4 kB / 402.6 MB, free: 7.062 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.999e-05/0.295, allocations: 11.94 kB / 402.6 MB, free: 7.051 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.452e-05/0.2951, allocations: 23.8 kB / 402.6 MB, free: 7.027 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 8.723e-05/0.2951, allocations: 47.81 kB / 402.6 MB, free: 6.98 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.2952, allocations: 0 / 402.6 MB, free: 6.98 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2952, allocations: 0 / 402.6 MB, free: 6.98 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.995e-06/0.2952, allocations: 0 / 402.6 MB, free: 6.98 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004207/0.2956, allocations: 368.3 kB / 403 MB, free: 6.574 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.38e-05/0.2956, allocations: 12.03 kB / 403 MB, free: 6.562 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.074e-05/0.2957, allocations: 12.84 kB / 403 MB, free: 6.551 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001981/0.2959, allocations: 192.2 kB / 403.2 MB, free: 6.324 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.687e-06/0.2959, allocations: 384 / 403.2 MB, free: 6.324 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.033e-05/0.2959, allocations: 8.375 kB / 403.2 MB, free: 6.316 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002395/0.2962, allocations: 117.6 kB / 403.3 MB, free: 6.184 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.827e-06/0.2962, allocations: 192 / 403.3 MB, free: 6.184 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.937e-05/0.2962, allocations: 7.938 kB / 403.3 MB, free: 6.176 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.223e-06/0.2962, allocations: 3.938 kB / 403.3 MB, free: 6.172 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.449e-05/0.2963, allocations: 23.92 kB / 403.4 MB, free: 6.148 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002833/0.2966, allocations: 253.8 kB / 403.6 MB, free: 5.848 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002018/0.2968, allocations: 142.2 kB / 403.8 MB, free: 5.672 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.223e-05/0.2969, allocations: 29.77 kB / 403.8 MB, free: 5.637 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.784e-05/0.2969, allocations: 0 / 403.8 MB, free: 5.637 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.403e-05/0.2969, allocations: 38.56 kB / 403.8 MB, free: 5.59 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 8.11e-07/0.2969, allocations: 0 / 403.8 MB, free: 5.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002352/0.2972, allocations: 77.52 kB / 403.9 MB, free: 5.508 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.295e-05/0.2972, allocations: 85.05 kB / 404 MB, free: 5.406 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001114/0.2974, allocations: 130.1 kB / 404.1 MB, free: 5.266 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.359e-05/0.2974, allocations: 29.7 kB / 404.1 MB, free: 5.23 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.041e-05/0.2974, allocations: 84.14 kB / 404.2 MB, free: 5.145 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.51e-05/0.2974, allocations: 12.03 kB / 404.2 MB, free: 5.133 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.899e-05/0.2975, allocations: 13.72 kB / 404.2 MB, free: 5.113 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001056/0.2976, allocations: 322.8 kB / 404.6 MB, free: 4.789 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.327e-05/0.2976, allocations: 4 kB / 404.6 MB, free: 4.785 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.568e-05/0.2977, allocations: 35.42 kB / 404.6 MB, free: 4.738 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.435e-05/0.2978, allocations: 55.3 kB / 404.7 MB, free: 4.672 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.2978, allocations: 0 / 404.7 MB, free: 4.672 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001165/0.2979, allocations: 65.47 kB / 404.7 MB, free: 4.602 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.2979, allocations: 11.98 kB / 404.7 MB, free: 4.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.298, allocations: 4.125 kB / 404.7 MB, free: 4.586 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.083e-05/0.298, allocations: 0 / 404.7 MB, free: 4.586 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.09e-05/0.298, allocations: 11.94 kB / 404.7 MB, free: 4.574 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.552e-06/0.298, allocations: 4 kB / 404.8 MB, free: 4.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.029e-05/0.2981, allocations: 0 / 404.8 MB, free: 4.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.694e-06/0.2981, allocations: 8 kB / 404.8 MB, free: 4.562 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (4): * Single equations (assignments): 4 * 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 8.757e-05/0.2982, allocations: 121.7 kB / 404.9 MB, free: 4.434 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.793e-05/0.2982, allocations: 53.59 kB / 404.9 MB, free: 4.375 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.906e-05/0.2983, allocations: 8.25 kB / 404.9 MB, free: 4.359 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.2983, allocations: 4 kB / 404.9 MB, free: 4.355 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.2983, allocations: 0 / 404.9 MB, free: 4.355 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.2983, allocations: 0 / 404.9 MB, free: 4.355 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001511/0.2985, allocations: 173.6 kB / 405.1 MB, free: 4.137 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.2985, allocations: 336 / 405.1 MB, free: 4.137 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.639e-05/0.2985, allocations: 11.92 kB / 405.1 MB, free: 4.125 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.724e-06/0.2985, allocations: 7.938 kB / 405.1 MB, free: 4.117 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.759e-06/0.2985, allocations: 0 / 405.1 MB, free: 4.117 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.2985, allocations: 0 / 405.1 MB, free: 4.117 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.2985, allocations: 0 / 405.1 MB, free: 4.117 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001542/0.2987, allocations: 180.2 kB / 405.3 MB, free: 3.922 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.348e-05/0.2988, allocations: 89.09 kB / 405.4 MB, free: 3.816 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.161e-05/0.2988, allocations: 0 / 405.4 MB, free: 3.816 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.775e-05/0.2988, allocations: 4 kB / 405.4 MB, free: 3.812 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.867e-05/0.2989, allocations: 0 / 405.4 MB, free: 3.812 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.34e-06/0.2989, allocations: 4 kB / 405.4 MB, free: 3.809 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.476e-05/0.2989, allocations: 110.5 kB / 405.5 MB, free: 3.703 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.299, allocations: 0 / 405.5 MB, free: 3.703 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002206/0.2992, allocations: 8 kB / 405.5 MB, free: 3.695 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 simulation (4): * Single equations (assignments): 4 * 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 8.792e-05/0.2993, allocations: 103.9 kB / 405.6 MB, free: 3.586 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001229/0.2994, allocations: 27.98 kB / 405.6 MB, free: 3.559 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.2994, allocations: 3.938 kB / 405.7 MB, free: 3.555 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.335e-05/0.2994, allocations: 12.23 kB / 405.7 MB, free: 3.543 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002868/0.2997, allocations: 19.97 kB / 405.7 MB, free: 3.523 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002792/0.3, allocations: 154.4 kB / 405.8 MB, free: 3.344 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002264/0.3003, allocations: 0.6961 MB / 406.5 MB, free: 2.621 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.628e-05/0.3003, allocations: 4 kB / 406.5 MB, free: 2.617 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.024e-05/0.3003, allocations: 7.438 kB / 406.5 MB, free: 2.609 MB / 318.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3003, allocations: 4.062 kB / 406.5 MB, free: 2.605 MB / 318.1 MB Notification: Performance of Templates: time 0.0024/0.3027, allocations: 0.5013 MB / 407 MB, free: 2.109 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample2/Sample2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches