Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001503/0.001503, allocations: 180.2 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.532/1.532, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.0009047/0.0009047, allocations: 82.88 kB / 270.3 MB, free: 13.36 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.08243/0.08243, allocations: 12.6 MB / 331.1 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004806/0.0004806, allocations: 10.91 kB / 392 MB, free: 54.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09959/0.1001, allocations: 50.37 MB / 442.4 MB, free: 10.96 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1113/0.2115, allocations: 79.98 MB / 0.5101 GB, free: 10.86 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002904/0.2118, allocations: 67.97 kB / 0.5102 GB, free: 10.8 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006665/0.2185, allocations: 2.364 MB / 0.5125 GB, free: 8.43 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.405e-06/0.2186, allocations: 0 / 0.5125 GB, free: 8.43 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.379e-05/0.2186, allocations: 8 kB / 0.5125 GB, free: 8.422 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0005696/0.2192, allocations: 410.9 kB / 0.5129 GB, free: 7.973 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.2192, allocations: 8.031 kB / 0.5129 GB, free: 7.965 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.907e-05/0.2193, allocations: 15.81 kB / 0.5129 GB, free: 7.949 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002307/0.2195, allocations: 199.1 kB / 0.5131 GB, free: 7.715 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.93e-05/0.2195, allocations: 11.95 kB / 0.5131 GB, free: 7.703 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.727e-05/0.2196, allocations: 19.91 kB / 0.5131 GB, free: 7.684 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004924/0.2201, allocations: 250.6 kB / 0.5134 GB, free: 7.414 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.537e-05/0.2201, allocations: 0 / 0.5134 GB, free: 7.414 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.255e-05/0.2201, allocations: 8 kB / 0.5134 GB, free: 7.406 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.2202, allocations: 4 kB / 0.5134 GB, free: 7.402 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002497/0.2204, allocations: 103.8 kB / 0.5135 GB, free: 7.301 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006641/0.2211, allocations: 0.5921 MB / 0.514 GB, free: 6.633 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003453/0.2214, allocations: 151.7 kB / 0.5142 GB, free: 6.457 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.233e-05/0.2215, allocations: 8.125 kB / 0.5142 GB, free: 6.449 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.87e-05/0.2215, allocations: 40.05 kB / 0.5142 GB, free: 6.402 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.483e-06/0.2215, allocations: 0 / 0.5142 GB, free: 6.402 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005463/0.2221, allocations: 205.5 kB / 0.5144 GB, free: 6.195 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.169e-05/0.2222, allocations: 106.8 kB / 0.5145 GB, free: 6.066 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.638e-05/0.2223, allocations: 121.2 kB / 0.5146 GB, free: 5.938 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.819e-05/0.2223, allocations: 29.7 kB / 0.5147 GB, free: 5.902 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.907e-05/0.2224, allocations: 120 kB / 0.5148 GB, free: 5.781 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.024e-05/0.2224, allocations: 28.02 kB / 0.5148 GB, free: 5.754 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.622e-06/0.2224, allocations: 4 kB / 0.5148 GB, free: 5.75 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001099/0.2225, allocations: 326.9 kB / 0.5151 GB, free: 5.422 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001153/0.2227, allocations: 40.34 kB / 0.5152 GB, free: 5.379 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001606/0.2228, allocations: 146.1 kB / 0.5153 GB, free: 5.191 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001361/0.223, allocations: 63.91 kB / 0.5154 GB, free: 5.129 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.223, allocations: 0 / 0.5154 GB, free: 5.129 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.00036/0.2234, allocations: 201.6 kB / 0.5156 GB, free: 4.926 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/0.2234, allocations: 8 kB / 0.5156 GB, free: 4.918 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.918e-06/0.2234, allocations: 7.953 kB / 0.5156 GB, free: 4.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/0.2234, allocations: 4 kB / 0.5156 GB, free: 4.906 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001608/0.2236, allocations: 47.91 kB / 0.5156 GB, free: 4.859 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.23e-05/0.2236, allocations: 8 kB / 0.5156 GB, free: 4.852 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001126/0.2237, allocations: 27.83 kB / 0.5157 GB, free: 4.824 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.337e-05/0.2238, allocations: 12.12 kB / 0.5157 GB, free: 4.812 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 0.0001132/0.2239, allocations: 133.6 kB / 0.5158 GB, free: 4.672 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001504/0.224, allocations: 89.44 kB / 0.5159 GB, free: 4.578 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001155/0.2242, allocations: 20.7 kB / 0.5159 GB, free: 4.555 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.2242, allocations: 3.953 kB / 0.5159 GB, free: 4.551 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.2242, allocations: 0 / 0.5159 GB, free: 4.551 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.2242, allocations: 4 kB / 0.5159 GB, free: 4.547 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002647/0.2245, allocations: 201.5 kB / 0.5161 GB, free: 4.301 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.2245, allocations: 0 / 0.5161 GB, free: 4.301 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001864/0.2247, allocations: 43.91 kB / 0.5161 GB, free: 4.258 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.065e-06/0.2247, allocations: 4 kB / 0.5161 GB, free: 4.254 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.54e-05/0.2247, allocations: 4 kB / 0.5162 GB, free: 4.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.2247, allocations: 4 kB / 0.5162 GB, free: 4.246 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/0.2247, allocations: 3.953 kB / 0.5162 GB, free: 4.242 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005905/0.2253, allocations: 415 kB / 0.5166 GB, free: 3.805 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.824e-05/0.2254, allocations: 97.05 kB / 0.5166 GB, free: 3.691 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.582e-05/0.2254, allocations: 4 kB / 0.5167 GB, free: 3.688 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001363/0.2256, allocations: 11.98 kB / 0.5167 GB, free: 3.676 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.632e-05/0.2256, allocations: 7.984 kB / 0.5167 GB, free: 3.668 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.054e-05/0.2256, allocations: 11.94 kB / 0.5167 GB, free: 3.656 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.278e-05/0.2257, allocations: 95.27 kB / 0.5168 GB, free: 3.562 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.7e-07/0.2258, allocations: 0 / 0.5168 GB, free: 3.562 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003128/0.2261, allocations: 27.94 kB / 0.5168 GB, free: 3.535 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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.0001277/0.2262, allocations: 107.2 kB / 0.5169 GB, free: 3.422 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003343/0.2265, allocations: 133.8 kB / 0.517 GB, free: 3.293 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.2266, allocations: 0 / 0.517 GB, free: 3.293 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.933e-05/0.2267, allocations: 39.91 kB / 0.5171 GB, free: 3.254 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003675/0.227, allocations: 49.77 kB / 0.5171 GB, free: 3.207 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007135/0.2278, allocations: 485.7 kB / 0.5176 GB, free: 2.703 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002704/0.2281, allocations: 0.7128 MB / 0.5183 GB, free: 1.965 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.562e-05/0.2281, allocations: 13.08 kB / 0.5183 GB, free: 1.953 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.173e-05/0.2281, allocations: 15.44 kB / 0.5183 GB, free: 1.938 MB / 362.7 MB Notification: Performance of SimCode: time 2e-07/0.2281, allocations: 0 / 0.5183 GB, free: 1.938 MB / 362.7 MB Notification: Performance of Templates: time 0.003256/0.2314, allocations: 1.035 MB / 0.5193 GB, free: 0.9141 MB / 362.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches