Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001119/0.001119, allocations: 105.9 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001318/0.001318, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.485/1.485, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 58.56 kB / 307 MB, free: 0.5234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1123, allocations: 50.53 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.003853/0.1162, allocations: 1.989 MB / 359.6 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001597/0.1178, allocations: 0.6973 MB / 360.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001874/0.118, allocations: 3.938 kB / 360.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.713e-05/0.1181, allocations: 15.8 kB / 360.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001407/0.1183, allocations: 31.73 kB / 360.3 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005209/0.1188, allocations: 123.7 kB / 360.4 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002891/0.1191, allocations: 204 kB / 360.6 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002319/0.1193, allocations: 100.3 kB / 360.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002367/0.1196, allocations: 91.69 kB / 360.8 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001489/0.1197, allocations: 95.47 kB / 360.9 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.409e-05/0.1198, allocations: 20 kB / 360.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.71e-05/0.1199, allocations: 28 kB / 361 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.676e-05/0.1199, allocations: 43.91 kB / 361 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.77e-05/0.12, allocations: 87.52 kB / 361.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002816/0.1203, allocations: 211.6 kB / 361.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.1203, allocations: 0 / 361.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.81e-07/0.1203, allocations: 0 / 361.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.545e-05/0.1203, allocations: 3.984 kB / 361.3 MB, free: 10.25 MB / 302.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.0009693/0.1213, allocations: 0.5336 MB / 361.8 MB, free: 9.652 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.53e-05/0.1214, allocations: 8.031 kB / 361.8 MB, free: 9.645 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.719e-05/0.1214, allocations: 50.67 kB / 361.9 MB, free: 9.586 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001744/0.1216, allocations: 24.75 kB / 361.9 MB, free: 9.562 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002874/0.1219, allocations: 239.9 kB / 362.2 MB, free: 9.293 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.581e-05/0.122, allocations: 42.34 kB / 362.2 MB, free: 9.246 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.334e-05/0.1221, allocations: 20 kB / 362.2 MB, free: 9.227 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007328/0.1228, allocations: 331 kB / 362.5 MB, free: 8.887 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.331e-05/0.1228, allocations: 0 / 362.5 MB, free: 8.887 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.201e-05/0.1229, allocations: 8 kB / 362.5 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.063e-06/0.1229, allocations: 0 / 362.5 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004504/0.1233, allocations: 131.9 kB / 362.7 MB, free: 8.75 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007018/0.124, allocations: 473.1 kB / 363.1 MB, free: 8.234 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005072/0.1246, allocations: 205.1 kB / 363.3 MB, free: 8.016 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002613/0.1248, allocations: 105.8 kB / 363.4 MB, free: 7.906 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.97e-05/0.1249, allocations: 0 / 363.4 MB, free: 7.906 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003854/0.1253, allocations: 127.2 kB / 363.6 MB, free: 7.77 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.944e-06/0.1253, allocations: 0 / 363.6 MB, free: 7.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008503/0.1261, allocations: 285.2 kB / 363.8 MB, free: 7.484 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.866e-05/0.1263, allocations: 89.11 kB / 363.9 MB, free: 7.379 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001323/0.1264, allocations: 151.9 kB / 364.1 MB, free: 7.219 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.111e-05/0.1264, allocations: 29.7 kB / 364.1 MB, free: 7.184 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.767e-05/0.1265, allocations: 112.5 kB / 364.2 MB, free: 7.07 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.231e-05/0.1266, allocations: 39.61 kB / 364.3 MB, free: 7.031 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.429e-05/0.1267, allocations: 45.69 kB / 364.3 MB, free: 6.98 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.1268, allocations: 330.8 kB / 364.6 MB, free: 6.648 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002118/0.127, allocations: 68.19 kB / 364.7 MB, free: 6.582 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002581/0.1273, allocations: 151.7 kB / 364.8 MB, free: 6.398 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004524/0.1278, allocations: 222.2 kB / 365.1 MB, free: 6.141 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.07e-06/0.1278, allocations: 4 kB / 365.1 MB, free: 6.137 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006008/0.1284, allocations: 286.8 kB / 365.3 MB, free: 5.844 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.563e-05/0.1284, allocations: 29.7 kB / 365.4 MB, free: 5.809 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/0.1284, allocations: 7.938 kB / 365.4 MB, free: 5.801 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.193e-05/0.1285, allocations: 4 kB / 365.4 MB, free: 5.797 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002079/0.1287, allocations: 39.97 kB / 365.4 MB, free: 5.758 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.171e-05/0.1287, allocations: 12.27 kB / 365.4 MB, free: 5.746 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001807/0.1289, allocations: 39.75 kB / 365.5 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.321e-05/0.1289, allocations: 12 kB / 365.5 MB, free: 5.695 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.0001609/0.1291, allocations: 137.8 kB / 365.6 MB, free: 5.551 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000194/0.1293, allocations: 105.4 kB / 365.7 MB, free: 5.441 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.497e-05/0.1294, allocations: 24.7 kB / 365.7 MB, free: 5.418 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.1294, allocations: 4 kB / 365.7 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.1294, allocations: 0 / 365.7 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.1294, allocations: 7.938 kB / 365.8 MB, free: 5.406 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007716/0.1302, allocations: 495.2 kB / 366.2 MB, free: 4.867 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.1302, allocations: 0 / 366.2 MB, free: 4.867 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001973/0.1304, allocations: 35.97 kB / 366.3 MB, free: 4.832 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.1304, allocations: 3.938 kB / 366.3 MB, free: 4.828 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.385e-05/0.1304, allocations: 15.92 kB / 366.3 MB, free: 4.812 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.1304, allocations: 7.938 kB / 366.3 MB, free: 4.805 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.1305, allocations: 0 / 366.3 MB, free: 4.805 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005958/0.1311, allocations: 327.9 kB / 366.6 MB, free: 4.465 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.174e-05/0.1311, allocations: 92.86 kB / 366.7 MB, free: 4.355 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.856e-05/0.1312, allocations: 11.94 kB / 366.7 MB, free: 4.344 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001778/0.1314, allocations: 15.98 kB / 366.7 MB, free: 4.328 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.051e-05/0.1314, allocations: 19.97 kB / 366.8 MB, free: 4.309 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.141e-05/0.1315, allocations: 8 kB / 366.8 MB, free: 4.301 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.208e-05/0.1316, allocations: 114.5 kB / 366.9 MB, free: 4.191 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1316, allocations: 0 / 366.9 MB, free: 4.191 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003177/0.1319, allocations: 36 kB / 366.9 MB, free: 4.156 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.001203/0.1331, allocations: 0.9695 MB / 367.9 MB, free: 3.156 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005885/0.1337, allocations: 255 kB / 368.1 MB, free: 2.898 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.1337, allocations: 4 kB / 368.1 MB, free: 2.895 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001973/0.1339, allocations: 67.83 kB / 368.2 MB, free: 2.828 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004401/0.1344, allocations: 67.94 kB / 368.3 MB, free: 2.762 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002946/0.1373, allocations: 2.157 MB / 370.4 MB, free: 456 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1849/0.3222, allocations: 0.7219 MB / 371.1 MB, free: 19.77 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001412/0.3224, allocations: 13.61 kB / 371.2 MB, free: 19.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001455/0.3226, allocations: 52.5 kB / 371.2 MB, free: 19.76 MB / 302.1 MB Notification: Performance of SimCode: time 1.343e-06/0.3226, allocations: 2.531 kB / 371.2 MB, free: 19.76 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03316/0.3557, allocations: 3.696 MB / 374.9 MB, free: 19.36 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.231/8.587, allocations: 9.5 kB / 374.9 MB, free: 19.36 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_RotationalSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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.continuous,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