Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.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.ClockSignals.RotationalSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample_angle.y|rotationalClock.angle|rotationalClock.direction|rotationalClock.direction_changed",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample_angle.y|rotationalClock.angle|rotationalClock.direction|rotationalClock.direction_changed",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001209/0.001208, allocations: 108.3 kB / 17.73 MB, free: 5.301 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.001206/0.001206, allocations: 187 kB / 18.67 MB, free: 4.375 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.416/1.416, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000965/0.000965, allocations: 43.94 kB / 352 MB, free: 3.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2447/0.2457, allocations: 49.44 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003154/0.2489, allocations: 1.975 MB / 403.4 MB, free: 6.91 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001079/0.25, allocations: 0.6349 MB / 404 MB, free: 6.27 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001013/0.2501, allocations: 4 kB / 404 MB, free: 6.266 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.247e-05/0.2502, allocations: 19.73 kB / 404 MB, free: 6.246 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001054/0.2503, allocations: 23.73 kB / 404.1 MB, free: 6.223 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004137/0.2508, allocations: 107.8 kB / 404.2 MB, free: 6.117 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002309/0.251, allocations: 208 kB / 404.4 MB, free: 5.914 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001946/0.2512, allocations: 96.3 kB / 404.5 MB, free: 5.82 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001641/0.2514, allocations: 87.69 kB / 404.5 MB, free: 5.734 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001193/0.2515, allocations: 91.61 kB / 404.6 MB, free: 5.645 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.457e-05/0.2515, allocations: 20 kB / 404.7 MB, free: 5.625 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.687e-05/0.2516, allocations: 20 kB / 404.7 MB, free: 5.605 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.137e-05/0.2516, allocations: 47.83 kB / 404.7 MB, free: 5.559 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.85e-05/0.2517, allocations: 83.53 kB / 404.8 MB, free: 5.477 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002571/0.252, allocations: 216.5 kB / 405 MB, free: 5.266 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.252, allocations: 0 / 405 MB, free: 5.266 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.252, allocations: 0 / 405 MB, free: 5.266 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.35e-05/0.252, allocations: 0 / 405 MB, free: 5.266 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: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0008692/0.2529, allocations: 0.5296 MB / 405.5 MB, free: 4.676 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/0.253, allocations: 8.031 kB / 405.5 MB, free: 4.668 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.569e-05/0.253, allocations: 24.75 kB / 405.6 MB, free: 4.645 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002706/0.2533, allocations: 232.5 kB / 405.8 MB, free: 4.379 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.024e-05/0.2534, allocations: 46.58 kB / 405.8 MB, free: 4.328 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.062e-05/0.2534, allocations: 19.94 kB / 405.9 MB, free: 4.309 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006592/0.2541, allocations: 326.9 kB / 406.2 MB, free: 3.973 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.2541, allocations: 0 / 406.2 MB, free: 3.973 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.777e-05/0.2542, allocations: 4 kB / 406.2 MB, free: 3.969 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.036e-06/0.2542, allocations: 4 kB / 406.2 MB, free: 3.965 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004134/0.2546, allocations: 137 kB / 406.3 MB, free: 3.832 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006553/0.2553, allocations: 457.3 kB / 406.8 MB, free: 3.332 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004628/0.2557, allocations: 209.1 kB / 407 MB, free: 3.109 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002333/0.256, allocations: 101.7 kB / 407.1 MB, free: 3.004 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.864e-05/0.256, allocations: 8.062 kB / 407.1 MB, free: 2.996 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002927/0.2563, allocations: 123.4 kB / 407.2 MB, free: 2.863 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.874e-06/0.2563, allocations: 0 / 407.2 MB, free: 2.863 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007618/0.2571, allocations: 281.2 kB / 407.5 MB, free: 2.582 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.844e-05/0.2572, allocations: 89.11 kB / 407.6 MB, free: 2.477 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001205/0.2573, allocations: 152.6 kB / 407.7 MB, free: 2.316 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.568e-05/0.2573, allocations: 29.7 kB / 407.7 MB, free: 2.281 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.833e-05/0.2574, allocations: 120.4 kB / 407.9 MB, free: 2.16 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.757e-05/0.2575, allocations: 39.48 kB / 407.9 MB, free: 2.121 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.447e-05/0.2575, allocations: 45.69 kB / 407.9 MB, free: 2.07 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001073/0.2577, allocations: 326.8 kB / 408.3 MB, free: 1.742 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001845/0.2578, allocations: 64.19 kB / 408.3 MB, free: 1.68 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002248/0.2581, allocations: 147.4 kB / 408.5 MB, free: 1.5 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003896/0.2585, allocations: 231.8 kB / 408.7 MB, free: 1.23 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.2585, allocations: 0 / 408.7 MB, free: 1.23 MB / 318.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005245/0.259, allocations: 283.1 kB / 409 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.744e-05/0.2591, allocations: 29.7 kB / 409 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/0.2591, allocations: 4 kB / 409 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.863e-05/0.2591, allocations: 4 kB / 409 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002071/0.2593, allocations: 43.91 kB / 409.1 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.049e-05/0.2593, allocations: 7.938 kB / 409.1 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001707/0.2595, allocations: 23.89 kB / 409.1 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.469e-05/0.2596, allocations: 15.98 kB / 409.1 MB, free: 0.8086 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 13 (rotationalClock.changed.y,$CLKPRE.rotationalClock.changed.u,rotationalClock.changed.u,rotationalClock.cast.y,rotationalClock.direction_changed,rotationalClock.direction,$whenCondition2,rotationalClock.less.y,trigger_interval_input.count,$PRE.trigger_interval_input.count,trigger_interval_input.T_start,$PRE.trigger_interval_input.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 1 (rotationalClock.changed.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 1 * 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.0001341/0.2597, allocations: 145.7 kB / 409.2 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001787/0.2599, allocations: 109.4 kB / 409.3 MB, free: 0.543 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.036e-05/0.26, allocations: 24.66 kB / 409.4 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.588e-06/0.26, allocations: 4 kB / 409.4 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/0.26, allocations: 7.938 kB / 409.4 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.26, allocations: 3.984 kB / 409.4 MB, free: 0.5 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000744/0.2607, allocations: 490.2 kB / 409.9 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.2607, allocations: 0 / 409.9 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001955/0.2609, allocations: 43.95 kB / 409.9 MB, free: 15.92 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.93e-06/0.261, allocations: 7.875 kB / 409.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.801e-05/0.261, allocations: 8 kB / 409.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.261, allocations: 0 / 409.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.261, allocations: 0 / 409.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005398/0.2615, allocations: 333 kB / 410.2 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.309e-05/0.2616, allocations: 92.86 kB / 410.3 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.397e-05/0.2616, allocations: 7.938 kB / 410.3 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001813/0.2618, allocations: 19.97 kB / 410.4 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.584e-05/0.2619, allocations: 15.98 kB / 410.4 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.893e-05/0.2619, allocations: 11.98 kB / 410.4 MB, free: 15.4 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.108e-05/0.262, allocations: 110.3 kB / 410.5 MB, free: 15.29 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.262, allocations: 0 / 410.5 MB, free: 15.29 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003015/0.2623, allocations: 35.94 kB / 410.5 MB, free: 15.26 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: 10 (rotationalClock.direction,rotationalClock.direction_changed,rotationalClock.cast.y,rotationalClock.changed.u,rotationalClock.changed.y,rotationalClock.less.y,$whenCondition1,trigger_interval_input.T_start,trigger_interval_input.count,$whenCondition2) * Number of discrete states: 1 (trigger_interval_input.count) * Number of clocked states: 1 (rotationalClock.changed.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001677/0.2625, allocations: 123.7 kB / 410.7 MB, free: 15.13 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005569/0.2631, allocations: 243.5 kB / 410.9 MB, free: 14.88 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.2631, allocations: 4 kB / 410.9 MB, free: 14.88 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001771/0.2633, allocations: 59.84 kB / 411 MB, free: 14.82 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004697/0.2637, allocations: 76.41 kB / 411 MB, free: 14.74 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007375/0.2645, allocations: 343.5 kB / 411.4 MB, free: 14.37 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002911/0.2648, allocations: 0.7359 MB / 412.1 MB, free: 13.6 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.645e-05/0.2649, allocations: 19.44 kB / 412.1 MB, free: 13.58 MB / 334.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2649, allocations: 0 / 412.1 MB, free: 13.58 MB / 334.1 MB Notification: Performance of Templates: time 0.00437/0.2693, allocations: 2.228 MB / 414.4 MB, free: 11.37 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches