Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001552/0.001551, allocations: 100.9 kB / 16.02 MB, free: 6.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001572/0.001572, allocations: 200.1 kB / 16.95 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.654/1.654, allocations: 205.1 MB / 222.8 MB, free: 12.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07603/0.07603, allocations: 12.59 MB / 282.7 MB, free: 15.64 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001744/0.001744, allocations: 87.88 kB / 343 MB, free: 3.305 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.325/0.3267, allocations: 49.37 MB / 392.4 MB, free: 49.2 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked): time 0.003674/0.3305, allocations: 1.609 MB / 394 MB, free: 48.09 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008674/0.3314, allocations: 0.4934 MB / 394.5 MB, free: 47.74 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.208e-05/0.3315, allocations: 5.719 kB / 394.5 MB, free: 47.74 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.519e-05/0.3315, allocations: 5.156 kB / 394.5 MB, free: 47.73 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001578/0.3317, allocations: 8.703 kB / 394.5 MB, free: 47.73 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000251/0.332, allocations: 35.53 kB / 394.5 MB, free: 47.71 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.891e-05/0.3321, allocations: 35.8 kB / 394.6 MB, free: 47.7 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.3322, allocations: 16.44 kB / 394.6 MB, free: 47.69 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.049e-05/0.3323, allocations: 26.05 kB / 394.6 MB, free: 47.67 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.791e-05/0.3323, allocations: 15.61 kB / 394.6 MB, free: 47.66 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.545e-05/0.3324, allocations: 6.75 kB / 394.6 MB, free: 47.66 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.307e-05/0.3324, allocations: 3.781 kB / 394.6 MB, free: 47.66 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.74e-05/0.3324, allocations: 13.09 kB / 394.6 MB, free: 47.65 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.029e-05/0.3325, allocations: 30.61 kB / 394.7 MB, free: 47.63 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001039/0.3326, allocations: 37.75 kB / 394.7 MB, free: 47.61 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.3326, allocations: 1.344 kB / 394.7 MB, free: 47.61 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3326, allocations: 0 / 394.7 MB, free: 47.61 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.3326, allocations: 0 / 394.7 MB, free: 47.61 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004354/0.333, allocations: 369.5 kB / 395.1 MB, free: 47.23 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.3331, allocations: 14.03 kB / 395.1 MB, free: 47.23 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.084e-05/0.3331, allocations: 8.219 kB / 395.1 MB, free: 47.23 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000171/0.3333, allocations: 196 kB / 395.3 MB, free: 47.01 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.046e-05/0.3333, allocations: 1.562 kB / 395.3 MB, free: 47.01 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.36e-05/0.3334, allocations: 2.531 kB / 395.3 MB, free: 47.01 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002499/0.3336, allocations: 95.08 kB / 395.4 MB, free: 46.93 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.3336, allocations: 4.516 kB / 395.4 MB, free: 46.93 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.068e-05/0.3336, allocations: 1.219 kB / 395.4 MB, free: 46.93 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.3337, allocations: 0 / 395.4 MB, free: 46.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.055e-05/0.3337, allocations: 19.3 kB / 395.4 MB, free: 46.92 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003106/0.3341, allocations: 262.9 kB / 395.7 MB, free: 46.63 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001015/0.3342, allocations: 50.41 kB / 395.7 MB, free: 46.57 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.603e-05/0.3342, allocations: 18.23 kB / 395.7 MB, free: 46.56 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.62e-05/0.3343, allocations: 4.641 kB / 395.7 MB, free: 46.55 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.632e-05/0.3343, allocations: 36.25 kB / 395.8 MB, free: 46.51 MB / 318.1 MB Notification: Performance of pre-optimization done (n=2): time 1.393e-06/0.3343, allocations: 0 / 395.8 MB, free: 46.51 MB / 318.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002821/0.3346, allocations: 71.92 kB / 395.8 MB, free: 46.46 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.476e-05/0.3347, allocations: 78.89 kB / 395.9 MB, free: 46.37 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000113/0.3348, allocations: 137 kB / 396 MB, free: 46.26 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.508e-06/0.3348, allocations: 25.7 kB / 396.1 MB, free: 46.23 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.181e-05/0.3349, allocations: 88.02 kB / 396.2 MB, free: 46.14 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.475e-05/0.3349, allocations: 4.422 kB / 396.2 MB, free: 46.14 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.857e-05/0.3349, allocations: 18.53 kB / 396.2 MB, free: 46.12 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.797e-05/0.335, allocations: 321.9 kB / 396.5 MB, free: 45.8 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.877e-05/0.335, allocations: 10.73 kB / 396.5 MB, free: 45.8 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.356e-05/0.335, allocations: 21 kB / 396.5 MB, free: 45.78 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.785e-05/0.3351, allocations: 28.86 kB / 396.5 MB, free: 45.76 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.215e-06/0.3351, allocations: 4.578 kB / 396.6 MB, free: 45.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001021/0.3352, allocations: 59.48 kB / 396.6 MB, free: 45.71 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.3353, allocations: 5.297 kB / 396.6 MB, free: 45.71 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.461e-06/0.3353, allocations: 1.094 kB / 396.6 MB, free: 45.71 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.3353, allocations: 5.156 kB / 396.6 MB, free: 45.71 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.958e-05/0.3354, allocations: 6.406 kB / 396.6 MB, free: 45.71 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.3354, allocations: 0 / 396.6 MB, free: 45.71 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.502e-05/0.3354, allocations: 4.031 kB / 396.6 MB, free: 45.71 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.542e-06/0.3354, allocations: 1.438 kB / 396.6 MB, free: 45.71 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.8e-05/0.3355, allocations: 124.3 kB / 396.8 MB, free: 45.58 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.722e-05/0.3355, allocations: 33.66 kB / 396.8 MB, free: 45.55 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.03e-05/0.3356, allocations: 21.16 kB / 396.8 MB, free: 45.54 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.3356, allocations: 0.9062 kB / 396.8 MB, free: 45.54 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.3356, allocations: 1.094 kB / 396.8 MB, free: 45.54 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.3356, allocations: 1.031 kB / 396.8 MB, free: 45.54 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000139/0.3357, allocations: 169.2 kB / 397 MB, free: 45.34 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.3358, allocations: 1.219 kB / 397 MB, free: 45.34 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.546e-05/0.3358, allocations: 14.66 kB / 397 MB, free: 45.33 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.3358, allocations: 0.5156 kB / 397 MB, free: 45.33 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.204e-06/0.3358, allocations: 1.219 kB / 397 MB, free: 45.33 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.3358, allocations: 5.656 kB / 397 MB, free: 45.32 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3358, allocations: 0 / 397 MB, free: 45.32 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001284/0.336, allocations: 162.2 kB / 397.2 MB, free: 45.17 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.113e-05/0.336, allocations: 100.8 kB / 397.3 MB, free: 45.06 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.552e-05/0.336, allocations: 1.219 kB / 397.3 MB, free: 45.06 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.344e-05/0.3361, allocations: 3.047 kB / 397.3 MB, free: 45.06 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.862e-05/0.3361, allocations: 6.438 kB / 397.3 MB, free: 45.06 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.869e-06/0.3362, allocations: 5.438 kB / 397.3 MB, free: 45.05 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.43e-05/0.3362, allocations: 107.7 kB / 397.4 MB, free: 44.97 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3362, allocations: 0 / 397.4 MB, free: 44.97 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000205/0.3364, allocations: 3.406 kB / 397.4 MB, free: 44.97 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 6.983e-05/0.3365, allocations: 101.1 kB / 397.5 MB, free: 44.88 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001193/0.3366, allocations: 18.73 kB / 397.5 MB, free: 44.88 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3366, allocations: 0 / 397.5 MB, free: 44.88 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.501e-05/0.3367, allocations: 17.48 kB / 397.5 MB, free: 44.87 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003479/0.337, allocations: 18.3 kB / 397.5 MB, free: 44.86 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002829/0.3373, allocations: 176 kB / 397.7 MB, free: 44.7 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001372/0.3375, allocations: 0.6943 MB / 398.4 MB, free: 44 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.697e-05/0.3375, allocations: 3.5 kB / 398.4 MB, free: 44 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.476e-05/0.3375, allocations: 9.234 kB / 398.4 MB, free: 43.99 MB / 318.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3375, allocations: 0 / 398.4 MB, free: 43.99 MB / 318.1 MB Notification: Performance of Templates: time 0.002362/0.3399, allocations: 461.4 kB / 398.9 MB, free: 43.87 MB / 318.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches