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.001028/0.001028, allocations: 183.8 kB / 16.45 MB, free: 5.656 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.534/1.534, allocations: 205.4 MB / 222.6 MB, free: 9.102 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.0007138/0.0007137, allocations: 94.3 kB / 270.9 MB, free: 8.34 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.064/0.064, allocations: 12.6 MB / 331.8 MB, free: 11.36 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003652/0.0003652, allocations: 16 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06553/0.06591, allocations: 50.38 MB / 442.4 MB, free: 16.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare): time 0.001089/0.06703, allocations: 1.239 MB / 443.6 MB, free: 15.2 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004647/0.06751, allocations: 484 kB / 444.1 MB, free: 14.72 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.534e-05/0.06756, allocations: 4 kB / 444.1 MB, free: 14.71 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.181e-05/0.06758, allocations: 3.984 kB / 444.1 MB, free: 14.71 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.945e-05/0.06764, allocations: 3.938 kB / 444.1 MB, free: 14.71 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000205/0.06785, allocations: 35.91 kB / 444.1 MB, free: 14.67 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.729e-05/0.06791, allocations: 35.86 kB / 444.2 MB, free: 14.64 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.223e-05/0.06798, allocations: 15.98 kB / 444.2 MB, free: 14.62 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.778e-05/0.06805, allocations: 19.92 kB / 444.2 MB, free: 14.6 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.118e-05/0.0681, allocations: 11.92 kB / 444.2 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.285e-05/0.06811, allocations: 7.938 kB / 444.2 MB, free: 14.58 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.626e-06/0.06813, allocations: 3.938 kB / 444.2 MB, free: 14.58 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.165e-05/0.06814, allocations: 15.92 kB / 444.2 MB, free: 14.56 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.338e-05/0.06817, allocations: 25.7 kB / 444.3 MB, free: 14.53 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 4.864e-05/0.06823, allocations: 31.94 kB / 444.3 MB, free: 14.5 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.826e-06/0.06824, allocations: 0 / 444.3 MB, free: 14.5 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.06824, allocations: 4 kB / 444.3 MB, free: 14.5 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.816e-06/0.06825, allocations: 0 / 444.3 MB, free: 14.5 MB / 298.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.0002983/0.06855, allocations: 351.4 kB / 444.6 MB, free: 14.11 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.57e-05/0.06859, allocations: 12.03 kB / 444.6 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.31e-05/0.06861, allocations: 3.906 kB / 444.7 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001067/0.06873, allocations: 186.9 kB / 444.8 MB, free: 13.87 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.007e-06/0.06874, allocations: 0 / 444.8 MB, free: 13.87 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.937e-06/0.06876, allocations: 4 kB / 444.8 MB, free: 13.86 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002116/0.06897, allocations: 129.9 kB / 445 MB, free: 13.71 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.156e-06/0.06899, allocations: 4 kB / 445 MB, free: 13.71 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.947e-06/0.06901, allocations: 0 / 445 MB, free: 13.71 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.06902, allocations: 3.984 kB / 445 MB, free: 13.71 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.965e-05/0.0691, allocations: 31.92 kB / 445 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002122/0.06932, allocations: 266.7 kB / 445.3 MB, free: 13.36 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001512/0.06948, allocations: 160.8 kB / 445.4 MB, free: 13.16 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.134e-05/0.06955, allocations: 46.62 kB / 445.5 MB, free: 13.1 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.926e-05/0.06958, allocations: 7.969 kB / 445.5 MB, free: 13.09 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.1e-05/0.0696, allocations: 38.56 kB / 445.5 MB, free: 13.05 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.112e-06/0.0696, allocations: 0 / 445.5 MB, free: 13.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002272/0.06984, allocations: 93.52 kB / 445.6 MB, free: 12.95 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.571e-05/0.06988, allocations: 115 kB / 445.7 MB, free: 12.81 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.568e-05/0.06993, allocations: 117.8 kB / 445.8 MB, free: 12.69 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.945e-06/0.06995, allocations: 25.7 kB / 445.9 MB, free: 12.66 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.954e-05/0.06997, allocations: 88.14 kB / 445.9 MB, free: 12.57 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.133e-05/0.06999, allocations: 3.906 kB / 445.9 MB, free: 12.56 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.068e-06/0.07, allocations: 4 kB / 446 MB, free: 12.56 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.656e-05/0.07004, allocations: 322.8 kB / 446.3 MB, free: 12.23 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.513e-05/0.07009, allocations: 15.98 kB / 446.3 MB, free: 12.22 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.68e-05/0.07014, allocations: 44.3 kB / 446.3 MB, free: 12.16 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.904e-05/0.0702, allocations: 23.92 kB / 446.3 MB, free: 12.14 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.07021, allocations: 4 kB / 446.4 MB, free: 12.13 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001335/0.07035, allocations: 93.45 kB / 446.4 MB, free: 12.04 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.538e-06/0.07036, allocations: 8 kB / 446.5 MB, free: 12.03 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.607e-06/0.07037, allocations: 0 / 446.5 MB, free: 12.03 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.04e-05/0.07039, allocations: 4 kB / 446.5 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.442e-05/0.07046, allocations: 15.92 kB / 446.5 MB, free: 12.01 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.658e-06/0.07047, allocations: 0 / 446.5 MB, free: 12.01 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.573e-05/0.07052, allocations: 12.12 kB / 446.5 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.304e-06/0.07053, allocations: 4 kB / 446.5 MB, free: 11.99 MB / 298.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 4.977e-05/0.07059, allocations: 130.4 kB / 446.6 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.867e-05/0.07065, allocations: 49.61 kB / 446.7 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.401e-05/0.07068, allocations: 11.89 kB / 446.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.522e-06/0.07069, allocations: 0 / 446.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.0707, allocations: 0 / 446.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.0707, allocations: 4 kB / 446.7 MB, free: 11.78 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001101/0.07082, allocations: 173.5 kB / 446.8 MB, free: 11.56 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.07083, allocations: 288 / 446.8 MB, free: 11.56 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.349e-05/0.07089, allocations: 15.98 kB / 446.9 MB, free: 11.55 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.0709, allocations: 0 / 446.9 MB, free: 11.55 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.843e-06/0.07091, allocations: 4 kB / 446.9 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.07091, allocations: 0 / 446.9 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.07092, allocations: 0 / 446.9 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001381/0.07106, allocations: 197.1 kB / 447.1 MB, free: 11.33 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.753e-05/0.07109, allocations: 85.02 kB / 447.1 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.302e-05/0.07111, allocations: 0 / 447.1 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.706e-05/0.07118, allocations: 12.36 kB / 447.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.261e-05/0.07121, allocations: 0 / 447.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.659e-06/0.07122, allocations: 4 kB / 447.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.416e-05/0.07125, allocations: 95.2 kB / 447.3 MB, free: 11.12 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.07125, allocations: 0 / 447.3 MB, free: 11.12 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001969/0.07146, allocations: 8 kB / 447.3 MB, free: 11.11 MB / 298.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 5.224e-05/0.07151, allocations: 95.25 kB / 447.4 MB, free: 11.01 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001293/0.07165, allocations: 47.91 kB / 447.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.362e-06/0.07166, allocations: 0 / 447.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.094e-05/0.0717, allocations: 20.25 kB / 447.4 MB, free: 10.94 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002266/0.07194, allocations: 31.91 kB / 447.5 MB, free: 10.91 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002214/0.07217, allocations: 196.2 kB / 447.6 MB, free: 10.68 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.56e-05/0.07226, allocations: 0.6927 MB / 448.3 MB, free: 9.965 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.386e-05/0.07229, allocations: 15.42 kB / 448.3 MB, free: 9.949 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.0723, allocations: 0 / 448.3 MB, free: 9.949 MB / 298.7 MB Notification: Performance of Templates: time 0.001458/0.07376, allocations: 0.7489 MB / 449.1 MB, free: 9.203 MB / 298.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)