Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare.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: translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001532/0.001532, allocations: 184.7 kB / 16.44 MB, free: 5.672 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.928/1.928, allocations: 205.4 MB / 222.6 MB, free: 9.125 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.001116/0.001116, allocations: 85.59 kB / 270.9 MB, free: 8.391 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.0998/0.0998, allocations: 12.59 MB / 331.8 MB, free: 11.41 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009507/0.0009511, allocations: 24 kB / 392 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1104, allocations: 50.37 MB / 442.3 MB, free: 16.49 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4257/0.5361, allocations: 78.21 MB / 0.5084 GB, free: 12.72 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002041/0.5364, allocations: 58.33 kB / 0.5084 GB, free: 12.72 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004305/0.5407, allocations: 1.152 MB / 0.5095 GB, free: 12.36 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.505e-06/0.5408, allocations: 0 / 0.5095 GB, free: 12.36 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.328e-05/0.5408, allocations: 3.844 kB / 0.5095 GB, free: 12.36 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0003703/0.5412, allocations: 358.4 kB / 0.5099 GB, free: 11.99 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.5412, allocations: 7.781 kB / 0.5099 GB, free: 11.99 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.865e-05/0.5413, allocations: 3.812 kB / 0.5099 GB, free: 11.99 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001636/0.5414, allocations: 183.4 kB / 0.5101 GB, free: 11.79 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.523e-05/0.5415, allocations: 11.64 kB / 0.5101 GB, free: 11.78 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.443e-05/0.5415, allocations: 3.531 kB / 0.5101 GB, free: 11.78 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003575/0.5419, allocations: 122.9 kB / 0.5102 GB, free: 11.7 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/0.5419, allocations: 0 / 0.5102 GB, free: 11.7 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.209e-05/0.5419, allocations: 4 kB / 0.5102 GB, free: 11.7 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.573e-06/0.5419, allocations: 0.875 kB / 0.5102 GB, free: 11.7 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001444/0.5421, allocations: 34.97 kB / 0.5102 GB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004495/0.5425, allocations: 350.7 kB / 0.5106 GB, free: 11.31 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002453/0.5428, allocations: 158.7 kB / 0.5107 GB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.198e-05/0.5429, allocations: 4.078 kB / 0.5107 GB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.113e-05/0.5429, allocations: 41.75 kB / 0.5108 GB, free: 11.09 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 2.805e-06/0.5429, allocations: 0 / 0.5108 GB, free: 11.09 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.000418/0.5433, allocations: 102.8 kB / 0.5109 GB, free: 11.04 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.62e-05/0.5434, allocations: 110.5 kB / 0.511 GB, free: 10.91 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.13e-05/0.5435, allocations: 110.6 kB / 0.5111 GB, free: 10.81 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.239e-05/0.5435, allocations: 25.7 kB / 0.5111 GB, free: 10.78 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.951e-05/0.5436, allocations: 153.9 kB / 0.5112 GB, free: 10.63 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.349e-05/0.5436, allocations: 11.47 kB / 0.5113 GB, free: 10.62 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.841e-06/0.5436, allocations: 0 / 0.5113 GB, free: 10.62 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.98e-05/0.5437, allocations: 314.2 kB / 0.5116 GB, free: 10.31 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.985e-05/0.5438, allocations: 23.11 kB / 0.5116 GB, free: 10.3 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.913e-05/0.5439, allocations: 47.69 kB / 0.5116 GB, free: 10.26 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.571e-05/0.544, allocations: 21.86 kB / 0.5116 GB, free: 10.25 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.756e-06/0.544, allocations: 0 / 0.5116 GB, free: 10.25 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002557/0.5443, allocations: 91.84 kB / 0.5117 GB, free: 10.2 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.954e-05/0.5443, allocations: 7.719 kB / 0.5117 GB, free: 10.2 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.5443, allocations: 0 / 0.5117 GB, free: 10.2 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.979e-05/0.5443, allocations: 3.688 kB / 0.5117 GB, free: 10.2 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001175/0.5445, allocations: 10.28 kB / 0.5118 GB, free: 10.2 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.756e-06/0.5445, allocations: 3.984 kB / 0.5118 GB, free: 10.2 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.74e-05/0.5446, allocations: 7.656 kB / 0.5118 GB, free: 10.2 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.204e-05/0.5446, allocations: 7.812 kB / 0.5118 GB, free: 10.19 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (ClockedRealToSquare.y2,$CLKPRE.ClockedRealToSquare.y2,ClockedRealToSquare.y) * Number of discrete states: 0 () * Number of clocked states: 1 (ClockedRealToSquare.y2) * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * 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 9.458e-05/0.5447, allocations: 124.5 kB / 0.5119 GB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001206/0.5448, allocations: 56.25 kB / 0.5119 GB, free: 10.03 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.347e-05/0.5449, allocations: 5.875 kB / 0.512 GB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.5449, allocations: 0 / 0.512 GB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.5449, allocations: 3.625 kB / 0.512 GB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.5449, allocations: 0 / 0.512 GB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002501/0.5452, allocations: 164.3 kB / 0.5121 GB, free: 9.82 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.5452, allocations: 7.938 kB / 0.5121 GB, free: 9.812 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.996e-05/0.5453, allocations: 15.28 kB / 0.5121 GB, free: 9.809 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.05e-06/0.5453, allocations: 0 / 0.5121 GB, free: 9.809 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.078e-05/0.5454, allocations: 3.688 kB / 0.5121 GB, free: 9.809 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.831e-06/0.5454, allocations: 8.094 kB / 0.5121 GB, free: 9.805 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.5454, allocations: 0 / 0.5121 GB, free: 9.805 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000317/0.5457, allocations: 282.6 kB / 0.5124 GB, free: 9.539 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.259e-05/0.5458, allocations: 88.33 kB / 0.5125 GB, free: 9.441 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.552e-05/0.5458, allocations: 7.125 kB / 0.5125 GB, free: 9.438 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001377/0.5459, allocations: 3.844 kB / 0.5125 GB, free: 9.438 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.346e-05/0.546, allocations: 0 / 0.5125 GB, free: 9.438 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.004e-05/0.546, allocations: 7.828 kB / 0.5125 GB, free: 9.434 MB / 330.7 MB Notification: Performance of sorting global known variables: time 4.968e-05/0.5461, allocations: 90.75 kB / 0.5126 GB, free: 9.355 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.373e-06/0.5461, allocations: 3.938 kB / 0.5126 GB, free: 9.352 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003606/0.5464, allocations: 14.75 kB / 0.5126 GB, free: 9.348 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 (ClockedRealToSquare.y,ClockedRealToSquare.y2) * Number of discrete states: 0 () * Number of clocked states: 1 (ClockedRealToSquare.y2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0001034/0.5466, allocations: 90.81 kB / 0.5127 GB, free: 9.262 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002508/0.5468, allocations: 49.75 kB / 0.5128 GB, free: 9.25 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.5468, allocations: 256 / 0.5128 GB, free: 9.25 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.479e-05/0.5469, allocations: 23.3 kB / 0.5128 GB, free: 9.242 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002925/0.5472, allocations: 28.02 kB / 0.5128 GB, free: 9.227 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004187/0.5477, allocations: 192.8 kB / 0.513 GB, free: 9.035 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001527/0.5478, allocations: 0.6989 MB / 0.5137 GB, free: 8.328 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.974e-05/0.5479, allocations: 7.438 kB / 0.5137 GB, free: 8.32 MB / 330.7 MB Notification: Performance of SimCode: time 1.222e-06/0.5479, allocations: 3.875 kB / 0.5137 GB, free: 8.32 MB / 330.7 MB Notification: Performance of Templates: time 0.002588/0.5505, allocations: 0.744 MB / 0.5144 GB, free: 7.957 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare --alarm=480 > Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare.pipe 2>&1)