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.001507/0.001507, allocations: 85.06 kB / 16.65 MB, free: 6.598 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.001979/0.001979, allocations: 180 kB / 17.56 MB, free: 6.199 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.707/1.707, allocations: 223.3 MB / 241.6 MB, free: 220 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002723/0.0002724, allocations: 4 kB / 301.5 MB, free: 6.039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1236/0.1239, allocations: 50.41 MB / 351.9 MB, free: 3.617 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003313/0.1273, allocations: 1.672 MB / 353.6 MB, free: 1.926 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001442/0.1288, allocations: 0.6077 MB / 354.2 MB, free: 1.312 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002147/0.1291, allocations: 0 / 354.2 MB, free: 1.312 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.692e-05/0.1291, allocations: 15.86 kB / 354.2 MB, free: 1.297 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001832/0.1293, allocations: 23.8 kB / 354.3 MB, free: 1.273 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005604/0.1299, allocations: 95.84 kB / 354.4 MB, free: 1.18 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003041/0.1302, allocations: 184 kB / 354.5 MB, free: 1 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002435/0.1305, allocations: 92.3 kB / 354.6 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002035/0.1307, allocations: 59.7 kB / 354.7 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001452/0.1308, allocations: 67.62 kB / 354.7 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.6e-05/0.1309, allocations: 12 kB / 354.8 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.347e-05/0.1309, allocations: 4 kB / 354.8 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.132e-05/0.131, allocations: 27.84 kB / 354.8 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001209/0.1311, allocations: 93.23 kB / 354.9 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000273/0.1314, allocations: 195.5 kB / 355.1 MB, free: 464 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.1314, allocations: 0 / 355.1 MB, free: 464 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.1314, allocations: 0 / 355.1 MB, free: 464 kB / 286.1 MB Notification: Performance of Transformations before backend: time 9.187e-06/0.1314, allocations: 0 / 355.1 MB, free: 464 kB / 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.0009874/0.1324, allocations: 0.4988 MB / 355.6 MB, free: 15.89 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.869e-05/0.1325, allocations: 12.03 kB / 355.6 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.56e-05/0.1326, allocations: 50.73 kB / 355.6 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.919e-05/0.1327, allocations: 24.66 kB / 355.7 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003044/0.133, allocations: 224.5 kB / 355.9 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.784e-05/0.1331, allocations: 46.34 kB / 355.9 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.103e-05/0.1331, allocations: 19.98 kB / 355.9 MB, free: 15.47 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007869/0.1339, allocations: 335 kB / 356.3 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.134, allocations: 4 kB / 356.3 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.595e-05/0.134, allocations: 4 kB / 356.3 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.134, allocations: 4 kB / 356.3 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004853/0.1345, allocations: 147.9 kB / 356.4 MB, free: 14.97 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008759/0.1354, allocations: 469.2 kB / 356.9 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005701/0.136, allocations: 217.1 kB / 357.1 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002915/0.1363, allocations: 117.7 kB / 357.2 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.426e-05/0.1363, allocations: 8.25 kB / 357.2 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003738/0.1367, allocations: 131.3 kB / 357.3 MB, free: 13.96 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 2.004e-06/0.1367, allocations: 0 / 357.3 MB, free: 13.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008917/0.1376, allocations: 302 kB / 357.6 MB, free: 13.66 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.628e-05/0.1377, allocations: 85.11 kB / 357.7 MB, free: 13.55 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001527/0.1379, allocations: 161.5 kB / 357.9 MB, free: 13.39 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.006e-05/0.1379, allocations: 29.7 kB / 357.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.865e-05/0.138, allocations: 116.4 kB / 358 MB, free: 13.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.911e-05/0.138, allocations: 43.48 kB / 358.1 MB, free: 13.19 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.6e-05/0.1381, allocations: 29.7 kB / 358.1 MB, free: 13.16 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.1382, allocations: 322.8 kB / 358.4 MB, free: 12.83 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002047/0.1384, allocations: 68.19 kB / 358.5 MB, free: 12.77 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002519/0.1387, allocations: 159.6 kB / 358.6 MB, free: 12.57 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004403/0.1391, allocations: 243.8 kB / 358.9 MB, free: 12.29 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.1392, allocations: 0 / 358.9 MB, free: 12.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005937/0.1398, allocations: 299.1 kB / 359.2 MB, free: 11.99 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.78e-05/0.1398, allocations: 29.7 kB / 359.2 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.054e-06/0.1398, allocations: 4 kB / 359.2 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.985e-05/0.1398, allocations: 4 kB / 359.2 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002042/0.1401, allocations: 51.91 kB / 359.3 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.359e-05/0.1401, allocations: 15.86 kB / 359.3 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001799/0.1403, allocations: 31.83 kB / 359.3 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.509e-05/0.1403, allocations: 12 kB / 359.3 MB, free: 11.84 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.0001396/0.1404, allocations: 137.8 kB / 359.4 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001814/0.1406, allocations: 109.5 kB / 359.6 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.696e-05/0.1407, allocations: 24.7 kB / 359.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/0.1407, allocations: 4 kB / 359.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.745e-06/0.1407, allocations: 3.938 kB / 359.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.618e-06/0.1407, allocations: 0 / 359.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007545/0.1415, allocations: 0.506 MB / 360.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.1415, allocations: 4 kB / 360.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000189/0.1417, allocations: 43.91 kB / 360.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.57e-06/0.1417, allocations: 3.938 kB / 360.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.979e-05/0.1418, allocations: 7.984 kB / 360.1 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-06/0.1418, allocations: 7.938 kB / 360.2 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.1418, allocations: 0 / 360.2 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006083/0.1424, allocations: 332 kB / 360.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.284e-05/0.1425, allocations: 100.9 kB / 360.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.452e-05/0.1425, allocations: 8 kB / 360.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001935/0.1427, allocations: 23.98 kB / 360.6 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.688e-05/0.1428, allocations: 15.97 kB / 360.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.772e-05/0.1428, allocations: 8 kB / 360.6 MB, free: 10.4 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.584e-05/0.1429, allocations: 112.6 kB / 360.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1429, allocations: 0 / 360.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003157/0.1432, allocations: 39.91 kB / 360.8 MB, free: 10.25 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.001268/0.1445, allocations: 0.982 MB / 361.8 MB, free: 9.242 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005899/0.1451, allocations: 263.1 kB / 362 MB, free: 8.973 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1451, allocations: 3.938 kB / 362 MB, free: 8.969 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002004/0.1453, allocations: 68.64 kB / 362.1 MB, free: 8.902 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004677/0.1458, allocations: 67.8 kB / 362.2 MB, free: 8.836 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003172/0.149, allocations: 2.243 MB / 364.4 MB, free: 6.441 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003145/0.1493, allocations: 0.7246 MB / 365.1 MB, free: 5.691 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.324e-05/0.1494, allocations: 17.42 kB / 365.1 MB, free: 5.672 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001149/0.1495, allocations: 52.53 kB / 365.2 MB, free: 5.621 MB / 302.1 MB Notification: Performance of SimCode: time 4.1e-07/0.1495, allocations: 0 / 365.2 MB, free: 5.621 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01605/0.1656, allocations: 3.299 MB / 368.5 MB, free: 2.512 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002148/0.1659, allocations: 223.3 kB / 368.7 MB, free: 2.258 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.138/2.304, allocations: 4 kB / 368.7 MB, free: 2.254 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