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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001177/0.001177, allocations: 109 kB / 16.51 MB, free: 6.707 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.001244/0.001244, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.346/1.346, allocations: 222.9 MB / 241.1 MB, free: 13.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001581/0.001581, allocations: 54.38 kB / 300.1 MB, free: 6.004 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.1284, allocations: 49.44 MB / 349.5 MB, free: 4.559 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.004584/0.1331, allocations: 2.023 MB / 351.5 MB, free: 2.512 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001279/0.1344, allocations: 0.6233 MB / 352.2 MB, free: 1.883 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001733/0.1346, allocations: 4 kB / 352.2 MB, free: 1.879 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.257e-05/0.1347, allocations: 11.86 kB / 352.2 MB, free: 1.867 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001409/0.1348, allocations: 15.88 kB / 352.2 MB, free: 1.852 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004588/0.1353, allocations: 99.84 kB / 352.3 MB, free: 1.754 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002485/0.1355, allocations: 192 kB / 352.5 MB, free: 1.566 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002111/0.1358, allocations: 88.31 kB / 352.6 MB, free: 1.48 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001688/0.1359, allocations: 71.75 kB / 352.6 MB, free: 1.41 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001313/0.1361, allocations: 87.53 kB / 352.7 MB, free: 1.324 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.465e-05/0.1361, allocations: 12 kB / 352.7 MB, free: 1.312 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.749e-05/0.1362, allocations: 12 kB / 352.7 MB, free: 1.301 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.637e-05/0.1362, allocations: 35.84 kB / 352.8 MB, free: 1.266 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.717e-05/0.1363, allocations: 79.52 kB / 352.8 MB, free: 1.188 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002459/0.1366, allocations: 203.6 kB / 353 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.1366, allocations: 0 / 353 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1366, allocations: 0 / 353 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.1366, allocations: 0 / 353 MB, free: 0.9883 MB / 286.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.0009925/0.1376, allocations: 0.5206 MB / 353.6 MB, free: 420 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.1376, allocations: 16.03 kB / 353.6 MB, free: 404 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.073e-05/0.1377, allocations: 50.73 kB / 353.6 MB, free: 344 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.577e-05/0.1378, allocations: 24.66 kB / 353.7 MB, free: 320 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002736/0.1381, allocations: 232.5 kB / 353.9 MB, free: 48 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.831e-05/0.1381, allocations: 42.34 kB / 353.9 MB, free: 0 / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.792e-05/0.1382, allocations: 19.98 kB / 353.9 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007602/0.139, allocations: 333.4 kB / 354.3 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.139, allocations: 0 / 354.3 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.543e-05/0.139, allocations: 8 kB / 354.3 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-06/0.139, allocations: 0 / 354.3 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004807/0.1395, allocations: 143.8 kB / 354.4 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007609/0.1403, allocations: 461.3 kB / 354.9 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000518/0.1408, allocations: 201.1 kB / 355.1 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002699/0.1411, allocations: 113.7 kB / 355.2 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.58e-05/0.1411, allocations: 0 / 355.2 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003716/0.1415, allocations: 127.2 kB / 355.3 MB, free: 14.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.713e-06/0.1415, allocations: 4 kB / 355.3 MB, free: 14.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007971/0.1423, allocations: 277.3 kB / 355.6 MB, free: 14.24 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.241e-05/0.1424, allocations: 85.11 kB / 355.7 MB, free: 14.14 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001339/0.1426, allocations: 163.9 kB / 355.8 MB, free: 13.96 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.917e-05/0.1426, allocations: 33.7 kB / 355.8 MB, free: 13.93 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.328e-05/0.1427, allocations: 108.5 kB / 356 MB, free: 13.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.989e-05/0.1427, allocations: 39.55 kB / 356 MB, free: 13.78 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.808e-05/0.1428, allocations: 45.7 kB / 356 MB, free: 13.73 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.143, allocations: 326.8 kB / 356.4 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002041/0.1432, allocations: 68.12 kB / 356.4 MB, free: 13.33 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002464/0.1434, allocations: 142.7 kB / 356.6 MB, free: 13.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004206/0.1439, allocations: 227.9 kB / 356.8 MB, free: 12.89 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.1439, allocations: 3.938 kB / 356.8 MB, free: 12.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005792/0.1445, allocations: 282.4 kB / 357.1 MB, free: 12.6 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.106e-05/0.1445, allocations: 37.69 kB / 357.1 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.1445, allocations: 4 kB / 357.1 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.1445, allocations: 4 kB / 357.1 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002036/0.1448, allocations: 43.91 kB / 357.2 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.747e-06/0.1448, allocations: 7.938 kB / 357.2 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001794/0.145, allocations: 36.02 kB / 357.2 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.462e-05/0.145, allocations: 15.98 kB / 357.2 MB, free: 12.45 MB / 302.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.0001255/0.1451, allocations: 133.8 kB / 357.3 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001888/0.1453, allocations: 105.5 kB / 357.4 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.535e-05/0.1454, allocations: 16.72 kB / 357.5 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/0.1454, allocations: 4 kB / 357.5 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.1454, allocations: 3.938 kB / 357.5 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.1454, allocations: 3.984 kB / 357.5 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007181/0.1461, allocations: 0.4914 MB / 358 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.1462, allocations: 0 / 358 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001979/0.1464, allocations: 43.89 kB / 358 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.682e-06/0.1464, allocations: 11.88 kB / 358 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.756e-05/0.1464, allocations: 4 kB / 358 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.1464, allocations: 0 / 358 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1464, allocations: 4 kB / 358 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005423/0.147, allocations: 319.7 kB / 358.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.121e-05/0.147, allocations: 100.8 kB / 358.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.131e-05/0.1471, allocations: 4 kB / 358.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001808/0.1473, allocations: 19.97 kB / 358.5 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.732e-05/0.1473, allocations: 15.98 kB / 358.5 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.168e-05/0.1474, allocations: 19.98 kB / 358.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.293e-05/0.1474, allocations: 106.5 kB / 358.6 MB, free: 10.95 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1474, allocations: 0 / 358.6 MB, free: 10.95 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002933/0.1477, allocations: 35.91 kB / 358.6 MB, free: 10.92 MB / 302.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.001164/0.1489, allocations: 0.9783 MB / 359.6 MB, free: 9.91 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005351/0.1495, allocations: 239.6 kB / 359.8 MB, free: 9.664 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1495, allocations: 0 / 359.8 MB, free: 9.664 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001871/0.1497, allocations: 63.89 kB / 359.9 MB, free: 9.602 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004256/0.1501, allocations: 59.88 kB / 360 MB, free: 9.543 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00288/0.153, allocations: 2.194 MB / 362.2 MB, free: 7.191 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000335/0.1533, allocations: 0.7286 MB / 362.9 MB, free: 6.438 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.244e-05/0.1534, allocations: 13.42 kB / 362.9 MB, free: 6.422 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001079/0.1535, allocations: 47.42 kB / 362.9 MB, free: 6.375 MB / 302.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1536, allocations: 4 kB / 363 MB, free: 6.371 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01528/0.1688, allocations: 3.379 MB / 366.3 MB, free: 3.148 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0005832/0.1695, allocations: 230.8 kB / 366.6 MB, free: 2.891 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.959/2.128, allocations: 0 / 366.6 MB, free: 2.891 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample.fmu > 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) "" Variables in the reference:time,sample_angle.y,rotationalClock.angle,rotationalClock.direction,rotationalClock.direction_changed Variables in the result:angle_input.amplitude,angle_input.f,angle_input.offset,angle_input.phase,angle_input.startTime,angle_input.y,previous(rotationalClock.changed.u),rotationalClock.abs1.generateEvent,rotationalClock.abs1.u,rotationalClock.abs1.y,rotationalClock.abs2.generateEvent,rotationalClock.abs2.u,rotationalClock.abs2.y,rotationalClock.angle,rotationalClock.angular_offset.u,rotationalClock.angular_offset.y,rotationalClock.angular_offset.y_start,rotationalClock.cast.u,rotationalClock.cast.y,rotationalClock.changed.u,rotationalClock.changed.y,rotationalClock.direction,rotationalClock.direction_changed,rotationalClock.direction_sign.generateEvent,rotationalClock.direction_sign.u,rotationalClock.direction_sign.y,rotationalClock.less.u1,rotationalClock.less.u2,rotationalClock.less.y,rotationalClock.sub.k1,rotationalClock.sub.k2,rotationalClock.sub.u1,rotationalClock.sub.u2,rotationalClock.sub.y,rotationalClock.trigger_interval,rotationalClock.update_direction.u,rotationalClock.update_direction.y,rotationalClock.update_offset.u,rotationalClock.update_offset.y,rotationalClock.useSolver,rotationalClock.y_clock.u,rotationalClock.y_clock.useSolver,sample_angle.u,sample_angle.y,time,trigger_interval_input.amplitude,trigger_interval_input.nperiod,trigger_interval_input.offset,trigger_interval_input.period,trigger_interval_input.startTime,trigger_interval_input.width,trigger_interval_input.y