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.001751/0.001751, allocations: 181.7 kB / 13.23 MB, free: 2.086 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.897/1.897, allocations: 205.2 MB / 219 MB, free: 9.199 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.0009587/0.0009589, allocations: 93.02 kB / 267.1 MB, free: 9.266 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.1074/0.1074, allocations: 12.58 MB / 327.7 MB, free: 12.48 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.821e-05/3.824e-05, allocations: 0 / 386 MB, free: 69.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1153, allocations: 50.38 MB / 436.4 MB, free: 19.22 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4088/0.5242, allocations: 80.06 MB / 0.5043 GB, free: 11.92 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001734/0.5244, allocations: 76.14 kB / 0.5044 GB, free: 11.92 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006277/0.5307, allocations: 2.686 MB / 0.507 GB, free: 11.22 MB / 330.7 MB Notification: Performance of FrontEnd: time 7.62e-07/0.5307, allocations: 0 / 0.507 GB, free: 11.22 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.058e-05/0.5307, allocations: 3.875 kB / 0.507 GB, free: 11.22 MB / 330.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.0003968/0.5311, allocations: 419.8 kB / 0.5074 GB, free: 10.82 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.5311, allocations: 15.53 kB / 0.5074 GB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.778e-05/0.5312, allocations: 19.22 kB / 0.5075 GB, free: 10.81 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002065/0.5314, allocations: 206 kB / 0.5077 GB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.101e-05/0.5314, allocations: 11.67 kB / 0.5077 GB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.044e-05/0.5315, allocations: 18.12 kB / 0.5077 GB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003621/0.5318, allocations: 232 kB / 0.5079 GB, free: 10.47 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.5319, allocations: 3.938 kB / 0.5079 GB, free: 10.47 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.497e-05/0.5319, allocations: 6.969 kB / 0.5079 GB, free: 10.47 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-06/0.5319, allocations: 3.75 kB / 0.5079 GB, free: 10.47 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001168/0.532, allocations: 60.2 kB / 0.508 GB, free: 10.46 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004897/0.5325, allocations: 0.6011 MB / 0.5086 GB, free: 9.887 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002325/0.5328, allocations: 135.6 kB / 0.5087 GB, free: 9.805 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.417e-05/0.5329, allocations: 64.17 kB / 0.5088 GB, free: 9.777 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.502e-05/0.5329, allocations: 3.875 kB / 0.5088 GB, free: 9.777 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.459e-05/0.5329, allocations: 42.33 kB / 0.5088 GB, free: 9.73 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 1.563e-06/0.5329, allocations: 0 / 0.5088 GB, free: 9.73 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002377/0.5332, allocations: 123.5 kB / 0.5089 GB, free: 9.676 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.044e-05/0.5332, allocations: 110.6 kB / 0.509 GB, free: 9.547 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001198/0.5333, allocations: 146.4 kB / 0.5092 GB, free: 9.441 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.434e-05/0.5334, allocations: 29.14 kB / 0.5092 GB, free: 9.41 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.433e-05/0.5334, allocations: 112 kB / 0.5093 GB, free: 9.312 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.486e-05/0.5335, allocations: 34.36 kB / 0.5093 GB, free: 9.289 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.24e-06/0.5335, allocations: 0 / 0.5093 GB, free: 9.289 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.136e-05/0.5336, allocations: 324.8 kB / 0.5096 GB, free: 8.973 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.351e-05/0.5336, allocations: 27.06 kB / 0.5097 GB, free: 8.965 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.843e-05/0.5337, allocations: 120.3 kB / 0.5098 GB, free: 8.836 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.474e-05/0.5338, allocations: 49.67 kB / 0.5098 GB, free: 8.816 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.5338, allocations: 0 / 0.5098 GB, free: 8.816 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002015/0.534, allocations: 167.6 kB / 0.51 GB, free: 8.746 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.534, allocations: 7.688 kB / 0.51 GB, free: 8.746 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.534, allocations: 7.922 kB / 0.51 GB, free: 8.742 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.846e-05/0.5341, allocations: 3.875 kB / 0.51 GB, free: 8.742 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001557/0.5342, allocations: 50.12 kB / 0.5101 GB, free: 8.73 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.496e-05/0.5343, allocations: 11.77 kB / 0.5101 GB, free: 8.723 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001067/0.5344, allocations: 26.36 kB / 0.5101 GB, free: 8.711 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.565e-05/0.5344, allocations: 15.66 kB / 0.5101 GB, free: 8.707 MB / 330.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 () * 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 7.215e-05/0.5345, allocations: 112.3 kB / 0.5102 GB, free: 8.598 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001438/0.5346, allocations: 89.06 kB / 0.5103 GB, free: 8.551 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.758e-05/0.5347, allocations: 22.14 kB / 0.5103 GB, free: 8.543 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.5347, allocations: 7.797 kB / 0.5103 GB, free: 8.539 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.5347, allocations: 0 / 0.5103 GB, free: 8.539 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.271e-06/0.5347, allocations: 3.844 kB / 0.5103 GB, free: 8.539 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002557/0.535, allocations: 206.9 kB / 0.5105 GB, free: 8.328 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.535, allocations: 4 kB / 0.5105 GB, free: 8.324 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000201/0.5352, allocations: 46.31 kB / 0.5106 GB, free: 8.312 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.5352, allocations: 0 / 0.5106 GB, free: 8.312 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.535e-05/0.5353, allocations: 3.844 kB / 0.5106 GB, free: 8.312 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.5353, allocations: 192 / 0.5106 GB, free: 8.312 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.5353, allocations: 3.953 kB / 0.5106 GB, free: 8.309 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003194/0.5356, allocations: 379.3 kB / 0.5109 GB, free: 8.031 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.184e-05/0.5357, allocations: 104.5 kB / 0.511 GB, free: 7.922 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.181e-05/0.5357, allocations: 3.844 kB / 0.511 GB, free: 7.922 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001345/0.5358, allocations: 11.58 kB / 0.5111 GB, free: 7.918 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.674e-05/0.5359, allocations: 7.828 kB / 0.5111 GB, free: 7.914 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.424e-06/0.5359, allocations: 3.844 kB / 0.5111 GB, free: 7.914 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.507e-05/0.536, allocations: 117.8 kB / 0.5112 GB, free: 7.832 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.343e-06/0.536, allocations: 0 / 0.5112 GB, free: 7.832 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002951/0.5363, allocations: 41.81 kB / 0.5112 GB, free: 7.82 MB / 330.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 () * 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.0001253/0.5364, allocations: 98.09 kB / 0.5113 GB, free: 7.73 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001971/0.5366, allocations: 99.09 kB / 0.5114 GB, free: 7.715 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.113e-06/0.5366, allocations: 192 / 0.5114 GB, free: 7.715 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.434e-05/0.5367, allocations: 18.75 kB / 0.5114 GB, free: 7.711 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004044/0.5371, allocations: 54.42 kB / 0.5115 GB, free: 7.699 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005261/0.5376, allocations: 316.1 kB / 0.5118 GB, free: 7.457 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001949/0.5378, allocations: 0.7309 MB / 0.5125 GB, free: 6.738 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 5.138e-05/0.5379, allocations: 13.17 kB / 0.5125 GB, free: 6.73 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.772e-05/0.5379, allocations: 15.16 kB / 0.5125 GB, free: 6.723 MB / 330.7 MB Notification: Performance of SimCode: time 2.4e-07/0.5379, allocations: 0 / 0.5125 GB, free: 6.723 MB / 330.7 MB Notification: Performance of Templates: time 0.00332/0.5413, allocations: 1.168 MB / 0.5137 GB, free: 6.16 MB / 330.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