Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008324/0.0008325, allocations: 175 kB / 16.77 MB, free: 4.926 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.122/1.122, allocations: 205.4 MB / 222.9 MB, free: 9.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007077/0.0007077, allocations: 82.41 kB / 271.3 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.0577/0.0577, allocations: 12.19 MB / 331.8 MB, free: 11.63 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003643/0.0003646, allocations: 12 kB / 392.2 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06488/0.06527, allocations: 50.3 MB / 442.5 MB, free: 16.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample): time 0.001708/0.06702, allocations: 1.619 MB / 444.1 MB, free: 14.91 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008236/0.06787, allocations: 0.6168 MB / 444.7 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001188/0.06801, allocations: 4 kB / 444.7 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.896e-05/0.06805, allocations: 15.86 kB / 444.8 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001029/0.06816, allocations: 15.86 kB / 444.8 MB, free: 14.25 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/ClockSignals.mo:280:9-282:76:writable] Warning: In relation rotationalClock.trigger_interval == 0.0, == on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.0003509/0.06852, allocations: 83.84 kB / 444.9 MB, free: 14.17 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001746/0.0687, allocations: 176 kB / 445 MB, free: 14 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001501/0.06886, allocations: 80.33 kB / 445.1 MB, free: 13.92 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001243/0.069, allocations: 59.77 kB / 445.2 MB, free: 13.86 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.441e-05/0.06909, allocations: 71.61 kB / 445.2 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.472e-05/0.06912, allocations: 4 kB / 445.2 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.767e-05/0.06914, allocations: 8 kB / 445.2 MB, free: 13.78 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.745e-05/0.06918, allocations: 23.91 kB / 445.3 MB, free: 13.75 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.563e-05/0.06925, allocations: 89.3 kB / 445.4 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001199/0.06937, allocations: 143.9 kB / 445.5 MB, free: 13.52 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.06938, allocations: 0 / 445.5 MB, free: 13.52 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.06939, allocations: 0 / 445.5 MB, free: 13.52 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.05e-06/0.0694, allocations: 3.938 kB / 445.5 MB, free: 13.52 MB / 298.7 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.0006119/0.07002, allocations: 0.5101 MB / 446 MB, free: 12.94 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.309e-05/0.07006, allocations: 8.031 kB / 446 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.997e-05/0.07011, allocations: 54.72 kB / 446.1 MB, free: 12.87 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.42e-05/0.07016, allocations: 16.75 kB / 446.1 MB, free: 12.86 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001732/0.07034, allocations: 232.5 kB / 446.3 MB, free: 12.59 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.2e-05/0.0704, allocations: 46.34 kB / 446.4 MB, free: 12.54 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.277e-05/0.07043, allocations: 23.94 kB / 446.4 MB, free: 12.52 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005822/0.07102, allocations: 344.7 kB / 446.7 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.07104, allocations: 0 / 446.7 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.935e-05/0.07106, allocations: 4 kB / 446.7 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.73e-06/0.07108, allocations: 4 kB / 446.7 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003746/0.07145, allocations: 151.8 kB / 446.9 MB, free: 12.01 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005082/0.07197, allocations: 465.2 kB / 447.3 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004238/0.07241, allocations: 209.1 kB / 447.5 MB, free: 11.28 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002144/0.07263, allocations: 109.7 kB / 447.6 MB, free: 11.16 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.368e-05/0.07267, allocations: 4 kB / 447.6 MB, free: 11.16 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002679/0.07295, allocations: 131.3 kB / 447.8 MB, free: 11.02 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.974e-06/0.07296, allocations: 0 / 447.8 MB, free: 11.02 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006835/0.07365, allocations: 314.1 kB / 448.1 MB, free: 10.71 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.106e-05/0.0737, allocations: 89.05 kB / 448.2 MB, free: 10.6 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.006e-05/0.07379, allocations: 150.3 kB / 448.3 MB, free: 10.44 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.845e-05/0.07381, allocations: 29.7 kB / 448.3 MB, free: 10.41 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.973e-05/0.07386, allocations: 124.4 kB / 448.5 MB, free: 10.28 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.432e-05/0.07389, allocations: 35.55 kB / 448.5 MB, free: 10.25 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.071e-05/0.0739, allocations: 4 kB / 448.5 MB, free: 10.24 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.975e-05/0.07395, allocations: 326.8 kB / 448.8 MB, free: 9.914 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001782/0.07413, allocations: 68.19 kB / 448.9 MB, free: 9.848 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001836/0.07432, allocations: 147.6 kB / 449 MB, free: 9.668 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003425/0.07467, allocations: 248.8 kB / 449.3 MB, free: 9.383 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.07468, allocations: 4 kB / 449.3 MB, free: 9.379 MB / 298.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004656/0.07515, allocations: 295.1 kB / 449.6 MB, free: 9.078 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.498e-05/0.07519, allocations: 33.7 kB / 449.6 MB, free: 9.039 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.0752, allocations: 3.938 kB / 449.6 MB, free: 9.035 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.255e-05/0.07522, allocations: 4 kB / 449.6 MB, free: 9.031 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001755/0.0754, allocations: 51.89 kB / 449.7 MB, free: 8.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.795e-06/0.07542, allocations: 11.88 kB / 449.7 MB, free: 8.969 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001587/0.07558, allocations: 39.81 kB / 449.7 MB, free: 8.93 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.711e-05/0.07561, allocations: 12 kB / 449.7 MB, free: 8.918 MB / 298.7 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,rotationalClock.changed.u,$CLKPRE.rotationalClock.changed.u,rotationalClock.cast.y,rotationalClock.direction_changed,rotationalClock.direction,$whenCondition1,$PRE.trigger_interval_input.T_start,trigger_interval_input.T_start,$PRE.trigger_interval_input.count,trigger_interval_input.count,rotationalClock.less.y,$whenCondition2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.715e-05/0.0757, allocations: 145.5 kB / 449.9 MB, free: 8.766 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001412/0.07585, allocations: 101.5 kB / 450 MB, free: 8.66 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.538e-05/0.0759, allocations: 20.72 kB / 450 MB, free: 8.641 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.337e-06/0.07591, allocations: 4 kB / 450 MB, free: 8.637 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.07592, allocations: 7.938 kB / 450 MB, free: 8.629 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.07593, allocations: 7.922 kB / 450 MB, free: 8.621 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005563/0.07649, allocations: 0.4905 MB / 450.5 MB, free: 8.074 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.07651, allocations: 4 kB / 450.5 MB, free: 8.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000178/0.07669, allocations: 43.89 kB / 450.5 MB, free: 8.027 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.0767, allocations: 7.938 kB / 450.5 MB, free: 8.02 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.762e-05/0.07673, allocations: 4 kB / 450.5 MB, free: 8.016 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.07673, allocations: 4 kB / 450.6 MB, free: 8.012 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.07674, allocations: 4 kB / 450.6 MB, free: 8.008 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004607/0.0772, allocations: 339.8 kB / 450.9 MB, free: 7.656 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.64e-05/0.07724, allocations: 100.8 kB / 451 MB, free: 7.539 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.652e-05/0.07727, allocations: 4 kB / 451 MB, free: 7.535 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001706/0.07745, allocations: 27.97 kB / 451 MB, free: 7.508 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.846e-05/0.07752, allocations: 15.98 kB / 451 MB, free: 7.492 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.545e-05/0.07754, allocations: 7.984 kB / 451 MB, free: 7.484 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.663e-05/0.07759, allocations: 103.3 kB / 451.1 MB, free: 7.383 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.07759, allocations: 0 / 451.1 MB, free: 7.383 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002572/0.07786, allocations: 43.89 kB / 451.2 MB, free: 7.34 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008448/0.07871, allocations: 0.9784 MB / 452.2 MB, free: 6.328 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004433/0.07916, allocations: 259 kB / 452.4 MB, free: 6.062 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.07917, allocations: 0 / 452.4 MB, free: 6.062 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001669/0.07935, allocations: 72.58 kB / 452.5 MB, free: 5.992 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003773/0.07973, allocations: 60.89 kB / 452.5 MB, free: 5.934 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001533/0.08127, allocations: 1.096 MB / 453.6 MB, free: 4.754 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001206/0.08141, allocations: 0.7286 MB / 454.4 MB, free: 4 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.182e-05/0.08151, allocations: 55.47 kB / 454.4 MB, free: 3.945 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.08151, allocations: 0 / 454.4 MB, free: 3.945 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.325/2.407, allocations: 2.433 MB / 456.9 MB, free: 1.508 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_ClockSignals_RotationalSample_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_ClockSignals_RotationalSample.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1)