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.00105/0.00105, allocations: 180.5 kB / 8.05 MB, free: 1.023 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.527/1.527, allocations: 205.3 MB / 213.8 MB, free: 1.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001035/0.001035, allocations: 94.14 kB / 261.8 MB, free: 1.613 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.07486/0.07486, allocations: 12.6 MB / 322.3 MB, free: 15.19 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.724e-05/1.728e-05, allocations: 0 / 378.9 MB, free: 6.516 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2484/0.2484, allocations: 50.37 MB / 429.3 MB, free: 18.35 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09944/0.3479, allocations: 79.4 MB / 0.4968 GB, free: 2.836 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002534/0.3482, allocations: 75.95 kB / 0.4968 GB, free: 2.762 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007264/0.3555, allocations: 2.67 MB / 0.4995 GB, free: 96 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.3555, allocations: 0 / 0.4995 GB, free: 96 kB / 346.7 MB Notification: Performance of Transformations before backend: time 9.297e-06/0.3556, allocations: 4 kB / 0.4995 GB, free: 92 kB / 346.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.0005175/0.3561, allocations: 415.9 kB / 0.4999 GB, free: 15.64 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/0.3561, allocations: 15.97 kB / 0.4999 GB, free: 15.62 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.265e-05/0.3562, allocations: 23.7 kB / 0.4999 GB, free: 15.6 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002165/0.3564, allocations: 201.5 kB / 0.5001 GB, free: 15.37 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.336e-05/0.3564, allocations: 7.953 kB / 0.5001 GB, free: 15.36 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.302e-05/0.3565, allocations: 16 kB / 0.5001 GB, free: 15.34 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001737/0.3567, allocations: 59.98 kB / 0.5002 GB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003708/0.357, allocations: 210.6 kB / 0.5004 GB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.549e-05/0.3571, allocations: 7.938 kB / 0.5004 GB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.458e-05/0.3571, allocations: 0 / 0.5004 GB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.267e-06/0.3571, allocations: 4 kB / 0.5004 GB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000595/0.3577, allocations: 0.573 MB / 0.5009 GB, free: 14.41 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002524/0.358, allocations: 119.9 kB / 0.5011 GB, free: 14.26 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.268e-05/0.3581, allocations: 58.58 kB / 0.5011 GB, free: 14.2 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.672e-05/0.3581, allocations: 4 kB / 0.5011 GB, free: 14.19 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.63e-05/0.3581, allocations: 42.64 kB / 0.5012 GB, free: 14.14 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.132e-06/0.3581, allocations: 0 / 0.5012 GB, free: 14.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002543/0.3584, allocations: 113.4 kB / 0.5013 GB, free: 14.02 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.912e-05/0.3585, allocations: 106.8 kB / 0.5014 GB, free: 13.89 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001167/0.3586, allocations: 138.9 kB / 0.5015 GB, free: 13.75 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.578e-05/0.3586, allocations: 29.73 kB / 0.5015 GB, free: 13.72 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.313e-05/0.3587, allocations: 116.4 kB / 0.5016 GB, free: 13.6 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.462e-05/0.3587, allocations: 23.66 kB / 0.5017 GB, free: 13.58 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.55e-06/0.3587, allocations: 3.938 kB / 0.5017 GB, free: 13.57 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.3588, allocations: 322.8 kB / 0.502 GB, free: 13.25 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.032e-05/0.3589, allocations: 20.38 kB / 0.502 GB, free: 13.23 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.852e-05/0.359, allocations: 118.2 kB / 0.5021 GB, free: 13.06 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.204e-05/0.359, allocations: 39.98 kB / 0.5021 GB, free: 13.02 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3591, allocations: 0 / 0.5021 GB, free: 13.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001997/0.3593, allocations: 149.2 kB / 0.5023 GB, free: 12.87 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/0.3593, allocations: 8 kB / 0.5023 GB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.3593, allocations: 4 kB / 0.5023 GB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.3593, allocations: 4 kB / 0.5023 GB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001646/0.3595, allocations: 52.33 kB / 0.5023 GB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.316e-06/0.3595, allocations: 8 kB / 0.5024 GB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001003/0.3596, allocations: 23.83 kB / 0.5024 GB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.94e-05/0.3596, allocations: 12 kB / 0.5024 GB, free: 12.76 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 () * 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.942e-05/0.3597, allocations: 108.9 kB / 0.5025 GB, free: 12.65 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001302/0.3599, allocations: 89.47 kB / 0.5026 GB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.11e-05/0.3599, allocations: 20.61 kB / 0.5026 GB, free: 12.54 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.3599, allocations: 4 kB / 0.5026 GB, free: 12.54 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.36, allocations: 7.953 kB / 0.5026 GB, free: 12.53 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.36, allocations: 0 / 0.5026 GB, free: 12.53 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002193/0.3602, allocations: 186.1 kB / 0.5028 GB, free: 12.31 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.3602, allocations: 0 / 0.5028 GB, free: 12.31 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001727/0.3604, allocations: 35.98 kB / 0.5028 GB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.3604, allocations: 0 / 0.5028 GB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.447e-05/0.3604, allocations: 4 kB / 0.5028 GB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.076e-05/0.3604, allocations: 7.984 kB / 0.5028 GB, free: 12.26 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.3604, allocations: 0 / 0.5028 GB, free: 12.26 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003169/0.3608, allocations: 360 kB / 0.5032 GB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.525e-05/0.3608, allocations: 104.9 kB / 0.5033 GB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.108e-05/0.3609, allocations: 0 / 0.5033 GB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001319/0.361, allocations: 12.02 kB / 0.5033 GB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.578e-05/0.3611, allocations: 11.98 kB / 0.5033 GB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.907e-06/0.3611, allocations: 8 kB / 0.5033 GB, free: 11.73 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.594e-05/0.3611, allocations: 112.1 kB / 0.5034 GB, free: 11.62 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3612, allocations: 0 / 0.5034 GB, free: 11.62 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002851/0.3614, allocations: 23.94 kB / 0.5034 GB, free: 11.59 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 () * 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.0001084/0.3616, allocations: 110.9 kB / 0.5035 GB, free: 11.47 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001494/0.3617, allocations: 84.38 kB / 0.5036 GB, free: 11.39 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.3617, allocations: 4 kB / 0.5036 GB, free: 11.39 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.767e-05/0.3618, allocations: 19.94 kB / 0.5036 GB, free: 11.37 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000334/0.3621, allocations: 51.94 kB / 0.5037 GB, free: 11.32 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005126/0.3626, allocations: 311.8 kB / 0.504 GB, free: 10.98 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002728/0.3629, allocations: 0.7242 MB / 0.5047 GB, free: 10.23 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.773e-05/0.363, allocations: 9.219 kB / 0.5047 GB, free: 10.23 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.921e-05/0.363, allocations: 19.42 kB / 0.5047 GB, free: 10.21 MB / 362.7 MB Notification: Performance of SimCode: time 2.3e-07/0.363, allocations: 384 / 0.5047 GB, free: 10.21 MB / 362.7 MB Notification: Performance of Templates: time 0.003144/0.3661, allocations: 1.098 MB / 0.5058 GB, free: 9.121 MB / 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