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: "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestClockedRealToSquare",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestClockedRealToSquare",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.001622/0.001621, allocations: 183.6 kB / 15.8 MB, free: 6.316 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.051/2.051, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.001121/0.00112, allocations: 94.86 kB / 270.3 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1031/0.1031, allocations: 12.6 MB / 331.1 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005446/0.0005449, allocations: 17.09 kB / 392.1 MB, free: 54.83 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09598/0.09656, allocations: 50.37 MB / 442.5 MB, free: 10.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1402/0.2368, allocations: 78.21 MB / 0.5085 GB, free: 12.53 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002501/0.2371, allocations: 59.98 kB / 0.5085 GB, free: 12.47 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00496/0.2421, allocations: 1.155 MB / 0.5097 GB, free: 11.31 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.365e-06/0.2422, allocations: 0 / 0.5097 GB, free: 11.31 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.566e-05/0.2422, allocations: 4 kB / 0.5097 GB, free: 11.31 MB / 362.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.0004911/0.2427, allocations: 363 kB / 0.51 GB, free: 10.91 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.82e-05/0.2428, allocations: 8.031 kB / 0.51 GB, free: 10.9 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.36e-05/0.2428, allocations: 42.55 kB / 0.5101 GB, free: 10.85 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.397e-05/0.2429, allocations: 7.906 kB / 0.5101 GB, free: 10.84 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002224/0.2431, allocations: 175 kB / 0.5102 GB, free: 10.63 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.547e-05/0.2431, allocations: 7.953 kB / 0.5102 GB, free: 10.62 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.743e-05/0.2432, allocations: 4 kB / 0.5102 GB, free: 10.62 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003868/0.2436, allocations: 129.8 kB / 0.5104 GB, free: 10.47 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.2436, allocations: 4 kB / 0.5104 GB, free: 10.46 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.145e-05/0.2436, allocations: 4 kB / 0.5104 GB, free: 10.46 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.2436, allocations: 0 / 0.5104 GB, free: 10.46 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001809/0.2438, allocations: 27.92 kB / 0.5104 GB, free: 10.43 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005309/0.2444, allocations: 353.9 kB / 0.5107 GB, free: 10.03 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003031/0.2447, allocations: 168.9 kB / 0.5109 GB, free: 9.82 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.382e-05/0.2447, allocations: 0 / 0.5109 GB, free: 9.82 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.497e-05/0.2448, allocations: 34.56 kB / 0.5109 GB, free: 9.777 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 1.453e-06/0.2448, allocations: 0 / 0.5109 GB, free: 9.777 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004327/0.2452, allocations: 101.6 kB / 0.511 GB, free: 9.672 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.849e-05/0.2453, allocations: 111 kB / 0.5111 GB, free: 9.539 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001123/0.2455, allocations: 108.9 kB / 0.5112 GB, free: 9.426 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.083e-05/0.2455, allocations: 29.7 kB / 0.5113 GB, free: 9.391 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.274e-05/0.2456, allocations: 84.14 kB / 0.5114 GB, free: 9.305 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.413e-05/0.2456, allocations: 7.906 kB / 0.5114 GB, free: 9.297 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.031e-06/0.2456, allocations: 0 / 0.5114 GB, free: 9.297 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.2458, allocations: 322.8 kB / 0.5117 GB, free: 8.973 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.881e-05/0.2459, allocations: 15.98 kB / 0.5117 GB, free: 8.957 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001048/0.246, allocations: 56.27 kB / 0.5117 GB, free: 8.887 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.725e-05/0.2461, allocations: 16 kB / 0.5118 GB, free: 8.871 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.2461, allocations: 0 / 0.5118 GB, free: 8.871 MB / 362.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002722/0.2464, allocations: 97.45 kB / 0.5118 GB, free: 8.77 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/0.2464, allocations: 7.984 kB / 0.5119 GB, free: 8.762 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.2464, allocations: 0 / 0.5119 GB, free: 8.762 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.927e-05/0.2465, allocations: 4 kB / 0.5119 GB, free: 8.758 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001132/0.2466, allocations: 11.94 kB / 0.5119 GB, free: 8.746 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.919e-06/0.2466, allocations: 3.938 kB / 0.5119 GB, free: 8.742 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.678e-05/0.2467, allocations: 12.11 kB / 0.5119 GB, free: 8.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.491e-05/0.2467, allocations: 4 kB / 0.5119 GB, free: 8.727 MB / 362.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 0.0001166/0.2469, allocations: 125.5 kB / 0.512 GB, free: 8.594 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001272/0.247, allocations: 45.69 kB / 0.512 GB, free: 8.543 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.662e-05/0.2471, allocations: 11.91 kB / 0.5121 GB, free: 8.523 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.546e-06/0.2471, allocations: 0 / 0.5121 GB, free: 8.523 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.607e-06/0.2471, allocations: 4 kB / 0.5121 GB, free: 8.52 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.2471, allocations: 288 / 0.5121 GB, free: 8.52 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002981/0.2474, allocations: 173.5 kB / 0.5122 GB, free: 8.301 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.2474, allocations: 4 kB / 0.5122 GB, free: 8.297 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001026/0.2475, allocations: 15.92 kB / 0.5122 GB, free: 8.281 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.2476, allocations: 0 / 0.5122 GB, free: 8.281 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.558e-05/0.2476, allocations: 7.984 kB / 0.5123 GB, free: 8.273 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.03e-05/0.2476, allocations: 4.375 kB / 0.5123 GB, free: 8.27 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.2476, allocations: 0 / 0.5123 GB, free: 8.27 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003706/0.248, allocations: 279.1 kB / 0.5125 GB, free: 7.965 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.85e-05/0.2481, allocations: 85.02 kB / 0.5126 GB, free: 7.863 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.647e-05/0.2481, allocations: 7.922 kB / 0.5126 GB, free: 7.855 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001429/0.2483, allocations: 11.94 kB / 0.5126 GB, free: 7.844 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.764e-05/0.2483, allocations: 0 / 0.5126 GB, free: 7.844 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.055e-06/0.2483, allocations: 8 kB / 0.5126 GB, free: 7.836 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.183e-05/0.2484, allocations: 91.27 kB / 0.5127 GB, free: 7.746 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.2484, allocations: 0 / 0.5127 GB, free: 7.746 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000349/0.2488, allocations: 8 kB / 0.5127 GB, free: 7.738 MB / 362.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.0008836/0.2497, allocations: 0.9706 MB / 0.5137 GB, free: 6.73 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000246/0.2499, allocations: 48.16 kB / 0.5137 GB, free: 6.684 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.25, allocations: 4.062 kB / 0.5137 GB, free: 6.68 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.79e-05/0.25, allocations: 12 kB / 0.5137 GB, free: 6.668 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003125/0.2504, allocations: 31.72 kB / 0.5138 GB, free: 6.641 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001526/0.2519, allocations: 1.1 MB / 0.5148 GB, free: 5.465 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003485/0.2523, allocations: 0.6926 MB / 0.5155 GB, free: 4.746 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.741e-05/0.2524, allocations: 4 kB / 0.5155 GB, free: 4.742 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.555e-05/0.2524, allocations: 15.42 kB / 0.5155 GB, free: 4.727 MB / 362.7 MB Notification: Performance of SimCode: time 1.984e-06/0.2524, allocations: 4 kB / 0.5155 GB, free: 4.723 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02343/0.2759, allocations: 1.316 MB / 0.5168 GB, free: 3.422 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003083/0.2763, allocations: 211.7 kB / 0.517 GB, free: 3.172 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.483/2.759, allocations: 0 / 0.517 GB, free: 3.172 MB / 362.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestClockedRealToSquare_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestClockedRealToSquare.fmu > Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare.pipe 2>&1)