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.001023/0.001023, allocations: 182.3 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.94/1.94, allocations: 205.2 MB / 219 MB, free: 9.207 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.0008425/0.0008426, allocations: 86.42 kB / 267.1 MB, free: 9.273 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.108/0.108, allocations: 12.58 MB / 327.7 MB, free: 12.49 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.168e-05/4.172e-05, allocations: 4 kB / 386 MB, free: 69.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1187, allocations: 50.38 MB / 436.4 MB, free: 19.23 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4115/0.5302, allocations: 79.89 MB / 0.5042 GB, free: 11.84 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002092/0.5305, allocations: 75.41 kB / 0.5042 GB, free: 11.84 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005789/0.5363, allocations: 2.338 MB / 0.5065 GB, free: 11.33 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.023e-06/0.5363, allocations: 0 / 0.5065 GB, free: 11.33 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.366e-05/0.5363, allocations: 3.812 kB / 0.5065 GB, free: 11.33 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0004313/0.5368, allocations: 396.1 kB / 0.5069 GB, free: 10.95 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.5368, allocations: 7.875 kB / 0.5069 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.679e-05/0.5369, allocations: 19 kB / 0.5069 GB, free: 10.94 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001578/0.537, allocations: 198.4 kB / 0.5071 GB, free: 10.72 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.521e-05/0.5371, allocations: 15.8 kB / 0.5071 GB, free: 10.72 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.133e-05/0.5371, allocations: 15.56 kB / 0.5071 GB, free: 10.71 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003829/0.5375, allocations: 231.4 kB / 0.5074 GB, free: 10.6 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.5375, allocations: 0 / 0.5074 GB, free: 10.6 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.614e-05/0.5375, allocations: 7.781 kB / 0.5074 GB, free: 10.6 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.728e-06/0.5376, allocations: 3.844 kB / 0.5074 GB, free: 10.6 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001103/0.5377, allocations: 60.73 kB / 0.5074 GB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004874/0.5382, allocations: 0.5974 MB / 0.508 GB, free: 10.02 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002451/0.5384, allocations: 134.2 kB / 0.5081 GB, free: 9.934 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.582e-05/0.5385, allocations: 71.41 kB / 0.5082 GB, free: 9.898 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.397e-05/0.5385, allocations: 0 / 0.5082 GB, free: 9.898 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.773e-05/0.5386, allocations: 45.25 kB / 0.5082 GB, free: 9.852 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 1.062e-06/0.5386, allocations: 0 / 0.5082 GB, free: 9.852 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002461/0.5388, allocations: 122.9 kB / 0.5084 GB, free: 9.793 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.698e-05/0.5389, allocations: 113.9 kB / 0.5085 GB, free: 9.664 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.217e-05/0.539, allocations: 120.1 kB / 0.5086 GB, free: 9.566 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.199e-05/0.539, allocations: 25.7 kB / 0.5086 GB, free: 9.535 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.029e-05/0.539, allocations: 113.8 kB / 0.5087 GB, free: 9.434 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.104e-05/0.5391, allocations: 26.98 kB / 0.5087 GB, free: 9.414 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.392e-06/0.5391, allocations: 3.625 kB / 0.5088 GB, free: 9.414 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.737e-05/0.5391, allocations: 318.6 kB / 0.5091 GB, free: 9.102 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.354e-05/0.5392, allocations: 23.47 kB / 0.5091 GB, free: 9.098 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.734e-05/0.5393, allocations: 128.7 kB / 0.5092 GB, free: 8.961 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.163e-05/0.5393, allocations: 46.7 kB / 0.5092 GB, free: 8.945 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.5394, allocations: 0 / 0.5092 GB, free: 8.945 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001915/0.5396, allocations: 167.1 kB / 0.5094 GB, free: 8.875 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.5396, allocations: 15.67 kB / 0.5094 GB, free: 8.867 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.5396, allocations: 7.844 kB / 0.5094 GB, free: 8.863 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.514e-05/0.5396, allocations: 3.844 kB / 0.5094 GB, free: 8.863 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001504/0.5398, allocations: 46.58 kB / 0.5095 GB, free: 8.855 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.209e-05/0.5398, allocations: 11.86 kB / 0.5095 GB, free: 8.848 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.926e-05/0.5399, allocations: 23.06 kB / 0.5095 GB, free: 8.84 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.31e-05/0.5399, allocations: 7.688 kB / 0.5095 GB, free: 8.84 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 5.317e-05/0.54, allocations: 124.2 kB / 0.5096 GB, free: 8.723 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001244/0.5401, allocations: 93.2 kB / 0.5097 GB, free: 8.672 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.174e-05/0.5402, allocations: 22.92 kB / 0.5097 GB, free: 8.664 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.5402, allocations: 3.844 kB / 0.5097 GB, free: 8.664 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.5402, allocations: 0 / 0.5097 GB, free: 8.664 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.5402, allocations: 0 / 0.5097 GB, free: 8.664 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001984/0.5404, allocations: 206.3 kB / 0.5099 GB, free: 8.457 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.5404, allocations: 0 / 0.5099 GB, free: 8.457 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001677/0.5406, allocations: 42.5 kB / 0.51 GB, free: 8.445 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.5406, allocations: 4 kB / 0.51 GB, free: 8.441 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.201e-05/0.5406, allocations: 4.125 kB / 0.51 GB, free: 8.438 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.5406, allocations: 7.609 kB / 0.51 GB, free: 8.434 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.5406, allocations: 3.938 kB / 0.51 GB, free: 8.43 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002595/0.5409, allocations: 375.1 kB / 0.5104 GB, free: 8.156 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.643e-05/0.5409, allocations: 88.81 kB / 0.5104 GB, free: 8.055 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.923e-05/0.541, allocations: 3.062 kB / 0.5104 GB, free: 8.055 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001337/0.5411, allocations: 14.27 kB / 0.5105 GB, free: 8.051 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.62e-05/0.5411, allocations: 3.875 kB / 0.5105 GB, free: 8.051 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.564e-06/0.5412, allocations: 3.938 kB / 0.5105 GB, free: 8.051 MB / 330.7 MB Notification: Performance of sorting global known variables: time 3.655e-05/0.5412, allocations: 102 kB / 0.5106 GB, free: 7.969 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5412, allocations: 0 / 0.5106 GB, free: 7.969 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002762/0.5415, allocations: 32.5 kB / 0.5106 GB, free: 7.965 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 8.379e-05/0.5416, allocations: 98.59 kB / 0.5107 GB, free: 7.875 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001481/0.5417, allocations: 89.11 kB / 0.5108 GB, free: 7.863 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.5417, allocations: 0.9375 kB / 0.5108 GB, free: 7.863 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.863e-05/0.5418, allocations: 18.75 kB / 0.5108 GB, free: 7.859 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002943/0.5421, allocations: 62.52 kB / 0.5109 GB, free: 7.844 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004211/0.5425, allocations: 295.2 kB / 0.5111 GB, free: 7.617 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001362/0.5427, allocations: 0.7117 MB / 0.5118 GB, free: 6.906 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.43e-05/0.5427, allocations: 16.72 kB / 0.5118 GB, free: 6.898 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.624e-05/0.5427, allocations: 19.16 kB / 0.5119 GB, free: 6.887 MB / 330.7 MB Notification: Performance of SimCode: time 2.61e-07/0.5427, allocations: 0 / 0.5119 GB, free: 6.887 MB / 330.7 MB Notification: Performance of Templates: time 0.002899/0.5456, allocations: 1.034 MB / 0.5129 GB, free: 6.383 MB / 330.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