Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001096/0.001096, allocations: 191.1 kB / 7.844 MB, free: 2.504 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.319/1.319, allocations: 205.2 MB / 213.4 MB, free: 13.86 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.0009502/0.0009503, allocations: 92.36 kB / 261.5 MB, free: 13.55 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.08109/0.08109, allocations: 12.59 MB / 322 MB, free: 0.9141 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.736e-06/8.766e-06, allocations: 4 kB / 378.4 MB, free: 75.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08169/0.08171, allocations: 50.37 MB / 428.8 MB, free: 25.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2491/0.3309, allocations: 77.38 MB / 0.4943 GB, free: 11.71 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001681/0.3311, allocations: 56.78 kB / 0.4943 GB, free: 11.71 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.002906/0.334, allocations: 0.8317 MB / 0.4951 GB, free: 11.66 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.103e-05/0.334, allocations: 3.906 kB / 0.4951 GB, free: 11.66 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.0002599/0.3343, allocations: 341.3 kB / 0.4955 GB, free: 11.31 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.3343, allocations: 11.81 kB / 0.4955 GB, free: 11.31 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.248e-05/0.3344, allocations: 7.562 kB / 0.4955 GB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001527/0.3346, allocations: 180 kB / 0.4957 GB, free: 11.1 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.296e-06/0.3346, allocations: 3.906 kB / 0.4957 GB, free: 11.1 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.256e-05/0.3346, allocations: 3.75 kB / 0.4957 GB, free: 11.1 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.861e-05/0.3347, allocations: 14.75 kB / 0.4957 GB, free: 11.1 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001826/0.3349, allocations: 111.8 kB / 0.4958 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.267e-06/0.3349, allocations: 0 / 0.4958 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.079e-05/0.3349, allocations: 8.438 kB / 0.4958 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.3349, allocations: 0 / 0.4958 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003265/0.3353, allocations: 334.3 kB / 0.4961 GB, free: 10.69 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001505/0.3354, allocations: 153 kB / 0.4963 GB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.358e-05/0.3355, allocations: 26.62 kB / 0.4963 GB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.585e-05/0.3355, allocations: 16.25 kB / 0.4963 GB, free: 10.49 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.644e-05/0.3355, allocations: 38.5 kB / 0.4963 GB, free: 10.45 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 1.132e-06/0.3355, allocations: 0 / 0.4963 GB, free: 10.45 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001824/0.3357, allocations: 61.34 kB / 0.4964 GB, free: 10.41 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.908e-05/0.3358, allocations: 106.7 kB / 0.4965 GB, free: 10.28 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.714e-05/0.3358, allocations: 101.9 kB / 0.4966 GB, free: 10.19 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.346e-06/0.3358, allocations: 35.38 kB / 0.4966 GB, free: 10.15 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.706e-05/0.3359, allocations: 80.84 kB / 0.4967 GB, free: 10.07 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.956e-05/0.3359, allocations: 12.25 kB / 0.4967 GB, free: 10.07 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.107e-06/0.3359, allocations: 0 / 0.4967 GB, free: 10.07 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.821e-05/0.336, allocations: 319.9 kB / 0.497 GB, free: 9.75 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.999e-05/0.336, allocations: 6.656 kB / 0.497 GB, free: 9.75 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.947e-05/0.336, allocations: 40.69 kB / 0.4971 GB, free: 9.707 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.105e-05/0.3361, allocations: 17.02 kB / 0.4971 GB, free: 9.703 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.3361, allocations: 3.938 kB / 0.4971 GB, free: 9.699 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.69e-05/0.3362, allocations: 65.09 kB / 0.4972 GB, free: 9.664 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.338e-06/0.3362, allocations: 7.812 kB / 0.4972 GB, free: 9.66 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.3362, allocations: 10.06 kB / 0.4972 GB, free: 9.656 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/0.3362, allocations: 5.016 kB / 0.4972 GB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.664e-05/0.3363, allocations: 13.39 kB / 0.4972 GB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.267e-06/0.3363, allocations: 0.8906 kB / 0.4972 GB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.064e-05/0.3364, allocations: 4.656 kB / 0.4972 GB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.893e-06/0.3364, allocations: 3.906 kB / 0.4972 GB, free: 9.652 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 () * 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 5.13e-05/0.3364, allocations: 104.7 kB / 0.4973 GB, free: 9.547 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.49e-05/0.3365, allocations: 51.08 kB / 0.4973 GB, free: 9.508 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.321e-05/0.3366, allocations: 12.36 kB / 0.4974 GB, free: 9.5 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.3366, allocations: 4 kB / 0.4974 GB, free: 9.496 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.3366, allocations: 3.719 kB / 0.4974 GB, free: 9.496 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.3366, allocations: 0.6562 kB / 0.4974 GB, free: 9.496 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001569/0.3368, allocations: 145.5 kB / 0.4975 GB, free: 9.336 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.3368, allocations: 0 / 0.4975 GB, free: 9.336 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.311e-05/0.3368, allocations: 10.22 kB / 0.4975 GB, free: 9.336 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.3368, allocations: 0 / 0.4975 GB, free: 9.336 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.024e-05/0.3369, allocations: 8.625 kB / 0.4975 GB, free: 9.332 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.3369, allocations: 0.75 kB / 0.4975 GB, free: 9.332 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.3369, allocations: 4 kB / 0.4975 GB, free: 9.328 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001363/0.337, allocations: 271.3 kB / 0.4978 GB, free: 9.074 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.194e-05/0.337, allocations: 77.91 kB / 0.4979 GB, free: 8.98 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.101e-05/0.3371, allocations: 4.766 kB / 0.4979 GB, free: 8.98 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001154/0.3372, allocations: 16.56 kB / 0.4979 GB, free: 8.969 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.639e-05/0.3372, allocations: 0.8438 kB / 0.4979 GB, free: 8.969 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.901e-06/0.3372, allocations: 4.703 kB / 0.4979 GB, free: 8.969 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.434e-05/0.3373, allocations: 84.03 kB / 0.498 GB, free: 8.895 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002649/0.3375, allocations: 7.562 kB / 0.498 GB, free: 8.895 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 () * 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 6.909e-05/0.3376, allocations: 99.48 kB / 0.4981 GB, free: 8.805 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 8.082e-05/0.3377, allocations: 31.02 kB / 0.4981 GB, free: 8.801 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3377, allocations: 6.062 kB / 0.4981 GB, free: 8.797 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.756e-05/0.3377, allocations: 4.594 kB / 0.4981 GB, free: 8.797 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000224/0.338, allocations: 20.58 kB / 0.4981 GB, free: 8.789 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002248/0.3382, allocations: 96.83 kB / 0.4982 GB, free: 8.695 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001459/0.3384, allocations: 0.7032 MB / 0.4989 GB, free: 7.992 MB / 330.7 MB Notification: Performance of SimCode: time 2.8e-07/0.3384, allocations: 4.125 kB / 0.4989 GB, free: 7.988 MB / 330.7 MB Notification: Performance of Templates: time 0.002224/0.3406, allocations: 0.4987 MB / 0.4994 GB, free: 7.926 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare.sim & ./Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare.pipe 2>&1)