Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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-master/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-master/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_Modelica_Synchronous_Examples_Elementary_ClockSignals_RotationalSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample,fileNamePrefix="Modelica_Synchronous_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.001336/0.001341, allocations: 180.8 kB / 16.11 MB, free: 5.695 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.37/1.37, allocations: 205 MB / 221.9 MB, free: 9.152 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.0007282/0.0007281, allocations: 89.69 kB / 269.9 MB, free: 8.668 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06032/0.06032, allocations: 12.58 MB / 330.4 MB, free: 12.07 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003222/0.0003222, allocations: 12 kB / 391.2 MB, free: 66.34 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07651/0.07685, allocations: 49.98 MB / 441.1 MB, free: 16.3 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample): time 0.001841/0.07873, allocations: 1.684 MB / 442.8 MB, free: 14.6 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000923/0.07967, allocations: 0.6554 MB / 443.5 MB, free: 13.94 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001019/0.07979, allocations: 4 kB / 443.5 MB, free: 13.93 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.694e-05/0.07985, allocations: 11.86 kB / 443.5 MB, free: 13.92 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001122/0.07996, allocations: 23.84 kB / 443.5 MB, free: 13.9 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003209/0.08029, allocations: 99.84 kB / 443.6 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001408/0.08044, allocations: 180 kB / 443.8 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001567/0.0806, allocations: 92.59 kB / 443.9 MB, free: 13.53 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001155/0.08073, allocations: 59.72 kB / 443.9 MB, free: 13.47 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.084e-05/0.08082, allocations: 67.61 kB / 444 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.454e-05/0.08085, allocations: 4 kB / 444 MB, free: 13.4 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.744e-05/0.08087, allocations: 4 kB / 444 MB, free: 13.4 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.183e-05/0.08091, allocations: 35.83 kB / 444.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.568e-05/0.08097, allocations: 63.55 kB / 444.1 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001496/0.08113, allocations: 183.3 kB / 444.3 MB, free: 13.12 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.379e-06/0.08114, allocations: 3.984 kB / 444.3 MB, free: 13.12 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.08114, allocations: 0 / 444.3 MB, free: 13.12 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.275e-06/0.08116, allocations: 0 / 444.3 MB, free: 13.12 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.0006811/0.08185, allocations: 0.5062 MB / 444.8 MB, free: 12.55 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.265e-05/0.0819, allocations: 8.031 kB / 444.8 MB, free: 12.54 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.792e-05/0.08195, allocations: 54.67 kB / 444.9 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.214e-05/0.08201, allocations: 20.75 kB / 444.9 MB, free: 12.46 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002072/0.08222, allocations: 232.5 kB / 445.1 MB, free: 12.19 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.024e-05/0.08229, allocations: 54.31 kB / 445.2 MB, free: 12.13 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.591e-05/0.08232, allocations: 15.94 kB / 445.2 MB, free: 12.12 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006025/0.08293, allocations: 338 kB / 445.5 MB, free: 11.77 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.838e-06/0.08295, allocations: 0 / 445.5 MB, free: 11.77 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.923e-05/0.08298, allocations: 8 kB / 445.5 MB, free: 11.77 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.08299, allocations: 3.984 kB / 445.5 MB, free: 11.76 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003644/0.08336, allocations: 151.8 kB / 445.7 MB, free: 11.61 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000519/0.08389, allocations: 465.2 kB / 446.1 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004172/0.08432, allocations: 221.1 kB / 446.3 MB, free: 10.87 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002113/0.08454, allocations: 105.7 kB / 446.4 MB, free: 10.76 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.701e-05/0.08458, allocations: 8 kB / 446.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002815/0.08486, allocations: 127.5 kB / 446.6 MB, free: 10.62 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.693e-06/0.08487, allocations: 0 / 446.6 MB, free: 10.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006862/0.08557, allocations: 302 kB / 446.9 MB, free: 10.32 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.252e-05/0.08563, allocations: 97.22 kB / 447 MB, free: 10.2 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.44e-05/0.08572, allocations: 150.4 kB / 447.1 MB, free: 10.04 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.88e-05/0.08575, allocations: 33.7 kB / 447.1 MB, free: 10 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.267e-05/0.08581, allocations: 116.4 kB / 447.3 MB, free: 9.887 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.62e-05/0.08584, allocations: 35.55 kB / 447.3 MB, free: 9.852 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.291e-05/0.08588, allocations: 33.64 kB / 447.3 MB, free: 9.812 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.285e-05/0.08594, allocations: 326.8 kB / 447.6 MB, free: 9.484 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001735/0.08611, allocations: 72.19 kB / 447.7 MB, free: 9.414 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001866/0.08631, allocations: 150.7 kB / 447.9 MB, free: 9.23 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003353/0.08666, allocations: 253.2 kB / 448.1 MB, free: 8.941 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.08667, allocations: 4 kB / 448.1 MB, free: 8.938 MB / 298.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004488/0.08712, allocations: 287 kB / 448.4 MB, free: 8.645 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.573e-05/0.08716, allocations: 33.7 kB / 448.4 MB, free: 8.605 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-06/0.08717, allocations: 3.984 kB / 448.4 MB, free: 8.602 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.289e-05/0.08719, allocations: 8 kB / 448.4 MB, free: 8.594 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001718/0.08736, allocations: 48.06 kB / 448.5 MB, free: 8.547 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.08738, allocations: 11.94 kB / 448.5 MB, free: 8.535 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001527/0.08754, allocations: 35.83 kB / 448.5 MB, free: 8.5 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.699e-05/0.08756, allocations: 8 kB / 448.5 MB, free: 8.492 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,$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 9.591e-05/0.08767, allocations: 149.7 kB / 448.7 MB, free: 8.336 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001386/0.08781, allocations: 105.4 kB / 448.8 MB, free: 8.227 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.212e-05/0.08787, allocations: 20.72 kB / 448.8 MB, free: 8.207 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.08788, allocations: 8 kB / 448.8 MB, free: 8.199 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.08789, allocations: 7.875 kB / 448.8 MB, free: 8.191 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.0879, allocations: 0 / 448.8 MB, free: 8.191 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005657/0.08847, allocations: 0.5061 MB / 449.3 MB, free: 7.629 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.08848, allocations: 0 / 449.3 MB, free: 7.629 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001597/0.08865, allocations: 39.97 kB / 449.4 MB, free: 7.59 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.08866, allocations: 3.938 kB / 449.4 MB, free: 7.586 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.676e-05/0.08868, allocations: 11.98 kB / 449.4 MB, free: 7.574 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.08869, allocations: 0 / 449.4 MB, free: 7.574 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.08869, allocations: 0 / 449.4 MB, free: 7.574 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004506/0.08915, allocations: 347.8 kB / 449.7 MB, free: 7.215 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.738e-05/0.08919, allocations: 96.89 kB / 449.8 MB, free: 7.102 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.854e-05/0.08922, allocations: 4 kB / 449.8 MB, free: 7.098 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001655/0.08939, allocations: 23.98 kB / 449.8 MB, free: 7.074 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.909e-05/0.08946, allocations: 11.97 kB / 449.9 MB, free: 7.062 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.487e-05/0.08948, allocations: 12 kB / 449.9 MB, free: 7.051 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.756e-05/0.08953, allocations: 111.9 kB / 450 MB, free: 6.941 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.08956, allocations: 0 / 450 MB, free: 6.941 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002659/0.08983, allocations: 47.84 kB / 450 MB, free: 6.895 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 (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.00087/0.09071, allocations: 0.9746 MB / 451 MB, free: 5.887 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004473/0.09117, allocations: 263.1 kB / 451.3 MB, free: 5.617 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.09118, allocations: 3.938 kB / 451.3 MB, free: 5.613 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001624/0.09135, allocations: 72.59 kB / 451.3 MB, free: 5.543 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004023/0.09176, allocations: 63.94 kB / 451.4 MB, free: 5.48 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002147/0.09392, allocations: 2.236 MB / 453.6 MB, free: 3.094 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001318/0.09406, allocations: 0.7286 MB / 454.4 MB, free: 2.336 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.023e-05/0.09414, allocations: 13.42 kB / 454.4 MB, free: 2.32 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.007e-05/0.09422, allocations: 47.42 kB / 454.4 MB, free: 2.273 MB / 298.7 MB Notification: Performance of SimCode: time 3.11e-07/0.09423, allocations: 0 / 454.4 MB, free: 2.273 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.181/0.2753, allocations: 3.315 MB / 457.7 MB, free: 14.95 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003113/0.2756, allocations: 238.6 kB / 458 MB, free: 14.69 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.612/1.888, allocations: 0 / 458 MB, free: 14.69 MB / 314.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_ClockSignals_RotationalSample_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_ClockSignals_RotationalSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample.pipe 2>&1)