Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|hold1.y|// shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|hold1.y|// shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009415/0.0009415, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.268/1.268, allocations: 221.5 MB / 230.3 MB, free: 7.52 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008968/0.000897, allocations: 106.8 kB / 281.2 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.824e-05/1.827e-05, allocations: 4 kB / 337.1 MB, free: 10.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09989/0.09992, allocations: 50.41 MB / 387.5 MB, free: 7.566 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3084/0.4083, allocations: 77.85 MB / 465.3 MB, free: 1.016 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001913/0.4086, allocations: 79.95 kB / 465.4 MB, free: 0.9375 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006024/0.4146, allocations: 2.382 MB / 467.8 MB, free: 14.55 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.4146, allocations: 0 / 467.8 MB, free: 14.55 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.257e-05/0.4146, allocations: 8 kB / 467.8 MB, free: 14.55 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0004208/0.4151, allocations: 414.9 kB / 468.2 MB, free: 14.1 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.4151, allocations: 8.031 kB / 468.2 MB, free: 14.09 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.79e-05/0.4152, allocations: 23.75 kB / 468.2 MB, free: 14.07 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002685/0.4154, allocations: 235.7 kB / 468.4 MB, free: 13.79 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.515e-05/0.4155, allocations: 4 kB / 468.5 MB, free: 13.79 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.688e-05/0.4155, allocations: 8 kB / 468.5 MB, free: 13.78 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001148/0.4156, allocations: 48.36 kB / 468.5 MB, free: 13.73 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003455/0.416, allocations: 235.8 kB / 468.7 MB, free: 13.47 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.416, allocations: 7.891 kB / 468.7 MB, free: 13.46 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.379e-05/0.416, allocations: 0 / 468.7 MB, free: 13.46 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.583e-06/0.416, allocations: 4 kB / 468.7 MB, free: 13.46 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004364/0.4165, allocations: 396.1 kB / 469.1 MB, free: 13.02 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002702/0.4167, allocations: 250.5 kB / 469.4 MB, free: 12.71 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001076/0.4169, allocations: 88.33 kB / 469.5 MB, free: 12.61 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.579e-05/0.4169, allocations: 8 kB / 469.5 MB, free: 12.61 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.342e-05/0.4169, allocations: 46.39 kB / 469.5 MB, free: 12.55 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.623e-06/0.4169, allocations: 4 kB / 469.5 MB, free: 12.55 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.0002497/0.4172, allocations: 117.4 kB / 469.6 MB, free: 12.43 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.45e-05/0.4173, allocations: 199.8 kB / 469.8 MB, free: 12.19 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001369/0.4174, allocations: 150.3 kB / 470 MB, free: 12.04 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.511e-05/0.4175, allocations: 25.7 kB / 470 MB, free: 12 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.987e-05/0.4175, allocations: 100.3 kB / 470.1 MB, free: 11.9 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.943e-05/0.4175, allocations: 23.77 kB / 470.1 MB, free: 11.88 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.579e-06/0.4176, allocations: 0 / 470.1 MB, free: 11.88 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001026/0.4177, allocations: 328.2 kB / 470.4 MB, free: 11.55 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.902e-05/0.4177, allocations: 12 kB / 470.5 MB, free: 11.54 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.784e-05/0.4178, allocations: 122.5 kB / 470.6 MB, free: 11.37 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.213e-05/0.4178, allocations: 32.02 kB / 470.6 MB, free: 11.34 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.4179, allocations: 4 kB / 470.6 MB, free: 11.33 MB / 346.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0001792/0.418, allocations: 133.2 kB / 470.7 MB, free: 11.2 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/0.4181, allocations: 9.406 kB / 470.8 MB, free: 11.19 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.4181, allocations: 7.984 kB / 470.8 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.4181, allocations: 7.953 kB / 470.8 MB, free: 11.17 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001197/0.4182, allocations: 37.42 kB / 470.8 MB, free: 11.14 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.4182, allocations: 4.5 kB / 470.8 MB, free: 11.13 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.819e-05/0.4183, allocations: 12 kB / 470.8 MB, free: 11.12 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.383e-05/0.4184, allocations: 8 kB / 470.8 MB, free: 11.11 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.025e-05/0.4184, allocations: 108.9 kB / 470.9 MB, free: 11 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001691/0.4186, allocations: 113.4 kB / 471 MB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.525e-05/0.4187, allocations: 25.83 kB / 471.1 MB, free: 10.86 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.4187, allocations: 0 / 471.1 MB, free: 10.86 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.662e-06/0.4187, allocations: 7.953 kB / 471.1 MB, free: 10.85 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.4187, allocations: 96 / 471.1 MB, free: 10.85 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002141/0.4189, allocations: 198.1 kB / 471.3 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.4189, allocations: 0 / 471.3 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001388/0.4191, allocations: 43.91 kB / 471.3 MB, free: 10.58 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.866e-06/0.4191, allocations: 0 / 471.3 MB, free: 10.58 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.199e-05/0.4191, allocations: 8 kB / 471.3 MB, free: 10.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.4191, allocations: 0 / 471.3 MB, free: 10.57 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.4191, allocations: 4 kB / 471.3 MB, free: 10.57 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002552/0.4194, allocations: 371.8 kB / 471.7 MB, free: 10.15 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.48e-05/0.4195, allocations: 116.8 kB / 471.8 MB, free: 10.02 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.298e-05/0.4195, allocations: 4 kB / 471.8 MB, free: 10.02 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001399/0.4196, allocations: 15.98 kB / 471.8 MB, free: 10 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.748e-05/0.4197, allocations: 0 / 471.8 MB, free: 10 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.175e-05/0.4197, allocations: 7.984 kB / 471.8 MB, free: 9.992 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.187e-05/0.4198, allocations: 124.2 kB / 472 MB, free: 9.871 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4198, allocations: 3.938 kB / 472 MB, free: 9.867 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002982/0.4201, allocations: 16 kB / 472 MB, free: 9.852 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete 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 (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 9.918e-05/0.4202, allocations: 103.2 kB / 472.1 MB, free: 9.738 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001527/0.4204, allocations: 79.86 kB / 472.2 MB, free: 9.66 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.4204, allocations: 0 / 472.2 MB, free: 9.66 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.595e-05/0.4204, allocations: 4 kB / 472.2 MB, free: 9.656 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004102/0.4208, allocations: 90.7 kB / 472.2 MB, free: 9.57 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008595/0.4217, allocations: 314.9 kB / 472.6 MB, free: 9.227 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002541/0.4219, allocations: 0.7319 MB / 473.3 MB, free: 8.469 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 5.384e-05/0.422, allocations: 13.33 kB / 473.3 MB, free: 8.457 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.702e-05/0.4221, allocations: 19.44 kB / 473.3 MB, free: 8.438 MB / 346.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4221, allocations: 0 / 473.3 MB, free: 8.438 MB / 346.7 MB Notification: Performance of Templates: time 0.003473/0.4255, allocations: 1.403 MB / 474.7 MB, free: 7.055 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/HoldWithDAeffects1/HoldWithDAeffects1.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,hold1.y,// shiftSample1.y Variables in the result:hold1.bits,hold1.compDelay.resolution,hold1.compDelay.shiftCounter,hold1.computationalDelay,hold1.hold1.y_start,hold1.limited,hold1.limiter.uMax,hold1.limiter.uMin,hold1.quantized,hold1.resolution,hold1.shiftCounter,hold1.y,hold1.yMax,hold1.yMin,hold1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,time