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.001729/0.001729, allocations: 112.3 kB / 16.62 MB, free: 6.812 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.002132/0.002132, allocations: 185.8 kB / 17.55 MB, free: 5.934 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.347/1.347, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 45.59 kB / 300.2 MB, free: 6.121 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1057, allocations: 49.44 MB / 349.7 MB, free: 4.672 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003387/0.1091, allocations: 2.018 MB / 351.7 MB, free: 2.633 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009885/0.1101, allocations: 0.6233 MB / 352.3 MB, free: 2.004 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001027/0.1103, allocations: 4 kB / 352.3 MB, free: 2 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.3e-05/0.1103, allocations: 11.86 kB / 352.3 MB, free: 1.988 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001154/0.1105, allocations: 19.86 kB / 352.4 MB, free: 1.969 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004079/0.1109, allocations: 109.8 kB / 352.5 MB, free: 1.863 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002447/0.1111, allocations: 204 kB / 352.7 MB, free: 1.664 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001999/0.1113, allocations: 92.3 kB / 352.8 MB, free: 1.574 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001564/0.1115, allocations: 83.7 kB / 352.8 MB, free: 1.492 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001145/0.1116, allocations: 87.59 kB / 352.9 MB, free: 1.406 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.507e-05/0.1117, allocations: 20 kB / 352.9 MB, free: 1.387 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.743e-05/0.1117, allocations: 20 kB / 353 MB, free: 1.367 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.61e-05/0.1117, allocations: 43.83 kB / 353 MB, free: 1.324 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001484/0.1119, allocations: 99.47 kB / 353.1 MB, free: 1.227 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002352/0.1121, allocations: 207.6 kB / 353.3 MB, free: 1.023 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.177e-06/0.1122, allocations: 0 / 353.3 MB, free: 1.023 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1122, allocations: 0 / 353.3 MB, free: 1.023 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.1122, allocations: 0 / 353.3 MB, free: 1.023 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.0008668/0.113, allocations: 0.5221 MB / 353.8 MB, free: 452 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.52e-05/0.1131, allocations: 12.03 kB / 353.8 MB, free: 440 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.413e-05/0.1132, allocations: 46.73 kB / 353.9 MB, free: 384 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.601e-05/0.1132, allocations: 28.66 kB / 353.9 MB, free: 356 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00025/0.1135, allocations: 228.5 kB / 354.1 MB, free: 88 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.361e-05/0.1135, allocations: 50.34 kB / 354.2 MB, free: 32 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.039e-05/0.1136, allocations: 16 kB / 354.2 MB, free: 16 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006936/0.1143, allocations: 334.9 kB / 354.5 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.1143, allocations: 0 / 354.5 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.277e-05/0.1143, allocations: 4 kB / 354.5 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.1143, allocations: 4 kB / 354.5 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003995/0.1147, allocations: 131.9 kB / 354.7 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006775/0.1154, allocations: 461.3 kB / 355.1 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004869/0.1159, allocations: 209.1 kB / 355.3 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002488/0.1162, allocations: 101.7 kB / 355.4 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.44e-05/0.1162, allocations: 4.172 kB / 355.4 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003646/0.1166, allocations: 127.2 kB / 355.5 MB, free: 14.56 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.783e-06/0.1166, allocations: 0 / 355.5 MB, free: 14.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008039/0.1174, allocations: 281.3 kB / 355.8 MB, free: 14.28 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.848e-05/0.1175, allocations: 85.11 kB / 355.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001538/0.1177, allocations: 159.7 kB / 356.1 MB, free: 14.01 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.547e-05/0.1177, allocations: 33.7 kB / 356.1 MB, free: 13.97 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.953e-05/0.1178, allocations: 116.4 kB / 356.2 MB, free: 13.86 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.997e-05/0.1179, allocations: 39.55 kB / 356.2 MB, free: 13.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.579e-05/0.118, allocations: 41.7 kB / 356.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.1181, allocations: 330.8 kB / 356.6 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001911/0.1183, allocations: 60.19 kB / 356.7 MB, free: 13.38 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002493/0.1186, allocations: 151.5 kB / 356.8 MB, free: 13.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004115/0.119, allocations: 227.9 kB / 357 MB, free: 12.93 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.119, allocations: 0 / 357 MB, free: 12.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005437/0.1195, allocations: 279.1 kB / 357.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.279e-05/0.1196, allocations: 37.69 kB / 357.3 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.1196, allocations: 4 kB / 357.3 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.1196, allocations: 4 kB / 357.4 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001958/0.1198, allocations: 39.91 kB / 357.4 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.195e-05/0.1198, allocations: 11.88 kB / 357.4 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001686/0.12, allocations: 31.83 kB / 357.4 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.162e-05/0.12, allocations: 12 kB / 357.4 MB, free: 12.5 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.0001333/0.1202, allocations: 141.8 kB / 357.6 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001741/0.1204, allocations: 109.4 kB / 357.7 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.52e-05/0.1204, allocations: 16.72 kB / 357.7 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.1204, allocations: 4 kB / 357.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.1204, allocations: 3.938 kB / 357.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.1205, allocations: 7.922 kB / 357.7 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007186/0.1212, allocations: 0.4943 MB / 358.2 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/0.1212, allocations: 0 / 358.2 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001853/0.1214, allocations: 39.97 kB / 358.3 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.114e-06/0.1214, allocations: 7.938 kB / 358.3 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.857e-05/0.1214, allocations: 3.984 kB / 358.3 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.1214, allocations: 3.938 kB / 358.3 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.157e-06/0.1214, allocations: 4 kB / 358.3 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005589/0.122, allocations: 320 kB / 358.6 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.081e-05/0.1221, allocations: 104.8 kB / 358.7 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.088e-05/0.1221, allocations: 0 / 358.7 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000182/0.1223, allocations: 19.97 kB / 358.7 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.423e-05/0.1224, allocations: 15.98 kB / 358.7 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.728e-05/0.1224, allocations: 8 kB / 358.7 MB, free: 11.1 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.797e-05/0.1225, allocations: 116.8 kB / 358.8 MB, free: 10.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1225, allocations: 0 / 358.8 MB, free: 10.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002916/0.1228, allocations: 35.91 kB / 358.9 MB, free: 10.95 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.0011/0.1239, allocations: 0.9625 MB / 359.8 MB, free: 9.961 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005487/0.1245, allocations: 255.7 kB / 360.1 MB, free: 9.699 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1245, allocations: 0 / 360.1 MB, free: 9.699 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001817/0.1247, allocations: 71.95 kB / 360.2 MB, free: 9.629 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000433/0.1251, allocations: 64.28 kB / 360.2 MB, free: 9.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00267/0.1278, allocations: 2.196 MB / 362.4 MB, free: 7.215 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002741/0.1281, allocations: 0.7283 MB / 363.1 MB, free: 6.461 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.691e-05/0.1282, allocations: 13.42 kB / 363.2 MB, free: 6.445 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.748e-05/0.1283, allocations: 55.42 kB / 363.2 MB, free: 6.391 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1283, allocations: 0 / 363.2 MB, free: 6.391 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01384/0.1421, allocations: 3.513 MB / 366.7 MB, free: 3.059 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001886/0.1423, allocations: 227.6 kB / 367 MB, free: 2.801 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.007/2.15, allocations: 3.875 kB / 367 MB, free: 2.801 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