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.001048/0.001048, allocations: 195.2 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.62/1.62, allocations: 226.6 MB / 244.7 MB, free: 6.461 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008524/0.0008527, allocations: 101.5 kB / 296.8 MB, free: 6.688 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002432/0.0002432, allocations: 4 kB / 356.8 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2526/0.2528, allocations: 51.29 MB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.001672/0.2545, allocations: 1.534 MB / 409.6 MB, free: 26.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008582/0.2554, allocations: 0.6559 MB / 410.2 MB, free: 25.52 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.843e-05/0.2555, allocations: 4.844 kB / 410.2 MB, free: 25.51 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001197/0.2556, allocations: 11.86 kB / 410.2 MB, free: 25.5 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000129/0.2558, allocations: 20.42 kB / 410.3 MB, free: 25.48 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004162/0.2562, allocations: 144.1 kB / 410.4 MB, free: 25.35 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001512/0.2564, allocations: 123.6 kB / 410.5 MB, free: 25.23 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001318/0.2565, allocations: 52.58 kB / 410.6 MB, free: 25.18 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001049/0.2566, allocations: 49.22 kB / 410.6 MB, free: 25.13 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.989e-05/0.2567, allocations: 51.69 kB / 410.7 MB, free: 25.08 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.079e-05/0.2568, allocations: 4 kB / 410.7 MB, free: 25.07 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.567e-05/0.2568, allocations: 44.91 kB / 410.7 MB, free: 25.03 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.495e-05/0.2569, allocations: 31.84 kB / 410.8 MB, free: 25 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.625e-05/0.257, allocations: 77.38 kB / 410.8 MB, free: 24.92 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001576/0.2571, allocations: 144.8 kB / 411 MB, free: 24.78 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.86e-06/0.2571, allocations: 0 / 411 MB, free: 24.78 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2572, allocations: 0 / 411 MB, free: 24.78 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.659e-06/0.2572, allocations: 1.562 kB / 411 MB, free: 24.78 MB / 298.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.0005775/0.2577, allocations: 455.5 kB / 411.4 MB, free: 24.29 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.165e-05/0.2578, allocations: 12.03 kB / 411.4 MB, free: 24.28 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001359/0.2579, allocations: 36.64 kB / 411.5 MB, free: 24.24 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002104/0.2581, allocations: 236 kB / 411.7 MB, free: 23.97 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.68e-05/0.2582, allocations: 12.55 kB / 411.7 MB, free: 23.96 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.769e-05/0.2582, allocations: 12.12 kB / 411.7 MB, free: 23.95 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005743/0.2588, allocations: 349 kB / 412.1 MB, free: 23.59 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.796e-06/0.2588, allocations: 3.984 kB / 412.1 MB, free: 23.59 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.591e-05/0.2588, allocations: 4 kB / 412.1 MB, free: 23.59 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.491e-06/0.2588, allocations: 4 kB / 412.1 MB, free: 23.58 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002075/0.259, allocations: 95.94 kB / 412.2 MB, free: 23.49 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002921/0.2593, allocations: 349.4 kB / 412.5 MB, free: 23.09 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003987/0.2597, allocations: 278.4 kB / 412.8 MB, free: 22.79 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001649/0.2599, allocations: 109.6 kB / 412.9 MB, free: 22.67 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004407/0.2604, allocations: 0.5817 MB / 413.5 MB, free: 21.96 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.776e-05/0.2604, allocations: 38.56 kB / 413.5 MB, free: 21.91 MB / 298.7 MB Notification: Performance of pre-optimization done (n=19): time 1.413e-06/0.2604, allocations: 0 / 413.5 MB, free: 21.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=19): time 0.000511/0.2609, allocations: 254 kB / 413.8 MB, free: 21.66 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.501e-05/0.261, allocations: 114.8 kB / 413.9 MB, free: 21.52 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001391/0.2612, allocations: 199.1 kB / 414.1 MB, free: 21.32 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.314e-05/0.2612, allocations: 29.7 kB / 414.1 MB, free: 21.28 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.209e-05/0.2612, allocations: 112.4 kB / 414.2 MB, free: 21.16 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.034e-05/0.2613, allocations: 15.89 kB / 414.2 MB, free: 21.15 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.112e-06/0.2613, allocations: 8.125 kB / 414.2 MB, free: 21.14 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.451e-05/0.2613, allocations: 326.8 kB / 414.5 MB, free: 20.81 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.417e-05/0.2614, allocations: 39.97 kB / 414.6 MB, free: 20.77 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001084/0.2615, allocations: 165.1 kB / 414.7 MB, free: 20.55 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001752/0.2617, allocations: 216.1 kB / 415 MB, free: 20.28 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.2617, allocations: 0 / 415 MB, free: 20.28 MB / 298.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002687/0.262, allocations: 217.2 kB / 415.2 MB, free: 20.06 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/0.262, allocations: 10.97 kB / 415.2 MB, free: 20.05 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.262, allocations: 7.938 kB / 415.2 MB, free: 20.05 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.262, allocations: 8 kB / 415.2 MB, free: 20.04 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001272/0.2622, allocations: 39.92 kB / 415.2 MB, free: 20 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.048e-05/0.2622, allocations: 15.97 kB / 415.3 MB, free: 19.98 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001029/0.2623, allocations: 24.28 kB / 415.3 MB, free: 19.96 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.112e-05/0.2623, allocations: 8 kB / 415.3 MB, free: 19.95 MB / 298.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.0001004/0.2624, allocations: 150.5 kB / 415.4 MB, free: 19.8 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002622/0.2627, allocations: 165.3 kB / 415.6 MB, free: 19.63 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003058/0.263, allocations: 187.4 kB / 415.8 MB, free: 19.44 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/0.263, allocations: 4 kB / 415.8 MB, free: 19.43 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.263, allocations: 0 / 415.8 MB, free: 19.43 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.263, allocations: 0 / 415.8 MB, free: 19.43 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001563/0.2632, allocations: 233.4 kB / 416 MB, free: 19.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.2632, allocations: 0 / 416 MB, free: 19.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001298/0.2633, allocations: 43.91 kB / 416 MB, free: 19.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.2634, allocations: 0 / 416 MB, free: 19.11 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.537e-05/0.2634, allocations: 4 kB / 416.1 MB, free: 19.11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.474e-06/0.2634, allocations: 7.938 kB / 416.1 MB, free: 19.1 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.2634, allocations: 0 / 416.1 MB, free: 19.1 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003166/0.2637, allocations: 296.1 kB / 416.3 MB, free: 18.79 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.799e-05/0.2638, allocations: 116.8 kB / 416.5 MB, free: 18.66 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.055e-05/0.2638, allocations: 11.98 kB / 416.5 MB, free: 18.65 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001191/0.264, allocations: 12 kB / 416.5 MB, free: 18.64 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.308e-05/0.264, allocations: 15.92 kB / 416.5 MB, free: 18.62 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.564e-05/0.264, allocations: 7.984 kB / 416.5 MB, free: 18.61 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.822e-05/0.2641, allocations: 139.2 kB / 416.6 MB, free: 18.48 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2641, allocations: 0 / 416.6 MB, free: 18.48 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002821/0.2644, allocations: 28 kB / 416.7 MB, free: 18.45 MB / 298.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.0001311/0.2645, allocations: 123.1 kB / 416.8 MB, free: 18.32 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002741/0.2648, allocations: 154.2 kB / 416.9 MB, free: 18.17 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2648, allocations: 1.188 kB / 416.9 MB, free: 18.17 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.51e-05/0.2649, allocations: 11.98 kB / 417 MB, free: 18.16 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005435/0.2654, allocations: 157.6 kB / 417.1 MB, free: 18 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004871/0.2659, allocations: 400.6 kB / 417.5 MB, free: 17.57 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001388/0.2661, allocations: 0.7363 MB / 418.2 MB, free: 16.81 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.725e-05/0.2661, allocations: 19.42 kB / 418.3 MB, free: 16.79 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2661, allocations: 0 / 418.3 MB, free: 16.79 MB / 298.7 MB Notification: Performance of Templates: time 0.00324/0.2694, allocations: 2.204 MB / 420.5 MB, free: 14.6 MB / 298.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/jenkins/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