Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002379/0.002378, allocations: 181 kB / 8.049 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.194/2.194, allocations: 205.3 MB / 213.8 MB, free: 13.77 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.00112/0.00112, allocations: 97.3 kB / 261.8 MB, free: 13.45 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.1102/0.1102, allocations: 12.58 MB / 322.3 MB, free: 0.8047 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.944e-05/1.961e-05, allocations: 4 kB / 378.9 MB, free: 75.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1046, allocations: 50.37 MB / 429.3 MB, free: 24.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4347/0.5393, allocations: 79.2 MB / 0.4966 GB, free: 11.93 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002532/0.5397, allocations: 72.08 kB / 0.4967 GB, free: 11.93 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009053/0.5487, allocations: 2.306 MB / 0.4989 GB, free: 11.51 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.5488, allocations: 0 / 0.4989 GB, free: 11.51 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.272e-05/0.5488, allocations: 3.844 kB / 0.4989 GB, free: 11.51 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0005664/0.5494, allocations: 404.6 kB / 0.4993 GB, free: 11.14 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.52e-05/0.5495, allocations: 7.688 kB / 0.4993 GB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.585e-05/0.5495, allocations: 18.62 kB / 0.4993 GB, free: 11.13 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002498/0.5498, allocations: 199.9 kB / 0.4995 GB, free: 10.92 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.695e-05/0.5498, allocations: 7.859 kB / 0.4995 GB, free: 10.92 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.556e-05/0.5499, allocations: 7.781 kB / 0.4995 GB, free: 10.92 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002128/0.5501, allocations: 59.03 kB / 0.4996 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004233/0.5505, allocations: 202.3 kB / 0.4998 GB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.748e-05/0.5505, allocations: 0 / 0.4998 GB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.785e-05/0.5506, allocations: 3.844 kB / 0.4998 GB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.109e-05/0.5506, allocations: 0 / 0.4998 GB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006515/0.5513, allocations: 0.5527 MB / 0.5003 GB, free: 10.33 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002186/0.5515, allocations: 129.9 kB / 0.5004 GB, free: 10.25 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001068/0.5516, allocations: 63.44 kB / 0.5005 GB, free: 10.22 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.417e-05/0.5517, allocations: 3.906 kB / 0.5005 GB, free: 10.22 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.327e-05/0.5517, allocations: 34.56 kB / 0.5005 GB, free: 10.18 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 2.675e-06/0.5517, allocations: 0 / 0.5005 GB, free: 10.18 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003163/0.552, allocations: 106.8 kB / 0.5006 GB, free: 10.13 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.147e-05/0.5521, allocations: 114.6 kB / 0.5007 GB, free: 10 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.887e-05/0.5522, allocations: 111.4 kB / 0.5009 GB, free: 9.906 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.381e-05/0.5522, allocations: 25.7 kB / 0.5009 GB, free: 9.875 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.344e-05/0.5523, allocations: 113.8 kB / 0.501 GB, free: 9.781 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.58e-05/0.5523, allocations: 30.3 kB / 0.501 GB, free: 9.762 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.384e-06/0.5523, allocations: 0 / 0.501 GB, free: 9.762 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.598e-05/0.5524, allocations: 320.4 kB / 0.5013 GB, free: 9.449 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.671e-05/0.5525, allocations: 22.59 kB / 0.5013 GB, free: 9.449 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001038/0.5526, allocations: 106.9 kB / 0.5014 GB, free: 9.328 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.116e-05/0.5527, allocations: 46.08 kB / 0.5015 GB, free: 9.316 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.556e-06/0.5527, allocations: 0 / 0.5015 GB, free: 9.316 MB / 330.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002834/0.553, allocations: 141.4 kB / 0.5016 GB, free: 9.262 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.03e-05/0.553, allocations: 11.58 kB / 0.5016 GB, free: 9.258 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.5531, allocations: 0 / 0.5016 GB, free: 9.258 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.267e-05/0.5531, allocations: 7.688 kB / 0.5016 GB, free: 9.258 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003194/0.5534, allocations: 48.98 kB / 0.5017 GB, free: 9.254 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.348e-06/0.5534, allocations: 3.625 kB / 0.5017 GB, free: 9.254 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001946/0.5536, allocations: 26.36 kB / 0.5017 GB, free: 9.242 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.738e-05/0.5537, allocations: 7.531 kB / 0.5017 GB, free: 9.242 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.838e-05/0.5538, allocations: 122.2 kB / 0.5018 GB, free: 9.125 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001721/0.5539, allocations: 73.91 kB / 0.5019 GB, free: 9.086 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.523e-05/0.554, allocations: 15.83 kB / 0.5019 GB, free: 9.082 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.902e-06/0.554, allocations: 3.719 kB / 0.5019 GB, free: 9.082 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.554, allocations: 3.516 kB / 0.5019 GB, free: 9.082 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.5541, allocations: 0 / 0.5019 GB, free: 9.082 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002741/0.5543, allocations: 173 kB / 0.5021 GB, free: 8.918 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.5544, allocations: 0 / 0.5021 GB, free: 8.918 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003042/0.5547, allocations: 45.62 kB / 0.5021 GB, free: 8.91 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.43e-06/0.5547, allocations: 0 / 0.5021 GB, free: 8.91 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.756e-05/0.5547, allocations: 3.969 kB / 0.5021 GB, free: 8.91 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.5547, allocations: 3.938 kB / 0.5021 GB, free: 8.906 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/0.5547, allocations: 3.953 kB / 0.5022 GB, free: 8.902 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003928/0.5551, allocations: 347.8 kB / 0.5025 GB, free: 8.648 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.654e-05/0.5552, allocations: 88.81 kB / 0.5026 GB, free: 8.547 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.958e-05/0.5552, allocations: 0 / 0.5026 GB, free: 8.547 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002213/0.5555, allocations: 11.23 kB / 0.5026 GB, free: 8.547 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.976e-05/0.5555, allocations: 11.22 kB / 0.5026 GB, free: 8.543 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.307e-05/0.5556, allocations: 3.75 kB / 0.5026 GB, free: 8.543 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.57e-05/0.5556, allocations: 90.97 kB / 0.5027 GB, free: 8.469 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.5556, allocations: 4.062 kB / 0.5027 GB, free: 8.465 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004776/0.5561, allocations: 33.64 kB / 0.5027 GB, free: 8.457 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 (14): * Single equations (assignments): 14 * 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.00014/0.5563, allocations: 90.81 kB / 0.5028 GB, free: 8.367 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002296/0.5565, allocations: 77.11 kB / 0.5029 GB, free: 8.359 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.5565, allocations: 3.844 kB / 0.5029 GB, free: 8.359 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.994e-05/0.5566, allocations: 19.03 kB / 0.5029 GB, free: 8.355 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004777/0.5571, allocations: 43.83 kB / 0.5029 GB, free: 8.348 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007331/0.5578, allocations: 289.8 kB / 0.5032 GB, free: 8.137 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001947/0.5581, allocations: 0.715 MB / 0.5039 GB, free: 7.441 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 7.108e-05/0.5581, allocations: 15.78 kB / 0.5039 GB, free: 7.434 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.162e-05/0.5582, allocations: 19.06 kB / 0.5039 GB, free: 7.426 MB / 330.7 MB Notification: Performance of SimCode: time 6.81e-07/0.5582, allocations: 4 kB / 0.504 GB, free: 7.422 MB / 330.7 MB Notification: Performance of Templates: time 0.004349/0.5626, allocations: 0.9573 MB / 0.5049 GB, free: 7.336 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches