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/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/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_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestClockedRealToSquare",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare,fileNamePrefix="Modelica_Synchronous_cpp_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.0008634/0.0008634, allocations: 177 kB / 16.77 MB, free: 4.93 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.133/1.133, allocations: 205.4 MB / 222.9 MB, free: 9.016 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.0006714/0.0006715, allocations: 85.38 kB / 271.3 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.05714/0.05714, allocations: 12.2 MB / 331.8 MB, free: 11.63 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003613/0.0003613, allocations: 20 kB / 392.2 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07507/0.07545, allocations: 50.28 MB / 442.5 MB, free: 16.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare): time 0.001386/0.07688, allocations: 1.243 MB / 443.7 MB, free: 15.29 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005792/0.07748, allocations: 464.1 kB / 444.2 MB, free: 14.83 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.478e-05/0.07757, allocations: 0 / 444.2 MB, free: 14.83 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.078e-05/0.07762, allocations: 3.938 kB / 444.2 MB, free: 14.83 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.425e-05/0.07769, allocations: 4 kB / 444.2 MB, free: 14.82 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002773/0.07798, allocations: 31.91 kB / 444.2 MB, free: 14.79 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.962e-05/0.07806, allocations: 31.86 kB / 444.3 MB, free: 14.76 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.492e-05/0.07815, allocations: 19.97 kB / 444.3 MB, free: 14.74 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.023e-05/0.07822, allocations: 27.92 kB / 444.3 MB, free: 14.71 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.813e-05/0.07828, allocations: 15.88 kB / 444.3 MB, free: 14.7 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.625e-05/0.0783, allocations: 4 kB / 444.3 MB, free: 14.7 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.054e-05/0.07832, allocations: 0 / 444.3 MB, free: 14.7 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.683e-05/0.07834, allocations: 7.922 kB / 444.3 MB, free: 14.69 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.102e-05/0.07839, allocations: 49.56 kB / 444.4 MB, free: 14.63 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.115e-05/0.07845, allocations: 19.95 kB / 444.4 MB, free: 14.61 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.194e-06/0.07847, allocations: 7.938 kB / 444.4 MB, free: 14.61 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.07847, allocations: 0 / 444.4 MB, free: 14.61 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.07848, allocations: 0 / 444.4 MB, free: 14.61 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.0003661/0.07885, allocations: 351.6 kB / 444.8 MB, free: 14.21 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/0.0789, allocations: 12.03 kB / 444.8 MB, free: 14.2 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.747e-05/0.07893, allocations: 38.73 kB / 444.8 MB, free: 14.16 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.344e-05/0.07896, allocations: 8.844 kB / 444.8 MB, free: 14.15 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000119/0.07908, allocations: 172.3 kB / 445 MB, free: 13.94 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.534e-06/0.0791, allocations: 8.312 kB / 445 MB, free: 13.93 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.114e-05/0.07912, allocations: 8.375 kB / 445 MB, free: 13.93 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002461/0.07937, allocations: 134 kB / 445.1 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.07938, allocations: 0 / 445.1 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.065e-06/0.0794, allocations: 0 / 445.1 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.07941, allocations: 7.984 kB / 445.1 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.048e-05/0.07949, allocations: 31.92 kB / 445.2 MB, free: 13.73 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002418/0.07974, allocations: 270.5 kB / 445.4 MB, free: 13.41 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001601/0.07991, allocations: 164.9 kB / 445.6 MB, free: 13.21 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.175e-05/0.07999, allocations: 42.62 kB / 445.6 MB, free: 13.16 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.08e-05/0.08001, allocations: 0 / 445.6 MB, free: 13.16 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.445e-05/0.08003, allocations: 38.48 kB / 445.7 MB, free: 13.11 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 8.92e-07/0.08004, allocations: 4 kB / 445.7 MB, free: 13.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002371/0.08028, allocations: 97.59 kB / 445.8 MB, free: 13 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.202e-05/0.08033, allocations: 106.8 kB / 445.9 MB, free: 12.88 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.273e-05/0.08039, allocations: 121.7 kB / 446 MB, free: 12.75 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.277e-06/0.08041, allocations: 25.95 kB / 446 MB, free: 12.71 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.369e-05/0.08044, allocations: 92.08 kB / 446.1 MB, free: 12.62 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.427e-05/0.08046, allocations: 11.91 kB / 446.1 MB, free: 12.61 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.897e-06/0.08047, allocations: 0 / 446.1 MB, free: 12.61 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.068e-05/0.08052, allocations: 322.8 kB / 446.4 MB, free: 12.29 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.331e-05/0.08057, allocations: 15.94 kB / 446.5 MB, free: 12.27 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.629e-05/0.08063, allocations: 48.28 kB / 446.5 MB, free: 12.21 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.154e-05/0.08072, allocations: 68.22 kB / 446.6 MB, free: 12.12 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.08073, allocations: 4 kB / 446.6 MB, free: 12.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000153/0.08089, allocations: 89.53 kB / 446.7 MB, free: 12.03 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.08091, allocations: 4 kB / 446.7 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.08092, allocations: 0 / 446.7 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.08094, allocations: 4 kB / 446.7 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.644e-05/0.08102, allocations: 8 kB / 446.7 MB, free: 12.01 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.08103, allocations: 4.109 kB / 446.7 MB, free: 12.01 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.351e-05/0.08108, allocations: 15.94 kB / 446.7 MB, free: 11.99 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.243e-06/0.08109, allocations: 4 kB / 446.7 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 5.417e-05/0.08115, allocations: 126.4 kB / 446.8 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.029e-05/0.08121, allocations: 49.59 kB / 446.9 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.653e-05/0.08125, allocations: 11.91 kB / 446.9 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.08125, allocations: 0 / 446.9 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.08126, allocations: 0 / 446.9 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.826e-06/0.08127, allocations: 4 kB / 446.9 MB, free: 11.78 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001196/0.0814, allocations: 173.6 kB / 447.1 MB, free: 11.56 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.0814, allocations: 3.984 kB / 447.1 MB, free: 11.56 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.204e-05/0.08146, allocations: 12 kB / 447.1 MB, free: 11.55 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.08147, allocations: 0 / 447.1 MB, free: 11.55 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.035e-06/0.08148, allocations: 4 kB / 447.1 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.08149, allocations: 0 / 447.1 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.08149, allocations: 3.938 kB / 447.1 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001431/0.08164, allocations: 193.1 kB / 447.3 MB, free: 11.33 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.797e-05/0.08167, allocations: 81.11 kB / 447.3 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.469e-05/0.08169, allocations: 4 kB / 447.3 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.436e-05/0.08176, allocations: 4 kB / 447.4 MB, free: 11.22 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.412e-05/0.08179, allocations: 0 / 447.4 MB, free: 11.22 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.942e-06/0.0818, allocations: 7.984 kB / 447.4 MB, free: 11.21 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.501e-05/0.08183, allocations: 95.59 kB / 447.5 MB, free: 11.12 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08183, allocations: 0 / 447.5 MB, free: 11.12 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002049/0.08204, allocations: 4 kB / 447.5 MB, free: 11.12 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 0.0003417/0.08239, allocations: 0.7455 MB / 448.2 MB, free: 10.34 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001215/0.08252, allocations: 51.89 kB / 448.3 MB, free: 10.29 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.08253, allocations: 3.938 kB / 448.3 MB, free: 10.29 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.873e-05/0.08257, allocations: 24.3 kB / 448.3 MB, free: 10.26 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002595/0.08284, allocations: 23.94 kB / 448.3 MB, free: 10.24 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005863/0.08344, allocations: 0.5334 MB / 448.8 MB, free: 9.637 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.488e-05/0.08354, allocations: 0.6895 MB / 449.5 MB, free: 8.922 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.522e-05/0.08359, allocations: 15.44 kB / 449.5 MB, free: 8.906 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.08359, allocations: 4 kB / 449.5 MB, free: 8.902 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.318/2.402, allocations: 0.9927 MB / 450.5 MB, free: 7.91 MB / 298.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestClockedRealToSquare_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestClockedRealToSquare.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare.pipe 2>&1)