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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001973/0.001973, allocations: 123.9 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002182/0.002182, allocations: 185.2 kB / 20.73 MB, free: 2.332 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.512/1.512, allocations: 225.6 MB / 249.1 MB, free: 3.613 MB / 190.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001621/0.001621, allocations: 51.92 kB / 365.6 MB, free: 0.875 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1358/0.1374, allocations: 52.14 MB / 417.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample): time 0.00389/0.1413, allocations: 1.978 MB / 419.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001383/0.1427, allocations: 0.6466 MB / 420.4 MB, free: 9.992 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001365/0.1428, allocations: 4 kB / 420.4 MB, free: 9.988 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.711e-05/0.1429, allocations: 19.73 kB / 420.4 MB, free: 9.969 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001392/0.143, allocations: 23.75 kB / 420.4 MB, free: 9.945 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004659/0.1435, allocations: 107.8 kB / 420.5 MB, free: 9.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003153/0.1438, allocations: 208 kB / 420.8 MB, free: 9.637 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000199/0.144, allocations: 64.34 kB / 420.8 MB, free: 9.574 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002285/0.1442, allocations: 95.62 kB / 420.9 MB, free: 9.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001414/0.1444, allocations: 87.59 kB / 421 MB, free: 9.395 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.105e-05/0.1444, allocations: 20 kB / 421 MB, free: 9.375 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.122e-05/0.1444, allocations: 20 kB / 421 MB, free: 9.355 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.674e-05/0.1445, allocations: 43.91 kB / 421.1 MB, free: 9.312 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001171/0.1446, allocations: 87.52 kB / 421.2 MB, free: 9.227 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003363/0.1449, allocations: 223 kB / 421.4 MB, free: 9.008 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1449, allocations: 0 / 421.4 MB, free: 9.008 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1449, allocations: 4 kB / 421.4 MB, free: 9.004 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.044e-06/0.145, allocations: 0 / 421.4 MB, free: 9.004 MB / 350.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.001003/0.146, allocations: 0.5257 MB / 421.9 MB, free: 8.414 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.146, allocations: 8.031 kB / 421.9 MB, free: 8.406 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.122e-05/0.1461, allocations: 62.67 kB / 422 MB, free: 8.336 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.204e-05/0.1461, allocations: 16.84 kB / 422 MB, free: 8.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004365/0.1466, allocations: 240.6 kB / 422.2 MB, free: 8.047 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.49e-05/0.1467, allocations: 42.34 kB / 422.3 MB, free: 8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.548e-05/0.1467, allocations: 19.94 kB / 422.3 MB, free: 7.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007624/0.1475, allocations: 330.9 kB / 422.6 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.1475, allocations: 0 / 422.6 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.561e-05/0.1475, allocations: 11.98 kB / 422.6 MB, free: 7.629 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/0.1475, allocations: 4 kB / 422.6 MB, free: 7.625 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004398/0.1479, allocations: 135.8 kB / 422.8 MB, free: 7.492 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000798/0.1487, allocations: 457.4 kB / 423.2 MB, free: 6.992 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005067/0.1492, allocations: 189.1 kB / 423.4 MB, free: 6.789 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002733/0.1495, allocations: 101.6 kB / 423.5 MB, free: 6.684 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.571e-05/0.1496, allocations: 3.984 kB / 423.5 MB, free: 6.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003181/0.1499, allocations: 121.8 kB / 423.6 MB, free: 6.551 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.573e-06/0.1499, allocations: 0 / 423.6 MB, free: 6.551 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008483/0.1507, allocations: 289.3 kB / 423.9 MB, free: 6.262 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.416e-05/0.1508, allocations: 85.11 kB / 424 MB, free: 6.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001805/0.151, allocations: 156.2 kB / 424.1 MB, free: 5.996 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.104e-05/0.151, allocations: 33.7 kB / 424.2 MB, free: 5.957 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.1511, allocations: 112.5 kB / 424.3 MB, free: 5.844 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.883e-05/0.1512, allocations: 43.8 kB / 424.3 MB, free: 5.801 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.807e-05/0.1513, allocations: 45.7 kB / 424.4 MB, free: 5.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00017/0.1515, allocations: 326.8 kB / 424.7 MB, free: 5.422 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002139/0.1517, allocations: 64.17 kB / 424.7 MB, free: 5.359 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00029/0.152, allocations: 148.1 kB / 424.9 MB, free: 5.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004452/0.1524, allocations: 227.8 kB / 425.1 MB, free: 4.914 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.1524, allocations: 3.938 kB / 425.1 MB, free: 4.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005936/0.153, allocations: 275 kB / 425.4 MB, free: 4.629 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.638e-05/0.153, allocations: 37.69 kB / 425.4 MB, free: 4.586 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.1531, allocations: 4 kB / 425.4 MB, free: 4.582 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.306e-05/0.1531, allocations: 4.344 kB / 425.4 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002053/0.1533, allocations: 43.91 kB / 425.5 MB, free: 4.535 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.807e-05/0.1533, allocations: 11.92 kB / 425.5 MB, free: 4.523 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001786/0.1535, allocations: 35.83 kB / 425.5 MB, free: 4.488 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.927e-05/0.1535, allocations: 12 kB / 425.5 MB, free: 4.477 MB / 350.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.0002435/0.1538, allocations: 141.7 kB / 425.7 MB, free: 4.328 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002045/0.154, allocations: 109.5 kB / 425.8 MB, free: 4.215 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.139e-05/0.154, allocations: 16.72 kB / 425.8 MB, free: 4.195 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.022e-06/0.154, allocations: 8 kB / 425.8 MB, free: 4.188 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.27e-05/0.154, allocations: 11.88 kB / 425.8 MB, free: 4.176 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.1541, allocations: 0 / 425.8 MB, free: 4.176 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008137/0.1549, allocations: 491.3 kB / 426.3 MB, free: 3.641 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.1549, allocations: 3.938 kB / 426.3 MB, free: 3.637 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001938/0.1551, allocations: 35.97 kB / 426.3 MB, free: 3.602 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-06/0.1551, allocations: 7.938 kB / 426.3 MB, free: 3.594 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.551e-05/0.1551, allocations: 11.98 kB / 426.3 MB, free: 3.582 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.1551, allocations: 0 / 426.3 MB, free: 3.582 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.1551, allocations: 4 kB / 426.4 MB, free: 3.578 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006554/0.1558, allocations: 324 kB / 426.7 MB, free: 3.242 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.425e-05/0.1558, allocations: 100.9 kB / 426.8 MB, free: 3.125 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.511e-05/0.1559, allocations: 8 kB / 426.8 MB, free: 3.117 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001793/0.1561, allocations: 11.98 kB / 426.8 MB, free: 3.105 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.724e-05/0.1561, allocations: 19.97 kB / 426.8 MB, free: 3.086 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.015e-05/0.1562, allocations: 11.94 kB / 426.8 MB, free: 3.074 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001094/0.1563, allocations: 112.8 kB / 426.9 MB, free: 2.965 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1563, allocations: 0 / 426.9 MB, free: 2.965 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003091/0.1566, allocations: 39.94 kB / 427 MB, free: 2.926 MB / 350.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.001266/0.1578, allocations: 0.9644 MB / 427.9 MB, free: 1.934 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005794/0.1584, allocations: 234.5 kB / 428.2 MB, free: 1.695 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1584, allocations: 0 / 428.2 MB, free: 1.695 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001872/0.1586, allocations: 59.89 kB / 428.2 MB, free: 1.637 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004563/0.1591, allocations: 70.72 kB / 428.3 MB, free: 1.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003205/0.1623, allocations: 2.147 MB / 430.4 MB, free: 15.26 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003728/0.1627, allocations: 0.7282 MB / 431.2 MB, free: 14.5 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.18e-05/0.1627, allocations: 17.42 kB / 431.2 MB, free: 14.49 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001145/0.1628, allocations: 59.41 kB / 431.2 MB, free: 14.43 MB / 366.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1628, allocations: 0 / 431.2 MB, free: 14.43 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07375/0.2366, allocations: 3.752 MB / 435 MB, free: 10.83 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.061/8.297, allocations: 10.81 kB / 435 MB, free: 10.83 MB / 366.1 MB " [Timeout remaining time 652] (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 --stepSize=0.000392542 --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) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/RotationalSample/RotationalSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.RotationalSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" 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 [Calling sys.exit(0), Time elapsed: 11.178187679033726]