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.002353/0.002352, allocations: 179.2 kB / 8.406 MB, free: 0.6719 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.997/1.997, allocations: 205.3 MB / 214.1 MB, free: 1.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001089/0.001089, allocations: 86.64 kB / 262.2 MB, free: 1.613 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.09756/0.09756, allocations: 12.61 MB / 322.7 MB, free: 15.18 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.254e-05/2.271e-05, allocations: 4 kB / 378.9 MB, free: 6.883 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2995/0.2995, allocations: 50.36 MB / 429.3 MB, free: 18.41 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1365/0.4361, allocations: 77.46 MB / 0.4949 GB, free: 4.844 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002367/0.4364, allocations: 59.97 kB / 0.4949 GB, free: 4.785 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005044/0.4415, allocations: 1.141 MB / 0.496 GB, free: 3.645 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.4415, allocations: 0 / 0.496 GB, free: 3.645 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.777e-05/0.4416, allocations: 4 kB / 0.496 GB, free: 3.641 MB / 346.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.0004922/0.4421, allocations: 350.4 kB / 0.4964 GB, free: 3.254 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.411e-05/0.4421, allocations: 8.031 kB / 0.4964 GB, free: 3.246 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.558e-05/0.4422, allocations: 7.906 kB / 0.4964 GB, free: 3.238 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002502/0.4425, allocations: 171 kB / 0.4965 GB, free: 3.031 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.765e-05/0.4425, allocations: 7.953 kB / 0.4966 GB, free: 3.023 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.328e-05/0.4425, allocations: 0 / 0.4966 GB, free: 3.023 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001254/0.4426, allocations: 20 kB / 0.4966 GB, free: 3.004 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002825/0.4429, allocations: 113.9 kB / 0.4967 GB, free: 2.871 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.443, allocations: 3.938 kB / 0.4967 GB, free: 2.867 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.253e-05/0.443, allocations: 0 / 0.4967 GB, free: 2.867 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.443, allocations: 0 / 0.4967 GB, free: 2.867 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005768/0.4436, allocations: 342.3 kB / 0.497 GB, free: 2.488 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00026/0.4439, allocations: 152.9 kB / 0.4972 GB, free: 2.293 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.284e-05/0.444, allocations: 30.64 kB / 0.4972 GB, free: 2.254 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.446e-05/0.444, allocations: 0 / 0.4972 GB, free: 2.254 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.617e-05/0.444, allocations: 34.56 kB / 0.4972 GB, free: 2.211 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.854e-06/0.4441, allocations: 0 / 0.4972 GB, free: 2.211 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.000271/0.4443, allocations: 65.7 kB / 0.4973 GB, free: 2.141 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.797e-05/0.4444, allocations: 106.9 kB / 0.4974 GB, free: 2.012 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001124/0.4446, allocations: 101 kB / 0.4975 GB, free: 1.906 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.43e-05/0.4446, allocations: 25.7 kB / 0.4975 GB, free: 1.875 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.179e-05/0.4447, allocations: 154.6 kB / 0.4977 GB, free: 1.723 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.786e-05/0.4447, allocations: 7.891 kB / 0.4977 GB, free: 1.715 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.089e-06/0.4447, allocations: 3.938 kB / 0.4977 GB, free: 1.711 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.4449, allocations: 318.8 kB / 0.498 GB, free: 1.391 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.236e-05/0.445, allocations: 4 kB / 0.498 GB, free: 1.387 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.733e-05/0.445, allocations: 48.23 kB / 0.498 GB, free: 1.324 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.843e-05/0.4451, allocations: 7.984 kB / 0.498 GB, free: 1.316 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.4451, allocations: 0 / 0.498 GB, free: 1.316 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002124/0.4453, allocations: 77.52 kB / 0.4981 GB, free: 1.234 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.37e-05/0.4454, allocations: 12.12 kB / 0.4981 GB, free: 1.223 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.4454, allocations: 0 / 0.4981 GB, free: 1.223 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.4454, allocations: 0 / 0.4981 GB, free: 1.223 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001515/0.4456, allocations: 19.92 kB / 0.4981 GB, free: 1.203 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.4456, allocations: 0 / 0.4981 GB, free: 1.203 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.036e-05/0.4457, allocations: 4 kB / 0.4981 GB, free: 1.199 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.662e-05/0.4457, allocations: 8 kB / 0.4981 GB, free: 1.191 MB / 346.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 () * 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 0.000102/0.4458, allocations: 105.3 kB / 0.4982 GB, free: 1.082 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001378/0.446, allocations: 49.59 kB / 0.4983 GB, free: 1.027 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.186e-05/0.4461, allocations: 20.33 kB / 0.4983 GB, free: 1 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.4461, allocations: 3.938 kB / 0.4983 GB, free: 0.9961 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.4461, allocations: 0 / 0.4983 GB, free: 0.9961 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.193e-06/0.4461, allocations: 4 kB / 0.4983 GB, free: 0.9922 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002857/0.4464, allocations: 142.2 kB / 0.4985 GB, free: 0.8164 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.4464, allocations: 0 / 0.4985 GB, free: 0.8164 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001112/0.4465, allocations: 12 kB / 0.4985 GB, free: 0.8047 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-06/0.4466, allocations: 0 / 0.4985 GB, free: 0.8047 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.618e-05/0.4466, allocations: 7.938 kB / 0.4985 GB, free: 0.7969 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.4466, allocations: 0 / 0.4985 GB, free: 0.7969 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.4466, allocations: 8 kB / 0.4985 GB, free: 0.7891 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002807/0.4469, allocations: 266.9 kB / 0.4987 GB, free: 0.4961 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.679e-05/0.447, allocations: 85.02 kB / 0.4988 GB, free: 404 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.343e-05/0.447, allocations: 0 / 0.4988 GB, free: 404 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001786/0.4472, allocations: 11.98 kB / 0.4988 GB, free: 392 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.138e-05/0.4473, allocations: 0 / 0.4988 GB, free: 392 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.282e-05/0.4473, allocations: 4 kB / 0.4988 GB, free: 388 kB / 346.7 MB Notification: Performance of sorting global known variables: time 6.991e-05/0.4474, allocations: 83.28 kB / 0.4989 GB, free: 304 kB / 346.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.4474, allocations: 0 / 0.4989 GB, free: 304 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003905/0.4478, allocations: 8 kB / 0.4989 GB, free: 296 kB / 346.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 () * 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.0001561/0.448, allocations: 99.23 kB / 0.499 GB, free: 188 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001582/0.4481, allocations: 31.94 kB / 0.499 GB, free: 156 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.4481, allocations: 0 / 0.499 GB, free: 156 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.177e-05/0.4482, allocations: 11.88 kB / 0.4991 GB, free: 144 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003329/0.4485, allocations: 27.3 kB / 0.4991 GB, free: 120 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004025/0.4489, allocations: 115.5 kB / 0.4992 GB, free: 15.96 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003757/0.4493, allocations: 0.6966 MB / 0.4999 GB, free: 15.24 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.585e-05/0.4494, allocations: 11.44 kB / 0.4999 GB, free: 15.23 MB / 362.7 MB Notification: Performance of SimCode: time 1.022e-06/0.4494, allocations: 0 / 0.4999 GB, free: 15.23 MB / 362.7 MB Notification: Performance of Templates: time 0.002892/0.4523, allocations: 0.7426 MB / 0.5006 GB, free: 14.49 MB / 362.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)