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.00122/0.00122, allocations: 172.8 kB / 8.043 MB, free: 1.031 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.467/1.467, allocations: 205.3 MB / 213.8 MB, free: 1.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007691/0.0007694, allocations: 82.16 kB / 261.8 MB, free: 1.617 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.06654/0.06654, allocations: 12.6 MB / 322.3 MB, free: 15.19 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.218e-05/1.22e-05, allocations: 4 kB / 378.9 MB, free: 6.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2116/0.2117, allocations: 50.37 MB / 429.3 MB, free: 18.34 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08934/0.301, allocations: 77.47 MB / 0.4949 GB, free: 4.766 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002765/0.3014, allocations: 83.94 kB / 0.495 GB, free: 4.684 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003395/0.3048, allocations: 1.333 MB / 0.4963 GB, free: 3.352 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.273e-06/0.3048, allocations: 4 kB / 0.4963 GB, free: 3.348 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.877e-06/0.3048, allocations: 4 kB / 0.4963 GB, free: 3.344 MB / 346.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.0003164/0.3051, allocations: 350.4 kB / 0.4966 GB, free: 2.957 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.41e-05/0.3052, allocations: 8.031 kB / 0.4966 GB, free: 2.949 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.802e-05/0.3052, allocations: 7.906 kB / 0.4966 GB, free: 2.941 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001657/0.3054, allocations: 182.9 kB / 0.4968 GB, free: 2.723 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.068e-05/0.3054, allocations: 15.83 kB / 0.4968 GB, free: 2.707 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.195e-06/0.3054, allocations: 0 / 0.4968 GB, free: 2.707 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.014e-05/0.3055, allocations: 16 kB / 0.4968 GB, free: 2.691 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000136/0.3056, allocations: 77.06 kB / 0.4969 GB, free: 2.598 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.203e-06/0.3056, allocations: 0 / 0.4969 GB, free: 2.598 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.484e-06/0.3057, allocations: 0 / 0.4969 GB, free: 2.598 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.176e-06/0.3057, allocations: 4 kB / 0.4969 GB, free: 2.594 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002794/0.3059, allocations: 250.3 kB / 0.4972 GB, free: 2.309 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.974e-05/0.306, allocations: 37.28 kB / 0.4972 GB, free: 2.254 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.423e-05/0.306, allocations: 17.64 kB / 0.4972 GB, free: 2.23 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.674e-05/0.3061, allocations: 3.984 kB / 0.4972 GB, free: 2.227 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.673e-05/0.3061, allocations: 38.56 kB / 0.4973 GB, free: 2.18 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.3061, allocations: 0 / 0.4973 GB, free: 2.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001202/0.3062, allocations: 45.61 kB / 0.4973 GB, free: 2.129 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.703e-05/0.3063, allocations: 81.05 kB / 0.4974 GB, free: 2.031 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.614e-05/0.3064, allocations: 125.2 kB / 0.4975 GB, free: 1.898 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.096e-05/0.3064, allocations: 25.7 kB / 0.4975 GB, free: 1.867 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.292e-05/0.3064, allocations: 88.2 kB / 0.4976 GB, free: 1.777 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.091e-05/0.3064, allocations: 7.844 kB / 0.4976 GB, free: 1.77 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.755e-06/0.3065, allocations: 0 / 0.4976 GB, free: 1.77 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.405e-05/0.3066, allocations: 318.8 kB / 0.4979 GB, free: 1.449 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.261e-05/0.3066, allocations: 4 kB / 0.4979 GB, free: 1.445 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.499e-05/0.3066, allocations: 13.72 kB / 0.4979 GB, free: 1.426 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.531e-05/0.3066, allocations: 4 kB / 0.4979 GB, free: 1.422 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.3066, allocations: 4.062 kB / 0.4979 GB, free: 1.418 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.269e-05/0.3067, allocations: 49.58 kB / 0.498 GB, free: 1.363 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.008e-05/0.3067, allocations: 8 kB / 0.498 GB, free: 1.355 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.3067, allocations: 0 / 0.498 GB, free: 1.355 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.157e-06/0.3067, allocations: 0 / 0.498 GB, free: 1.355 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.217e-05/0.3068, allocations: 4 kB / 0.498 GB, free: 1.352 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.802e-06/0.3068, allocations: 4 kB / 0.498 GB, free: 1.348 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.202e-05/0.3068, allocations: 0 / 0.498 GB, free: 1.348 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.1e-05/0.3069, allocations: 11.98 kB / 0.498 GB, free: 1.336 MB / 346.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.643e-05/0.3069, allocations: 105 kB / 0.4981 GB, free: 1.227 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.279e-05/0.307, allocations: 41.56 kB / 0.4982 GB, free: 1.18 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.404e-05/0.307, allocations: 7.969 kB / 0.4982 GB, free: 1.172 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.307, allocations: 4 kB / 0.4982 GB, free: 1.168 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.307, allocations: 0 / 0.4982 GB, free: 1.168 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.566e-06/0.307, allocations: 3.984 kB / 0.4982 GB, free: 1.164 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001324/0.3072, allocations: 142.2 kB / 0.4983 GB, free: 0.9883 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.3072, allocations: 0 / 0.4983 GB, free: 0.9883 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.691e-05/0.3072, allocations: 19.95 kB / 0.4983 GB, free: 0.9688 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.3072, allocations: 3.938 kB / 0.4983 GB, free: 0.9648 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.843e-06/0.3073, allocations: 3.953 kB / 0.4983 GB, free: 0.9609 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.3073, allocations: 0 / 0.4983 GB, free: 0.9609 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.3073, allocations: 0 / 0.4983 GB, free: 0.9609 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001079/0.3074, allocations: 158 kB / 0.4985 GB, free: 0.7812 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.097e-05/0.3074, allocations: 97.03 kB / 0.4986 GB, free: 0.668 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.449e-05/0.3075, allocations: 3.953 kB / 0.4986 GB, free: 0.6641 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.93e-05/0.3075, allocations: 4 kB / 0.4986 GB, free: 0.6602 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.351e-05/0.3076, allocations: 0 / 0.4986 GB, free: 0.6602 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.096e-06/0.3076, allocations: 0 / 0.4986 GB, free: 0.6602 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.028e-05/0.3076, allocations: 104.7 kB / 0.4987 GB, free: 0.5586 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.402e-06/0.3077, allocations: 0 / 0.4987 GB, free: 0.5586 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001923/0.3078, allocations: 7.938 kB / 0.4987 GB, free: 0.5508 MB / 346.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 () * 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 (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 7.313e-05/0.3079, allocations: 103.2 kB / 0.4988 GB, free: 452 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 5.507e-05/0.308, allocations: 12 kB / 0.4988 GB, free: 440 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.308, allocations: 0 / 0.4988 GB, free: 440 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.151e-05/0.308, allocations: 4 kB / 0.4988 GB, free: 436 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001864/0.3082, allocations: 11.41 kB / 0.4988 GB, free: 428 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001949/0.3084, allocations: 88.84 kB / 0.4989 GB, free: 312 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002435/0.3087, allocations: 0.7004 MB / 0.4996 GB, free: 15.58 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.696e-05/0.3087, allocations: 7.984 kB / 0.4996 GB, free: 15.57 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.999e-05/0.3087, allocations: 7.438 kB / 0.4996 GB, free: 15.56 MB / 362.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3087, allocations: 0 / 0.4996 GB, free: 15.56 MB / 362.7 MB Notification: Performance of Templates: time 0.001911/0.3106, allocations: 399.4 kB / 0.5 GB, free: 15.18 MB / 362.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/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