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.003181/0.00318, allocations: 188.8 kB / 16.45 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.081/4.081, allocations: 205.4 MB / 222.6 MB, free: 13.84 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.001848/0.001848, allocations: 102.8 kB / 270.9 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.2605/0.2605, allocations: 12.61 MB / 331.8 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009269/0.0009272, allocations: 15.91 kB / 392 MB, free: 54.84 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1954/0.1964, allocations: 50.37 MB / 442.3 MB, free: 11.62 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare): time 0.007455/0.204, allocations: 1.246 MB / 443.6 MB, free: 10.36 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001723/0.2058, allocations: 464.3 kB / 444 MB, free: 9.898 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001581/0.206, allocations: 0 / 444 MB, free: 9.898 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.401e-05/0.2061, allocations: 11.88 kB / 444.1 MB, free: 9.887 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001337/0.2063, allocations: 7.984 kB / 444.1 MB, free: 9.879 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006104/0.2069, allocations: 35.84 kB / 444.1 MB, free: 9.844 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001514/0.2071, allocations: 23.97 kB / 444.1 MB, free: 9.82 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000164/0.2073, allocations: 15.97 kB / 444.1 MB, free: 9.805 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001496/0.2074, allocations: 19.92 kB / 444.2 MB, free: 9.785 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.968e-05/0.2075, allocations: 11.94 kB / 444.2 MB, free: 9.773 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.565e-05/0.2076, allocations: 0 / 444.2 MB, free: 9.773 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.185e-05/0.2076, allocations: 4 kB / 444.2 MB, free: 9.77 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.869e-05/0.2077, allocations: 15.91 kB / 444.2 MB, free: 9.754 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.251e-05/0.2078, allocations: 33.7 kB / 444.2 MB, free: 9.715 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001171/0.2079, allocations: 23.95 kB / 444.2 MB, free: 9.691 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.2079, allocations: 0 / 444.2 MB, free: 9.691 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.016e-06/0.2079, allocations: 0 / 444.2 MB, free: 9.691 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.907e-06/0.208, allocations: 0 / 444.2 MB, free: 9.691 MB / 282.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.0006511/0.2086, allocations: 355.9 kB / 444.6 MB, free: 9.297 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.87e-05/0.2087, allocations: 8.031 kB / 444.6 MB, free: 9.289 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.342e-05/0.2088, allocations: 11.94 kB / 444.6 MB, free: 9.277 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000277/0.2091, allocations: 182.9 kB / 444.8 MB, free: 9.059 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.062e-05/0.2092, allocations: 4 kB / 444.8 MB, free: 9.055 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.049e-05/0.2092, allocations: 8 kB / 444.8 MB, free: 9.047 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005918/0.2098, allocations: 129.9 kB / 444.9 MB, free: 8.898 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.887e-05/0.2099, allocations: 3.938 kB / 444.9 MB, free: 8.895 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.902e-05/0.2099, allocations: 0 / 444.9 MB, free: 8.895 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.306e-06/0.2099, allocations: 0 / 444.9 MB, free: 8.895 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000252/0.2102, allocations: 27.98 kB / 445 MB, free: 8.867 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005693/0.2108, allocations: 270.6 kB / 445.2 MB, free: 8.547 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004278/0.2113, allocations: 169 kB / 445.4 MB, free: 8.336 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.631e-05/0.2114, allocations: 0 / 445.4 MB, free: 8.336 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.465e-05/0.2114, allocations: 38.56 kB / 445.4 MB, free: 8.289 MB / 282.7 MB Notification: Performance of pre-optimization done (n=6): time 3.637e-06/0.2114, allocations: 0 / 445.4 MB, free: 8.289 MB / 282.7 MB Notification: Performance of matching and sorting (n=6): time 0.0006551/0.2121, allocations: 101.6 kB / 445.5 MB, free: 8.184 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001048/0.2123, allocations: 114.9 kB / 445.6 MB, free: 8.047 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001371/0.2124, allocations: 113.8 kB / 445.7 MB, free: 7.926 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.996e-05/0.2125, allocations: 25.7 kB / 445.8 MB, free: 7.895 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.201e-05/0.2125, allocations: 150.6 kB / 445.9 MB, free: 7.746 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.783e-05/0.2126, allocations: 11.91 kB / 445.9 MB, free: 7.734 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.194e-05/0.2126, allocations: 0 / 445.9 MB, free: 7.734 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.766e-05/0.2127, allocations: 318.8 kB / 446.2 MB, free: 7.414 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00014/0.2129, allocations: 16 kB / 446.3 MB, free: 7.398 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001434/0.2131, allocations: 48.28 kB / 446.3 MB, free: 7.336 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001642/0.2133, allocations: 27.92 kB / 446.3 MB, free: 7.309 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.2133, allocations: 0 / 446.3 MB, free: 7.309 MB / 282.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004761/0.2138, allocations: 81.61 kB / 446.4 MB, free: 7.223 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.319e-05/0.2139, allocations: 8 kB / 446.4 MB, free: 7.215 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/0.2139, allocations: 0 / 446.4 MB, free: 7.215 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.003e-05/0.2139, allocations: 4 kB / 446.4 MB, free: 7.211 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001877/0.2141, allocations: 15.92 kB / 446.4 MB, free: 7.195 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.327e-05/0.2142, allocations: 0 / 446.4 MB, free: 7.195 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001444/0.2143, allocations: 12.03 kB / 446.5 MB, free: 7.184 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.402e-05/0.2144, allocations: 11.94 kB / 446.5 MB, free: 7.172 MB / 282.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.0001555/0.2146, allocations: 125.5 kB / 446.6 MB, free: 7.039 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001787/0.2148, allocations: 45.69 kB / 446.6 MB, free: 6.988 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.285e-05/0.2149, allocations: 11.91 kB / 446.6 MB, free: 6.973 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.583e-06/0.2149, allocations: 3.938 kB / 446.6 MB, free: 6.969 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.091e-05/0.2149, allocations: 3.984 kB / 446.6 MB, free: 6.965 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.2149, allocations: 4 kB / 446.7 MB, free: 6.961 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003199/0.2153, allocations: 161.6 kB / 446.8 MB, free: 6.754 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.2153, allocations: 8 kB / 446.8 MB, free: 6.746 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001752/0.2155, allocations: 12 kB / 446.8 MB, free: 6.734 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.528e-06/0.2155, allocations: 384 / 446.8 MB, free: 6.734 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.296e-05/0.2156, allocations: 11.98 kB / 446.8 MB, free: 6.723 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.062e-06/0.2156, allocations: 0 / 446.8 MB, free: 6.723 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/0.2156, allocations: 0 / 446.8 MB, free: 6.723 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004722/0.2161, allocations: 220.4 kB / 447.1 MB, free: 6.473 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.5e-05/0.2162, allocations: 85.02 kB / 447.1 MB, free: 6.371 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.611e-05/0.2162, allocations: 0 / 447.1 MB, free: 6.371 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001847/0.2164, allocations: 4 kB / 447.1 MB, free: 6.367 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.779e-05/0.2165, allocations: 4.266 kB / 447.1 MB, free: 6.363 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.667e-05/0.2166, allocations: 8 kB / 447.2 MB, free: 6.355 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.911e-05/0.2167, allocations: 91.27 kB / 447.2 MB, free: 6.266 MB / 282.7 MB Notification: Performance of sort global known variables: time 9.92e-07/0.2167, allocations: 0 / 447.2 MB, free: 6.266 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000585/0.2173, allocations: 11.95 kB / 447.3 MB, free: 6.254 MB / 282.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.0001987/0.2175, allocations: 99.23 kB / 447.4 MB, free: 6.148 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004362/0.218, allocations: 44.11 kB / 447.4 MB, free: 6.105 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.192e-06/0.218, allocations: 4.062 kB / 447.4 MB, free: 6.102 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001301/0.2182, allocations: 15.92 kB / 447.4 MB, free: 6.086 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004273/0.2186, allocations: 23.78 kB / 447.4 MB, free: 6.066 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006723/0.2193, allocations: 212.2 kB / 447.6 MB, free: 5.824 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002143/0.2196, allocations: 0.6887 MB / 448.3 MB, free: 5.109 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.861e-05/0.2197, allocations: 11.42 kB / 448.3 MB, free: 5.098 MB / 282.7 MB Notification: Performance of SimCode: time 1.593e-06/0.2197, allocations: 0 / 448.3 MB, free: 5.098 MB / 282.7 MB Notification: Performance of Templates: time 0.004307/0.224, allocations: 0.747 MB / 449.1 MB, free: 4.355 MB / 282.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)