Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001044/0.001044, allocations: 180.1 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.593/1.593, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.0009425/0.0009425, allocations: 90.86 kB / 270.3 MB, free: 13.37 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.07227/0.07227, allocations: 12.6 MB / 331.1 MB, free: 10.32 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004073/0.0004074, allocations: 10.91 kB / 392 MB, free: 54.87 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1049, allocations: 50.38 MB / 442.4 MB, free: 10.98 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1074/0.2123, allocations: 80.15 MB / 0.5103 GB, free: 10.73 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002284/0.2126, allocations: 75.95 kB / 0.5103 GB, free: 10.65 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007257/0.2199, allocations: 2.701 MB / 0.513 GB, free: 7.949 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.364e-06/0.2199, allocations: 0 / 0.513 GB, free: 7.949 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.309e-05/0.2199, allocations: 4 kB / 0.513 GB, free: 7.945 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0005687/0.2205, allocations: 434.9 kB / 0.5134 GB, free: 7.473 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.2206, allocations: 8.031 kB / 0.5134 GB, free: 7.465 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.392e-05/0.2206, allocations: 23.8 kB / 0.5134 GB, free: 7.441 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002301/0.2208, allocations: 210.7 kB / 0.5136 GB, free: 7.195 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.709e-05/0.2209, allocations: 11.95 kB / 0.5136 GB, free: 7.184 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.41e-05/0.2209, allocations: 12 kB / 0.5137 GB, free: 7.172 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005083/0.2214, allocations: 258.5 kB / 0.5139 GB, free: 6.895 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.497e-05/0.2215, allocations: 8 kB / 0.5139 GB, free: 6.887 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.495e-05/0.2215, allocations: 0 / 0.5139 GB, free: 6.887 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.2215, allocations: 4 kB / 0.5139 GB, free: 6.883 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002676/0.2218, allocations: 99.88 kB / 0.514 GB, free: 6.785 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006384/0.2224, allocations: 0.6037 MB / 0.5146 GB, free: 6.105 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003418/0.2228, allocations: 155.9 kB / 0.5147 GB, free: 5.926 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.52e-05/0.2228, allocations: 7.938 kB / 0.5148 GB, free: 5.918 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.419e-05/0.2228, allocations: 42.59 kB / 0.5148 GB, free: 5.867 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.162e-06/0.2228, allocations: 0 / 0.5148 GB, free: 5.867 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005185/0.2234, allocations: 197.4 kB / 0.515 GB, free: 5.668 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.071e-05/0.2234, allocations: 114.8 kB / 0.5151 GB, free: 5.531 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001256/0.2236, allocations: 145.3 kB / 0.5152 GB, free: 5.383 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.64e-05/0.2236, allocations: 25.7 kB / 0.5153 GB, free: 5.352 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.127e-05/0.2237, allocations: 116.4 kB / 0.5154 GB, free: 5.234 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.578e-05/0.2237, allocations: 31.77 kB / 0.5154 GB, free: 5.203 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.37e-06/0.2237, allocations: 4.375 kB / 0.5154 GB, free: 5.199 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001095/0.2238, allocations: 326.8 kB / 0.5157 GB, free: 4.871 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001225/0.224, allocations: 40.34 kB / 0.5158 GB, free: 4.828 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001706/0.2241, allocations: 138.7 kB / 0.5159 GB, free: 4.645 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001358/0.2243, allocations: 71.84 kB / 0.516 GB, free: 4.574 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.2243, allocations: 4 kB / 0.516 GB, free: 4.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003637/0.2247, allocations: 201.2 kB / 0.5161 GB, free: 4.367 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.2247, allocations: 4 kB / 0.5162 GB, free: 4.363 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/0.2247, allocations: 4 kB / 0.5162 GB, free: 4.359 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.934e-05/0.2247, allocations: 7.953 kB / 0.5162 GB, free: 4.352 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001633/0.2249, allocations: 51.91 kB / 0.5162 GB, free: 4.301 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.829e-06/0.2249, allocations: 4.469 kB / 0.5162 GB, free: 4.297 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001096/0.225, allocations: 31.83 kB / 0.5162 GB, free: 4.266 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.558e-05/0.2251, allocations: 8 kB / 0.5163 GB, free: 4.258 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.0001232/0.2252, allocations: 129.8 kB / 0.5164 GB, free: 4.121 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001571/0.2253, allocations: 93.44 kB / 0.5165 GB, free: 4.023 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.509e-05/0.2255, allocations: 20.7 kB / 0.5165 GB, free: 4 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.672e-06/0.2255, allocations: 7.953 kB / 0.5165 GB, free: 3.992 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.2255, allocations: 0 / 0.5165 GB, free: 3.992 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.2255, allocations: 4 kB / 0.5165 GB, free: 3.988 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002999/0.2258, allocations: 213.5 kB / 0.5167 GB, free: 3.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.2258, allocations: 4 kB / 0.5167 GB, free: 3.727 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001817/0.226, allocations: 35.92 kB / 0.5167 GB, free: 3.691 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.826e-06/0.226, allocations: 0 / 0.5167 GB, free: 3.691 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.775e-05/0.226, allocations: 7.984 kB / 0.5167 GB, free: 3.684 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.226, allocations: 0 / 0.5167 GB, free: 3.684 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.226, allocations: 3.953 kB / 0.5168 GB, free: 3.68 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005751/0.2266, allocations: 422.8 kB / 0.5172 GB, free: 3.234 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.871e-05/0.2267, allocations: 108.9 kB / 0.5173 GB, free: 3.109 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.502e-05/0.2268, allocations: 3.953 kB / 0.5173 GB, free: 3.105 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001389/0.2269, allocations: 15.98 kB / 0.5173 GB, free: 3.09 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.99e-05/0.227, allocations: 7.938 kB / 0.5173 GB, free: 3.082 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.536e-06/0.227, allocations: 4 kB / 0.5173 GB, free: 3.078 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.908e-05/0.2271, allocations: 119.3 kB / 0.5174 GB, free: 2.961 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2271, allocations: 0 / 0.5174 GB, free: 2.961 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00031/0.2274, allocations: 32 kB / 0.5174 GB, free: 2.93 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.0001689/0.2276, allocations: 103.2 kB / 0.5175 GB, free: 2.82 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003847/0.228, allocations: 132.4 kB / 0.5177 GB, free: 2.691 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.228, allocations: 3.938 kB / 0.5177 GB, free: 2.688 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001236/0.2281, allocations: 35.91 kB / 0.5177 GB, free: 2.652 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003802/0.2285, allocations: 60.72 kB / 0.5178 GB, free: 2.594 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007482/0.2293, allocations: 0.5054 MB / 0.5182 GB, free: 2.055 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003157/0.2296, allocations: 0.7323 MB / 0.519 GB, free: 1.297 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.927e-05/0.2296, allocations: 5.438 kB / 0.519 GB, free: 1.289 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.358e-05/0.2297, allocations: 19.44 kB / 0.519 GB, free: 1.27 MB / 362.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2297, allocations: 0 / 0.519 GB, free: 1.27 MB / 362.7 MB Notification: Performance of Templates: time 0.003721/0.2334, allocations: 1.157 MB / 0.5201 GB, free: 128 kB / 362.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches