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/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.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/Complex 3.2.3+maint.om/package.mo): time 0.001379/0.001384, allocations: 174.2 kB / 16.8 MB, free: 5.012 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.29/1.29, allocations: 205.4 MB / 223 MB, free: 9.02 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.0007661/0.0007661, allocations: 86.36 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-master/package.mo): time 0.07198/0.07198, allocations: 12.59 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003328/0.0003329, allocations: 12 kB / 393.3 MB, free: 65.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08183/0.08218, allocations: 50.38 MB / 443.7 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked): time 0.001625/0.08386, allocations: 1.262 MB / 445 MB, free: 14.15 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007966/0.08469, allocations: 495.8 kB / 445.4 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001277/0.08484, allocations: 0 / 445.4 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.727e-05/0.0849, allocations: 3.938 kB / 445.4 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001424/0.08505, allocations: 8 kB / 445.5 MB, free: 13.65 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002805/0.08534, allocations: 47.89 kB / 445.5 MB, free: 13.6 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.874e-05/0.08544, allocations: 39.8 kB / 445.5 MB, free: 13.56 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001011/0.08555, allocations: 12 kB / 445.6 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.428e-05/0.08563, allocations: 19.91 kB / 445.6 MB, free: 13.53 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.093e-05/0.08569, allocations: 11.94 kB / 445.6 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.61e-05/0.08571, allocations: 0 / 445.6 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.172e-05/0.08573, allocations: 0 / 445.6 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.078e-05/0.08579, allocations: 11.92 kB / 445.6 MB, free: 13.51 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.938e-05/0.08583, allocations: 49.52 kB / 445.6 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.651e-05/0.08592, allocations: 35.94 kB / 445.7 MB, free: 13.42 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.08593, allocations: 0 / 445.7 MB, free: 13.42 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.08594, allocations: 3.938 kB / 445.7 MB, free: 13.41 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.977e-06/0.08594, allocations: 0 / 445.7 MB, free: 13.41 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0003834/0.08633, allocations: 359.5 kB / 446 MB, free: 13.02 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.08638, allocations: 12.03 kB / 446 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.366e-05/0.08642, allocations: 4.844 kB / 446 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001507/0.08658, allocations: 188.9 kB / 446.2 MB, free: 12.78 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.686e-06/0.08659, allocations: 8.359 kB / 446.2 MB, free: 12.77 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.667e-05/0.08662, allocations: 384 / 446.2 MB, free: 12.77 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002281/0.08685, allocations: 97.36 kB / 446.3 MB, free: 12.66 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.08687, allocations: 0 / 446.3 MB, free: 12.66 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.011e-05/0.08689, allocations: 0 / 446.3 MB, free: 12.66 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.726e-06/0.0869, allocations: 7.938 kB / 446.3 MB, free: 12.65 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.031e-05/0.08699, allocations: 27.92 kB / 446.4 MB, free: 12.62 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000258/0.08725, allocations: 261.7 kB / 446.6 MB, free: 12.31 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.177e-05/0.08734, allocations: 49.16 kB / 446.7 MB, free: 12.25 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.972e-05/0.08739, allocations: 29.7 kB / 446.7 MB, free: 12.21 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.523e-05/0.08743, allocations: 0 / 446.7 MB, free: 12.21 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.963e-05/0.08745, allocations: 34.56 kB / 446.7 MB, free: 12.17 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 1.002e-06/0.08746, allocations: 0 / 446.7 MB, free: 12.17 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002347/0.0877, allocations: 73.61 kB / 446.8 MB, free: 12.09 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.692e-05/0.08775, allocations: 77.11 kB / 446.9 MB, free: 12 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.524e-05/0.08785, allocations: 139.6 kB / 447 MB, free: 11.85 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.626e-06/0.08786, allocations: 29.7 kB / 447.1 MB, free: 11.82 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.111e-05/0.0879, allocations: 88.06 kB / 447.1 MB, free: 11.73 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.489e-05/0.08792, allocations: 12.25 kB / 447.1 MB, free: 11.71 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.496e-06/0.08793, allocations: 0 / 447.1 MB, free: 11.71 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.759e-05/0.08798, allocations: 314.8 kB / 447.5 MB, free: 11.4 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.008e-05/0.08803, allocations: 15.98 kB / 447.5 MB, free: 11.38 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.283e-05/0.08807, allocations: 17.72 kB / 447.5 MB, free: 11.36 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.12e-05/0.08815, allocations: 37.7 kB / 447.5 MB, free: 11.32 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.08816, allocations: 0 / 447.5 MB, free: 11.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001071/0.08827, allocations: 65.52 kB / 447.6 MB, free: 11.25 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.08829, allocations: 8 kB / 447.6 MB, free: 11.24 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.0883, allocations: 0 / 447.6 MB, free: 11.24 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.289e-05/0.08832, allocations: 4.062 kB / 447.6 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.902e-05/0.08839, allocations: 4 kB / 447.6 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.08841, allocations: 4 kB / 447.6 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.585e-05/0.08845, allocations: 3.984 kB / 447.6 MB, free: 11.22 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.562e-06/0.08846, allocations: 4 kB / 447.6 MB, free: 11.22 MB / 298.7 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.648e-05/0.08852, allocations: 117.8 kB / 447.7 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.073e-05/0.08858, allocations: 37.61 kB / 447.8 MB, free: 11.05 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.131e-05/0.08862, allocations: 19.84 kB / 447.8 MB, free: 11.03 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.08863, allocations: 4 kB / 447.8 MB, free: 11.03 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.08864, allocations: 0 / 447.8 MB, free: 11.03 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.08865, allocations: 0 / 447.8 MB, free: 11.03 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001358/0.08879, allocations: 169.5 kB / 448 MB, free: 10.81 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.0888, allocations: 4 kB / 448 MB, free: 10.81 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.686e-05/0.08885, allocations: 8 kB / 448 MB, free: 10.8 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.08886, allocations: 0 / 448 MB, free: 10.8 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.075e-06/0.08887, allocations: 7.984 kB / 448 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.08888, allocations: 0 / 448 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.08889, allocations: 7.938 kB / 448 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001264/0.08902, allocations: 156.3 kB / 448.1 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.686e-05/0.08907, allocations: 96.94 kB / 448.2 MB, free: 10.5 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.632e-05/0.0891, allocations: 0 / 448.2 MB, free: 10.5 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.654e-05/0.08918, allocations: 8.031 kB / 448.2 MB, free: 10.49 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.338e-05/0.08922, allocations: 3.984 kB / 448.2 MB, free: 10.49 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.048e-06/0.08923, allocations: 4 kB / 448.2 MB, free: 10.48 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.712e-05/0.08928, allocations: 109.9 kB / 448.4 MB, free: 10.38 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.08929, allocations: 0 / 448.4 MB, free: 10.38 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002027/0.0895, allocations: 4 kB / 448.4 MB, free: 10.38 MB / 298.7 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 8.097e-05/0.08958, allocations: 95.23 kB / 448.5 MB, free: 10.27 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001174/0.08971, allocations: 27.98 kB / 448.5 MB, free: 10.25 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.08972, allocations: 0 / 448.5 MB, free: 10.25 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.427e-05/0.08976, allocations: 8 kB / 448.5 MB, free: 10.24 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003575/0.09012, allocations: 27.89 kB / 448.5 MB, free: 10.21 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003027/0.09043, allocations: 215.1 kB / 448.7 MB, free: 9.965 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001194/0.09057, allocations: 0.6887 MB / 449.4 MB, free: 9.25 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.601e-05/0.0906, allocations: 7.438 kB / 449.4 MB, free: 9.242 MB / 298.7 MB Notification: Performance of SimCode: time 2.91e-07/0.0906, allocations: 0 / 449.4 MB, free: 9.242 MB / 298.7 MB Notification: Performance of Templates: time 0.001795/0.0924, allocations: 0.6832 MB / 450.1 MB, free: 8.559 MB / 298.7 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/jenkins1/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