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.001043/0.001043, allocations: 175.5 kB / 15.82 MB, free: 6.305 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.59/1.59, allocations: 205.4 MB / 221.9 MB, free: 13.77 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007275/0.0007276, allocations: 90.3 kB / 270.3 MB, free: 13.3 MB / 234.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07224/0.07224, allocations: 12.6 MB / 331.2 MB, free: 10.3 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0003985/0.0003991, allocations: 12.97 kB / 392.1 MB, free: 54.8 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08358/0.084, allocations: 50.38 MB / 442.5 MB, free: 10.85 MB / 282.8 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToSquare): time 0.001402/0.08545, allocations: 1.236 MB / 443.7 MB, free: 9.602 MB / 282.8 MB Notification: Performance of NFInst.instExpressions: time 0.0005982/0.08608, allocations: 488.4 kB / 444.2 MB, free: 9.117 MB / 282.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.056e-05/0.08615, allocations: 0 / 444.2 MB, free: 9.117 MB / 282.8 MB Notification: Performance of NFTyping.typeComponents: time 1.716e-05/0.08618, allocations: 0 / 444.2 MB, free: 9.117 MB / 282.8 MB Notification: Performance of NFTyping.typeBindings: time 5.87e-05/0.08624, allocations: 3.938 kB / 444.2 MB, free: 9.113 MB / 282.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002807/0.08653, allocations: 41.39 kB / 444.3 MB, free: 9.074 MB / 282.8 MB Notification: Performance of NFFlatten.flatten: time 7.983e-05/0.08662, allocations: 39.86 kB / 444.3 MB, free: 9.035 MB / 282.8 MB Notification: Performance of NFFlatten.resolveConnections: time 9.725e-05/0.08672, allocations: 11.97 kB / 444.3 MB, free: 9.023 MB / 282.8 MB Notification: Performance of NFEvalConstants.evaluate: time 6.988e-05/0.0868, allocations: 15.94 kB / 444.3 MB, free: 9.008 MB / 282.8 MB Notification: Performance of NFSimplifyModel.simplify: time 5.937e-05/0.08687, allocations: 15.92 kB / 444.3 MB, free: 8.992 MB / 282.8 MB Notification: Performance of NFPackage.collectConstants: time 1.594e-05/0.08689, allocations: 4 kB / 444.3 MB, free: 8.988 MB / 282.8 MB Notification: Performance of NFFlatten.collectFunctions: time 1.123e-05/0.08691, allocations: 0 / 444.3 MB, free: 8.988 MB / 282.8 MB Notification: Performance of NFScalarize.scalarize: time 1.382e-05/0.08693, allocations: 11.94 kB / 444.4 MB, free: 8.977 MB / 282.8 MB Notification: Performance of NFVerifyModel.verify: time 2.49e-05/0.08696, allocations: 25.7 kB / 444.4 MB, free: 8.945 MB / 282.8 MB Notification: Performance of NFConvertDAE.convert: time 6.556e-05/0.08703, allocations: 32.48 kB / 444.4 MB, free: 8.914 MB / 282.8 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.08704, allocations: 0 / 444.4 MB, free: 8.914 MB / 282.8 MB Notification: Performance of FrontEnd: time 1.533e-06/0.08705, allocations: 0 / 444.4 MB, free: 8.914 MB / 282.8 MB Notification: Performance of Transformations before backend: time 5.551e-06/0.08706, allocations: 4 kB / 444.4 MB, free: 8.91 MB / 282.8 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.0003907/0.08746, allocations: 347.5 kB / 444.8 MB, free: 8.523 MB / 282.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.0875, allocations: 16.02 kB / 444.8 MB, free: 8.508 MB / 282.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.798e-05/0.08757, allocations: 34.56 kB / 444.8 MB, free: 8.465 MB / 282.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.593e-05/0.0876, allocations: 7.906 kB / 444.8 MB, free: 8.457 MB / 282.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001454/0.08775, allocations: 186.9 kB / 445 MB, free: 8.234 MB / 282.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.063e-05/0.08777, allocations: 4 kB / 445 MB, free: 8.23 MB / 282.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.287e-05/0.08779, allocations: 4 kB / 445 MB, free: 8.227 MB / 282.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002695/0.08807, allocations: 129.9 kB / 445.1 MB, free: 8.078 MB / 282.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.08808, allocations: 0 / 445.1 MB, free: 8.078 MB / 282.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.023e-05/0.0881, allocations: 0 / 445.1 MB, free: 8.078 MB / 282.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.08811, allocations: 11.88 kB / 445.1 MB, free: 8.066 MB / 282.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.687e-05/0.0882, allocations: 27.92 kB / 445.2 MB, free: 8.039 MB / 282.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002985/0.08851, allocations: 274.6 kB / 445.4 MB, free: 7.715 MB / 282.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002055/0.08873, allocations: 164.9 kB / 445.6 MB, free: 7.508 MB / 282.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.939e-05/0.08881, allocations: 42.58 kB / 445.6 MB, free: 7.457 MB / 282.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.122e-05/0.08884, allocations: 3.984 kB / 445.6 MB, free: 7.453 MB / 282.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.396e-05/0.08885, allocations: 34.56 kB / 445.7 MB, free: 7.41 MB / 282.8 MB Notification: Performance of pre-optimization done (n=6): time 1.503e-06/0.08886, allocations: 0 / 445.7 MB, free: 7.41 MB / 282.8 MB Notification: Performance of matching and sorting (n=6): time 0.0002647/0.08913, allocations: 105.5 kB / 445.8 MB, free: 7.301 MB / 282.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.259e-05/0.08919, allocations: 106.8 kB / 445.9 MB, free: 7.172 MB / 282.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.428e-05/0.08926, allocations: 113.8 kB / 446 MB, free: 7.051 MB / 282.8 MB Notification: Performance of collectPreVariables (initialization): time 9.518e-06/0.08928, allocations: 25.7 kB / 446 MB, free: 7.02 MB / 282.8 MB Notification: Performance of collectInitialEqns (initialization): time 2.739e-05/0.08931, allocations: 84.39 kB / 446.1 MB, free: 6.934 MB / 282.8 MB Notification: Performance of collectInitialBindings (initialization): time 1.354e-05/0.08933, allocations: 11.91 kB / 446.1 MB, free: 6.922 MB / 282.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.296e-06/0.08934, allocations: 0 / 446.1 MB, free: 6.922 MB / 282.8 MB Notification: Performance of setup shared object (initialization): time 4.927e-05/0.0894, allocations: 322.8 kB / 446.4 MB, free: 6.598 MB / 282.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.834e-05/0.08945, allocations: 19.98 kB / 446.4 MB, free: 6.578 MB / 282.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.214e-05/0.08951, allocations: 48.27 kB / 446.5 MB, free: 6.516 MB / 282.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.288e-05/0.08957, allocations: 20 kB / 446.5 MB, free: 6.496 MB / 282.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.08958, allocations: 3.938 kB / 446.5 MB, free: 6.492 MB / 282.8 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001375/0.08972, allocations: 89.61 kB / 446.6 MB, free: 6.398 MB / 282.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/0.08975, allocations: 8.031 kB / 446.6 MB, free: 6.391 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/0.08976, allocations: 4 kB / 446.6 MB, free: 6.387 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/0.08977, allocations: 0 / 446.6 MB, free: 6.387 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.904e-05/0.08985, allocations: 15.92 kB / 446.6 MB, free: 6.371 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.08986, allocations: 4 kB / 446.6 MB, free: 6.367 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.688e-05/0.08991, allocations: 11.94 kB / 446.6 MB, free: 6.355 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.526e-06/0.08993, allocations: 4 kB / 446.7 MB, free: 6.352 MB / 282.8 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.71e-05/0.08999, allocations: 126.2 kB / 446.8 MB, free: 6.219 MB / 282.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.424e-05/0.09006, allocations: 53.59 kB / 446.8 MB, free: 6.16 MB / 282.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.79e-05/0.09009, allocations: 11.89 kB / 446.8 MB, free: 6.145 MB / 282.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.0901, allocations: 4 kB / 446.8 MB, free: 6.141 MB / 282.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.09011, allocations: 7.875 kB / 446.8 MB, free: 6.133 MB / 282.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-06/0.09012, allocations: 0 / 446.8 MB, free: 6.133 MB / 282.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001281/0.09025, allocations: 169.6 kB / 447 MB, free: 5.918 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.09026, allocations: 3.938 kB / 447 MB, free: 5.914 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.456e-05/0.09032, allocations: 15.98 kB / 447 MB, free: 5.898 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.09033, allocations: 0 / 447 MB, free: 5.898 MB / 282.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.745e-06/0.09034, allocations: 0 / 447 MB, free: 5.898 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.09035, allocations: 4 kB / 447 MB, free: 5.895 MB / 282.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.09035, allocations: 4 kB / 447 MB, free: 5.891 MB / 282.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001489/0.09051, allocations: 189.1 kB / 447.2 MB, free: 5.684 MB / 282.8 MB Notification: Performance of postOpt removeConstants (simulation): time 1.924e-05/0.09054, allocations: 81.02 kB / 447.3 MB, free: 5.586 MB / 282.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.679e-05/0.09056, allocations: 11.98 kB / 447.3 MB, free: 5.574 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.578e-05/0.09063, allocations: 0 / 447.3 MB, free: 5.574 MB / 282.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.001e-05/0.09067, allocations: 4 kB / 447.3 MB, free: 5.57 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.967e-06/0.09068, allocations: 0 / 447.3 MB, free: 5.57 MB / 282.8 MB Notification: Performance of sorting global known variables: time 2.747e-05/0.09071, allocations: 91.27 kB / 447.4 MB, free: 5.48 MB / 282.8 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09071, allocations: 0 / 447.4 MB, free: 5.48 MB / 282.8 MB Notification: Performance of remove unused functions: time 0.0002028/0.09092, allocations: 12 kB / 447.4 MB, free: 5.469 MB / 282.8 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.0003927/0.09132, allocations: 0.7413 MB / 448.2 MB, free: 4.695 MB / 282.8 MB Notification: Performance of simCode: created initialization part: time 0.0001457/0.09148, allocations: 51.97 kB / 448.2 MB, free: 4.645 MB / 282.8 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.09149, allocations: 0 / 448.2 MB, free: 4.645 MB / 282.8 MB Notification: Performance of simCode: created simulation system equations: time 5.652e-05/0.09155, allocations: 12 kB / 448.2 MB, free: 4.633 MB / 282.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002749/0.09183, allocations: 31.7 kB / 448.3 MB, free: 4.605 MB / 282.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007066/0.09255, allocations: 0.5078 MB / 448.8 MB, free: 4.035 MB / 282.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001185/0.09268, allocations: 0.6887 MB / 449.5 MB, free: 3.32 MB / 282.8 MB Notification: Performance of simCode: alias equations: time 2.878e-05/0.09271, allocations: 7.938 kB / 449.5 MB, free: 3.312 MB / 282.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.862e-05/0.09276, allocations: 15.44 kB / 449.5 MB, free: 3.297 MB / 282.8 MB Notification: Performance of SimCode: time 2.11e-07/0.09276, allocations: 4 kB / 449.5 MB, free: 3.293 MB / 282.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01034/0.1031, allocations: 1.334 MB / 450.8 MB, free: 1.973 MB / 282.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001183/0.1033, allocations: 212.3 kB / 451 MB, free: 1.73 MB / 282.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.509/1.612, allocations: 4 kB / 451 MB, free: 1.727 MB / 282.8 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)