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.001558/0.001558, allocations: 117 kB / 17.06 MB, free: 5.816 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.002024/0.002024, allocations: 194.9 kB / 18.01 MB, free: 4.938 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.478/1.478, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001091/0.001091, allocations: 47.92 kB / 351.3 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3041/0.3052, allocations: 49.43 MB / 400.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.004087/0.3094, allocations: 1.557 MB / 402.3 MB, free: 7.312 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007226/0.3101, allocations: 139.5 kB / 402.4 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001557/0.3103, allocations: 4 kB / 402.4 MB, free: 7.172 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 7.853e-05/0.3104, allocations: 3.938 kB / 402.4 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002401/0.3107, allocations: 11.91 kB / 402.4 MB, free: 7.156 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004088/0.3111, allocations: 42.61 kB / 402.5 MB, free: 7.117 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000165/0.3113, allocations: 39.84 kB / 402.5 MB, free: 7.078 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001727/0.3114, allocations: 15.98 kB / 402.5 MB, free: 7.062 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.155e-05/0.3115, allocations: 11.94 kB / 402.5 MB, free: 7.051 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.172e-05/0.3116, allocations: 11.92 kB / 402.6 MB, free: 7.039 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.492e-05/0.3116, allocations: 0 / 402.6 MB, free: 7.039 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.544e-05/0.3117, allocations: 4 kB / 402.6 MB, free: 7.035 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.832e-05/0.3118, allocations: 15.92 kB / 402.6 MB, free: 7.02 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.715e-05/0.3118, allocations: 27.81 kB / 402.6 MB, free: 6.992 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002076/0.312, allocations: 51.55 kB / 402.7 MB, free: 6.945 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.3121, allocations: 0 / 402.7 MB, free: 6.945 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.3121, allocations: 0 / 402.7 MB, free: 6.945 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.979e-06/0.3121, allocations: 0 / 402.7 MB, free: 6.945 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.0007795/0.3129, allocations: 370.3 kB / 403 MB, free: 6.535 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.381e-05/0.3129, allocations: 12.03 kB / 403 MB, free: 6.523 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.929e-05/0.313, allocations: 12.88 kB / 403 MB, free: 6.512 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004035/0.3134, allocations: 188.3 kB / 403.2 MB, free: 6.289 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.889e-05/0.3135, allocations: 4.375 kB / 403.2 MB, free: 6.285 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.527e-05/0.3135, allocations: 384 / 403.2 MB, free: 6.285 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004173/0.3139, allocations: 117.5 kB / 403.3 MB, free: 6.152 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.3139, allocations: 4.188 kB / 403.3 MB, free: 6.148 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.618e-05/0.314, allocations: 7.938 kB / 403.4 MB, free: 6.141 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.263e-06/0.314, allocations: 0 / 403.4 MB, free: 6.141 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001057/0.3141, allocations: 19.98 kB / 403.4 MB, free: 6.121 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005466/0.3146, allocations: 269.6 kB / 403.6 MB, free: 5.805 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003298/0.315, allocations: 142.2 kB / 403.8 MB, free: 5.629 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.433e-05/0.3151, allocations: 25.77 kB / 403.8 MB, free: 5.598 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.144e-05/0.3151, allocations: 7.938 kB / 403.8 MB, free: 5.59 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.502e-05/0.3152, allocations: 30.56 kB / 403.8 MB, free: 5.551 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 1.393e-06/0.3152, allocations: 0 / 403.8 MB, free: 5.551 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003249/0.3155, allocations: 85.73 kB / 403.9 MB, free: 5.461 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.653e-05/0.3156, allocations: 77.11 kB / 404 MB, free: 5.367 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000153/0.3158, allocations: 134 kB / 404.1 MB, free: 5.223 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.038e-05/0.3158, allocations: 29.7 kB / 404.2 MB, free: 5.188 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.522e-05/0.3159, allocations: 84.14 kB / 404.2 MB, free: 5.102 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.545e-05/0.3159, allocations: 0 / 404.2 MB, free: 5.102 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.35e-05/0.316, allocations: 29.59 kB / 404.3 MB, free: 5.066 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001458/0.3161, allocations: 319 kB / 404.6 MB, free: 4.746 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.438e-05/0.3162, allocations: 11.98 kB / 404.6 MB, free: 4.734 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.922e-05/0.3163, allocations: 31.42 kB / 404.6 MB, free: 4.691 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000116/0.3164, allocations: 51.36 kB / 404.7 MB, free: 4.629 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.3164, allocations: 0 / 404.7 MB, free: 4.629 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001785/0.3166, allocations: 77.48 kB / 404.7 MB, free: 4.547 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.3166, allocations: 4 kB / 404.8 MB, free: 4.543 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.3166, allocations: 0 / 404.8 MB, free: 4.543 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.975e-05/0.3166, allocations: 4 kB / 404.8 MB, free: 4.539 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.194e-05/0.3167, allocations: 4 kB / 404.8 MB, free: 4.535 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.128e-05/0.3168, allocations: 8.125 kB / 404.8 MB, free: 4.527 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.94e-05/0.3168, allocations: 3.984 kB / 404.8 MB, free: 4.523 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.086e-05/0.3168, allocations: 4 kB / 404.8 MB, free: 4.52 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 0.0001356/0.317, allocations: 121.7 kB / 404.9 MB, free: 4.391 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001102/0.3171, allocations: 53.58 kB / 404.9 MB, free: 4.332 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.441e-05/0.3172, allocations: 12.25 kB / 405 MB, free: 4.312 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.3172, allocations: 0 / 405 MB, free: 4.312 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.124e-06/0.3172, allocations: 0 / 405 MB, free: 4.312 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.3172, allocations: 0 / 405 MB, free: 4.312 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003055/0.3175, allocations: 177.6 kB / 405.1 MB, free: 4.09 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-06/0.3175, allocations: 0 / 405.1 MB, free: 4.09 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.96e-05/0.3176, allocations: 11.98 kB / 405.1 MB, free: 4.078 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.392e-06/0.3176, allocations: 4 kB / 405.1 MB, free: 4.074 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.197e-06/0.3176, allocations: 3.938 kB / 405.2 MB, free: 4.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.3176, allocations: 0 / 405.2 MB, free: 4.07 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.3176, allocations: 0 / 405.2 MB, free: 4.07 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002771/0.3179, allocations: 176.2 kB / 405.3 MB, free: 3.879 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.055e-05/0.318, allocations: 93.05 kB / 405.4 MB, free: 3.77 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.128e-05/0.3181, allocations: 0 / 405.4 MB, free: 3.77 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.779e-05/0.3182, allocations: 4 kB / 405.4 MB, free: 3.766 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.1e-05/0.3182, allocations: 0 / 405.4 MB, free: 3.766 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.418e-06/0.3183, allocations: 4 kB / 405.4 MB, free: 3.762 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001318/0.3184, allocations: 106.6 kB / 405.5 MB, free: 3.66 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3184, allocations: 0 / 405.5 MB, free: 3.66 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000442/0.3189, allocations: 4 kB / 405.5 MB, free: 3.656 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 0.0001412/0.319, allocations: 108 kB / 405.6 MB, free: 3.543 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002/0.3192, allocations: 27.92 kB / 405.7 MB, free: 3.516 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.3192, allocations: 0 / 405.7 MB, free: 3.516 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.722e-05/0.3193, allocations: 11.98 kB / 405.7 MB, free: 3.504 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004896/0.3198, allocations: 27.89 kB / 405.7 MB, free: 3.477 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003949/0.3202, allocations: 150.6 kB / 405.8 MB, free: 3.301 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003736/0.3206, allocations: 0.6961 MB / 406.5 MB, free: 2.578 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.882e-05/0.3206, allocations: 7.984 kB / 406.6 MB, free: 2.57 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.929e-05/0.3207, allocations: 7.438 kB / 406.6 MB, free: 2.562 MB / 318.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3207, allocations: 0 / 406.6 MB, free: 2.562 MB / 318.1 MB Notification: Performance of Templates: time 0.0033/0.324, allocations: 0.4957 MB / 407.1 MB, free: 2.07 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