Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.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.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001019/0.001019, allocations: 202.2 kB / 18.07 MB, free: 3.645 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.266/1.266, allocations: 226.5 MB / 245.4 MB, free: 8.137 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008363/0.0008362, allocations: 104.4 kB / 297.4 MB, free: 6.871 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003266/0.0003267, allocations: 4 kB / 357.4 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2301/0.2305, allocations: 51.3 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08476/0.3153, allocations: 79.48 MB / 488.2 MB, free: 12.11 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002239/0.3155, allocations: 79.95 kB / 488.2 MB, free: 12.03 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01277/0.3283, allocations: 4.905 MB / 493.1 MB, free: 7.133 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3283, allocations: 0 / 493.1 MB, free: 7.133 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.171e-05/0.3284, allocations: 4 kB / 493.1 MB, free: 7.129 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0005364/0.3289, allocations: 466.9 kB / 493.6 MB, free: 6.621 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.529e-05/0.3289, allocations: 12.03 kB / 493.6 MB, free: 6.609 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001354/0.3291, allocations: 36.64 kB / 493.6 MB, free: 6.574 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002732/0.3294, allocations: 240 kB / 493.9 MB, free: 6.301 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.68e-05/0.3294, allocations: 8.562 kB / 493.9 MB, free: 6.293 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.982e-05/0.3294, allocations: 8.375 kB / 493.9 MB, free: 6.285 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006218/0.3301, allocations: 345.6 kB / 494.2 MB, free: 5.93 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.3301, allocations: 0 / 494.2 MB, free: 5.93 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.641e-05/0.3301, allocations: 4 kB / 494.2 MB, free: 5.926 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.722e-06/0.3301, allocations: 7.938 kB / 494.2 MB, free: 5.918 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002268/0.3303, allocations: 103.9 kB / 494.3 MB, free: 5.816 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004104/0.3308, allocations: 361.8 kB / 494.7 MB, free: 5.41 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004166/0.3312, allocations: 273.2 kB / 495 MB, free: 5.109 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001904/0.3314, allocations: 117.8 kB / 495.1 MB, free: 4.988 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004944/0.3319, allocations: 0.5739 MB / 495.7 MB, free: 4.285 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.561e-05/0.3319, allocations: 38.56 kB / 495.7 MB, free: 4.238 MB / 362.7 MB Notification: Performance of pre-optimization done (n=19): time 1.513e-06/0.3319, allocations: 0 / 495.7 MB, free: 4.238 MB / 362.7 MB Notification: Performance of matching and sorting (n=19): time 0.0005491/0.3325, allocations: 257.2 kB / 495.9 MB, free: 3.98 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.995e-05/0.3326, allocations: 114.9 kB / 496.1 MB, free: 3.844 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001697/0.3328, allocations: 203.1 kB / 496.3 MB, free: 3.633 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.778e-05/0.3328, allocations: 25.7 kB / 496.3 MB, free: 3.602 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.077e-05/0.3328, allocations: 108.5 kB / 496.4 MB, free: 3.492 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.347e-05/0.3329, allocations: 15.89 kB / 496.4 MB, free: 3.477 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.566e-06/0.3329, allocations: 8 kB / 496.4 MB, free: 3.469 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.732e-05/0.333, allocations: 322.8 kB / 496.7 MB, free: 3.145 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.892e-05/0.3331, allocations: 43.97 kB / 496.8 MB, free: 3.102 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000141/0.3332, allocations: 164.1 kB / 496.9 MB, free: 2.883 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002108/0.3334, allocations: 208.1 kB / 497.1 MB, free: 2.621 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.3334, allocations: 0 / 497.1 MB, free: 2.621 MB / 362.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003054/0.3338, allocations: 217.5 kB / 497.3 MB, free: 2.402 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.3338, allocations: 15.03 kB / 497.4 MB, free: 2.391 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.3338, allocations: 4 kB / 497.4 MB, free: 2.387 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.825e-05/0.3338, allocations: 8 kB / 497.4 MB, free: 2.379 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001377/0.334, allocations: 43.92 kB / 497.4 MB, free: 2.336 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.338e-05/0.334, allocations: 15.92 kB / 497.4 MB, free: 2.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001035/0.3341, allocations: 15.84 kB / 497.4 MB, free: 2.305 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.522e-05/0.3341, allocations: 12 kB / 497.5 MB, free: 2.293 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 6 (sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[1],$CLKPRE.sample1.noise.seedState[1]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample1.noise.seedState[3],sample1.noise.seedState[2],sample1.noise.seedState[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * 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 0.0001245/0.3342, allocations: 154.9 kB / 497.6 MB, free: 2.133 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002901/0.3345, allocations: 165.4 kB / 497.8 MB, free: 1.965 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003547/0.3349, allocations: 191.3 kB / 498 MB, free: 1.766 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.07e-06/0.3349, allocations: 4 kB / 498 MB, free: 1.762 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.576e-06/0.3349, allocations: 0 / 498 MB, free: 1.762 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.3349, allocations: 0 / 498 MB, free: 1.762 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001937/0.3351, allocations: 225.5 kB / 498.2 MB, free: 1.492 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.124e-06/0.3351, allocations: 3.984 kB / 498.2 MB, free: 1.488 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001357/0.3353, allocations: 35.98 kB / 498.2 MB, free: 1.453 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.977e-06/0.3353, allocations: 3.938 kB / 498.2 MB, free: 1.449 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.146e-05/0.3353, allocations: 4 kB / 498.2 MB, free: 1.445 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.3353, allocations: 7.938 kB / 498.2 MB, free: 1.438 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.3353, allocations: 0 / 498.2 MB, free: 1.438 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003852/0.3357, allocations: 308.3 kB / 498.5 MB, free: 1.117 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.815e-05/0.3358, allocations: 108.9 kB / 498.6 MB, free: 0.9922 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.296e-05/0.3359, allocations: 11.94 kB / 498.6 MB, free: 0.9805 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001236/0.336, allocations: 15.98 kB / 498.7 MB, free: 0.9648 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.786e-05/0.336, allocations: 4 kB / 498.7 MB, free: 0.9609 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.58e-05/0.3361, allocations: 4 kB / 498.7 MB, free: 0.957 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001077/0.3362, allocations: 139.2 kB / 498.8 MB, free: 0.8203 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.493e-06/0.3362, allocations: 4 kB / 498.8 MB, free: 0.8164 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003063/0.3365, allocations: 35.94 kB / 498.8 MB, free: 0.7812 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 0.0001603/0.3367, allocations: 127.1 kB / 499 MB, free: 0.6484 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003048/0.337, allocations: 156 kB / 499.1 MB, free: 0.4961 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.337, allocations: 0 / 499.1 MB, free: 0.4961 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.693e-05/0.337, allocations: 8 kB / 499.1 MB, free: 500 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005379/0.3376, allocations: 151.6 kB / 499.3 MB, free: 344 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000587/0.3382, allocations: 404.9 kB / 499.7 MB, free: 15.91 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002455/0.3384, allocations: 0.7324 MB / 0.4887 GB, free: 15.14 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.971e-05/0.3385, allocations: 15.44 kB / 0.4887 GB, free: 15.13 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3385, allocations: 0 / 0.4887 GB, free: 15.13 MB / 378.7 MB Notification: Performance of Templates: time 0.00341/0.3419, allocations: 2.22 MB / 0.4909 GB, free: 12.92 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleWithADeffects/SampleWithADeffects.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches