Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.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.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_trunk_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_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001299/0.001299, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001499/0.001499, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.481/1.481, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001159/0.001159, allocations: 60.14 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3291/0.3303, allocations: 50.54 MB / 409.2 MB, free: 1.641 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.003466/0.3338, allocations: 1.868 MB / 411.1 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001336/0.3352, allocations: 0.7516 MB / 411.9 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00015/0.3353, allocations: 7.938 kB / 411.9 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001829/0.3355, allocations: 19.78 kB / 411.9 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001717/0.3357, allocations: 27.78 kB / 411.9 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005673/0.3363, allocations: 167.2 kB / 412.1 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002125/0.3365, allocations: 155.5 kB / 412.2 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001639/0.3367, allocations: 61.44 kB / 412.3 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001585/0.3368, allocations: 67.7 kB / 412.4 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001259/0.337, allocations: 55.7 kB / 412.4 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.289e-05/0.337, allocations: 12 kB / 412.4 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001139/0.3371, allocations: 55.97 kB / 412.5 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.317e-05/0.3372, allocations: 47.83 kB / 412.5 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.345e-05/0.3373, allocations: 67.59 kB / 412.6 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002982/0.3376, allocations: 203 kB / 412.8 MB, free: 14.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.3377, allocations: 11.92 kB / 412.8 MB, free: 14.07 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3377, allocations: 0 / 412.8 MB, free: 14.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.124e-06/0.3377, allocations: 0 / 412.8 MB, free: 14.07 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0007373/0.3384, allocations: 474.7 kB / 413.3 MB, free: 13.56 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/0.3385, allocations: 12.03 kB / 413.3 MB, free: 13.55 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001645/0.3386, allocations: 28.78 kB / 413.3 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003321/0.339, allocations: 256.1 kB / 413.6 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.779e-05/0.339, allocations: 8.562 kB / 413.6 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.149e-05/0.339, allocations: 16.12 kB / 413.6 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006628/0.3397, allocations: 322.2 kB / 413.9 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.3397, allocations: 0 / 413.9 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.7e-05/0.3397, allocations: 4 kB / 413.9 MB, free: 12.87 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.3398, allocations: 7.984 kB / 413.9 MB, free: 12.86 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002271/0.34, allocations: 87.88 kB / 414 MB, free: 12.78 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003859/0.3404, allocations: 341.5 kB / 414.3 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004499/0.3408, allocations: 270.1 kB / 414.6 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001866/0.341, allocations: 101.7 kB / 414.7 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005801/0.3416, allocations: 0.5856 MB / 415.3 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.637e-05/0.3417, allocations: 42.78 kB / 415.3 MB, free: 11.22 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 1.473e-06/0.3417, allocations: 0 / 415.3 MB, free: 11.22 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.0005579/0.3423, allocations: 229.4 kB / 415.5 MB, free: 10.99 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.178e-05/0.3424, allocations: 126.8 kB / 415.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001718/0.3425, allocations: 195.2 kB / 415.9 MB, free: 10.64 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.756e-05/0.3426, allocations: 29.7 kB / 415.9 MB, free: 10.6 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.39e-05/0.3426, allocations: 104.6 kB / 416 MB, free: 10.49 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.842e-05/0.3427, allocations: 19.89 kB / 416 MB, free: 10.47 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.322e-05/0.3427, allocations: 37.7 kB / 416 MB, free: 10.43 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.748e-05/0.3428, allocations: 330.8 kB / 416.4 MB, free: 10.1 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.915e-05/0.3429, allocations: 35.97 kB / 416.4 MB, free: 10.06 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000148/0.3431, allocations: 174.5 kB / 416.6 MB, free: 9.836 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002167/0.3433, allocations: 204 kB / 416.8 MB, free: 9.578 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.3433, allocations: 4 kB / 416.8 MB, free: 9.574 MB / 334.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003049/0.3436, allocations: 217.1 kB / 417 MB, free: 9.355 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.3437, allocations: 6.969 kB / 417 MB, free: 9.352 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.3437, allocations: 4 kB / 417 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.817e-05/0.3437, allocations: 8 kB / 417 MB, free: 9.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001381/0.3438, allocations: 44.5 kB / 417 MB, free: 9.297 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.193e-05/0.3439, allocations: 4 kB / 417.1 MB, free: 9.293 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001069/0.344, allocations: 27.83 kB / 417.1 MB, free: 9.266 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.694e-05/0.344, allocations: 12 kB / 417.1 MB, free: 9.254 MB / 334.1 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 ($CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[1],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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001257/0.3441, allocations: 148.8 kB / 417.2 MB, free: 9.102 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003017/0.3444, allocations: 169.4 kB / 417.4 MB, free: 8.93 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003435/0.3448, allocations: 183.3 kB / 417.6 MB, free: 8.738 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.3448, allocations: 4 kB / 417.6 MB, free: 8.734 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.3448, allocations: 0 / 417.6 MB, free: 8.734 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.3448, allocations: 4 kB / 417.6 MB, free: 8.73 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002065/0.345, allocations: 233.5 kB / 417.8 MB, free: 8.453 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.626e-06/0.345, allocations: 3.938 kB / 417.8 MB, free: 8.449 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001305/0.3452, allocations: 31.92 kB / 417.9 MB, free: 8.418 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.3452, allocations: 0 / 417.9 MB, free: 8.418 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.673e-05/0.3452, allocations: 7.984 kB / 417.9 MB, free: 8.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.3452, allocations: 0 / 417.9 MB, free: 8.41 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.3452, allocations: 0 / 417.9 MB, free: 8.41 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003905/0.3456, allocations: 288.1 kB / 418.1 MB, free: 8.109 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001018/0.3457, allocations: 112.9 kB / 418.3 MB, free: 7.98 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.28e-05/0.3458, allocations: 8 kB / 418.3 MB, free: 7.973 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001217/0.3459, allocations: 15.98 kB / 418.3 MB, free: 7.957 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.888e-05/0.3459, allocations: 7.938 kB / 418.3 MB, free: 7.949 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.645e-05/0.346, allocations: 4 kB / 418.3 MB, free: 7.945 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001149/0.3461, allocations: 152.2 kB / 418.4 MB, free: 7.797 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3461, allocations: 0 / 418.4 MB, free: 7.797 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002989/0.3464, allocations: 35.94 kB / 418.5 MB, free: 7.762 MB / 334.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: 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 (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.0001878/0.3466, allocations: 119.2 kB / 418.6 MB, free: 7.637 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003221/0.3469, allocations: 143.7 kB / 418.7 MB, free: 7.496 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3469, allocations: 0 / 418.7 MB, free: 7.496 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.201e-05/0.347, allocations: 15.94 kB / 418.7 MB, free: 7.48 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005656/0.3475, allocations: 150.8 kB / 418.9 MB, free: 7.328 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005741/0.3481, allocations: 332.7 kB / 419.2 MB, free: 6.977 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002854/0.3484, allocations: 0.736 MB / 420 MB, free: 6.211 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.431e-05/0.3485, allocations: 21.48 kB / 420 MB, free: 6.188 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.025e-05/0.3485, allocations: 23.44 kB / 420 MB, free: 6.168 MB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3485, allocations: 0 / 420 MB, free: 6.168 MB / 334.1 MB Notification: Performance of Templates: time 0.005845/0.3544, allocations: 2.381 MB / 422.4 MB, free: 3.801 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleWithADeffects/SampleWithADeffects.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches