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.001061/0.001061, allocations: 180.7 kB / 15.8 MB, free: 6.34 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.427/1.427, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.0008396/0.0008395, allocations: 102.8 kB / 270.3 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07598/0.07598, allocations: 12.59 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000386/0.0003861, allocations: 20.78 kB / 392 MB, free: 54.71 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1053, allocations: 50.37 MB / 442.4 MB, free: 10.9 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1101/0.2155, allocations: 78.23 MB / 0.5084 GB, free: 12.57 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000255/0.2158, allocations: 83.95 kB / 0.5085 GB, free: 12.48 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003765/0.2196, allocations: 1.346 MB / 0.5098 GB, free: 11.14 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.2196, allocations: 0 / 0.5098 GB, free: 11.14 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.266e-05/0.2196, allocations: 4 kB / 0.5098 GB, free: 11.13 MB / 362.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.0004424/0.2201, allocations: 367 kB / 0.5102 GB, free: 10.73 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.2201, allocations: 8.031 kB / 0.5102 GB, free: 10.72 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.896e-05/0.2202, allocations: 7.906 kB / 0.5102 GB, free: 10.71 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002008/0.2204, allocations: 186.8 kB / 0.5103 GB, free: 10.49 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.282e-05/0.2204, allocations: 3.953 kB / 0.5104 GB, free: 10.48 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.25e-05/0.2204, allocations: 4 kB / 0.5104 GB, free: 10.48 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002509/0.2207, allocations: 93.05 kB / 0.5104 GB, free: 10.37 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.2207, allocations: 4 kB / 0.5104 GB, free: 10.37 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.164e-05/0.2207, allocations: 0 / 0.5104 GB, free: 10.37 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.2207, allocations: 3.984 kB / 0.5105 GB, free: 10.36 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.065e-05/0.2208, allocations: 23.98 kB / 0.5105 GB, free: 10.34 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00036/0.2212, allocations: 269.7 kB / 0.5107 GB, free: 10.02 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.754e-05/0.2213, allocations: 45.22 kB / 0.5108 GB, free: 9.961 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.416e-05/0.2213, allocations: 0 / 0.5108 GB, free: 9.961 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.938e-05/0.2213, allocations: 30.56 kB / 0.5108 GB, free: 9.922 MB / 362.7 MB Notification: Performance of pre-optimization done (n=2): time 2.274e-06/0.2213, allocations: 4 kB / 0.5108 GB, free: 9.918 MB / 362.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002443/0.2216, allocations: 77.58 kB / 0.5109 GB, free: 9.836 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.932e-05/0.2216, allocations: 81.05 kB / 0.511 GB, free: 9.738 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001244/0.2218, allocations: 123.8 kB / 0.5111 GB, free: 9.609 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.337e-05/0.2218, allocations: 29.95 kB / 0.5111 GB, free: 9.574 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.492e-05/0.2219, allocations: 96.11 kB / 0.5112 GB, free: 9.477 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.719e-05/0.2219, allocations: 7.938 kB / 0.5112 GB, free: 9.469 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.186e-06/0.2219, allocations: 0 / 0.5112 GB, free: 9.469 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.222, allocations: 314.8 kB / 0.5115 GB, free: 9.152 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.987e-05/0.2221, allocations: 7.984 kB / 0.5115 GB, free: 9.145 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.052e-05/0.2221, allocations: 25.72 kB / 0.5115 GB, free: 9.113 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.201e-05/0.2222, allocations: 11.98 kB / 0.5115 GB, free: 9.102 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-06/0.2222, allocations: 3.953 kB / 0.5116 GB, free: 9.098 MB / 362.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001158/0.2223, allocations: 61.53 kB / 0.5116 GB, free: 9.031 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/0.2223, allocations: 8 kB / 0.5116 GB, free: 9.023 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.2223, allocations: 0 / 0.5116 GB, free: 9.023 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.164e-05/0.2223, allocations: 4.125 kB / 0.5116 GB, free: 9.02 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.903e-05/0.2224, allocations: 7.984 kB / 0.5116 GB, free: 9.012 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/0.2224, allocations: 4 kB / 0.5116 GB, free: 9.008 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.144e-05/0.2225, allocations: 0 / 0.5116 GB, free: 9.008 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.138e-05/0.2225, allocations: 7.938 kB / 0.5116 GB, free: 9 MB / 362.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.633e-05/0.2226, allocations: 121.6 kB / 0.5118 GB, free: 8.871 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.192e-05/0.2227, allocations: 49.48 kB / 0.5118 GB, free: 8.816 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.618e-05/0.2227, allocations: 11.91 kB / 0.5118 GB, free: 8.805 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.2227, allocations: 0 / 0.5118 GB, free: 8.805 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.2227, allocations: 4 kB / 0.5118 GB, free: 8.801 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.974e-06/0.2227, allocations: 0 / 0.5118 GB, free: 8.801 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001778/0.2229, allocations: 165.7 kB / 0.512 GB, free: 8.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.2229, allocations: 0 / 0.512 GB, free: 8.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.115e-05/0.223, allocations: 15.94 kB / 0.512 GB, free: 8.574 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.223, allocations: 0 / 0.512 GB, free: 8.574 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.833e-06/0.223, allocations: 0 / 0.512 GB, free: 8.574 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.223, allocations: 0 / 0.512 GB, free: 8.574 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.223, allocations: 0 / 0.512 GB, free: 8.574 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001932/0.2232, allocations: 185.9 kB / 0.5122 GB, free: 8.367 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.613e-05/0.2233, allocations: 93.08 kB / 0.5123 GB, free: 8.258 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.653e-05/0.2233, allocations: 0 / 0.5123 GB, free: 8.258 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.341e-05/0.2234, allocations: 8.031 kB / 0.5123 GB, free: 8.25 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.223e-05/0.2234, allocations: 0 / 0.5123 GB, free: 8.25 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.182e-06/0.2235, allocations: 4 kB / 0.5123 GB, free: 8.246 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.428e-05/0.2236, allocations: 108.7 kB / 0.5124 GB, free: 8.141 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2236, allocations: 0 / 0.5124 GB, free: 8.141 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002054/0.2238, allocations: 4 kB / 0.5124 GB, free: 8.137 MB / 362.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 (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.0001305/0.2239, allocations: 91.25 kB / 0.5125 GB, free: 8.039 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001339/0.2241, allocations: 27.98 kB / 0.5125 GB, free: 8.012 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2241, allocations: 0 / 0.5125 GB, free: 8.012 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.288e-05/0.2241, allocations: 15.92 kB / 0.5125 GB, free: 7.996 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002268/0.2244, allocations: 23.73 kB / 0.5125 GB, free: 7.977 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003259/0.2247, allocations: 173.9 kB / 0.5127 GB, free: 7.773 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002977/0.225, allocations: 0.6926 MB / 0.5134 GB, free: 7.055 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.192e-05/0.225, allocations: 7.906 kB / 0.5134 GB, free: 7.047 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.355e-05/0.2251, allocations: 7.438 kB / 0.5134 GB, free: 7.039 MB / 362.7 MB Notification: Performance of SimCode: time 2.1e-07/0.2251, allocations: 0 / 0.5134 GB, free: 7.039 MB / 362.7 MB Notification: Performance of Templates: time 0.002418/0.2275, allocations: 433.1 kB / 0.5138 GB, free: 6.621 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