Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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_cpp_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_cpp_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.002162/0.002162, allocations: 177.8 kB / 8.403 MB, free: 0.6719 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.139/2.139, allocations: 205.3 MB / 214.1 MB, free: 1.664 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.001103/0.001103, allocations: 86.22 kB / 262.1 MB, free: 1.609 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.1044/0.1044, allocations: 12.6 MB / 322.7 MB, free: 15.18 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.35e-05/2.363e-05, allocations: 0 / 378.9 MB, free: 6.887 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3102/0.3102, allocations: 50.37 MB / 429.3 MB, free: 18.42 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1439/0.4542, allocations: 79.21 MB / 0.4966 GB, free: 3.105 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002599/0.4545, allocations: 67.97 kB / 0.4966 GB, free: 3.039 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01053/0.4651, allocations: 2.299 MB / 0.4989 GB, free: 0.7422 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.4651, allocations: 7.938 kB / 0.4989 GB, free: 0.7344 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.144e-05/0.4651, allocations: 0 / 0.4989 GB, free: 0.7344 MB / 346.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.0006761/0.4658, allocations: 414.1 kB / 0.4993 GB, free: 292 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.4659, allocations: 8.031 kB / 0.4993 GB, free: 284 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.297e-05/0.4659, allocations: 15.81 kB / 0.4993 GB, free: 268 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002626/0.4662, allocations: 194.9 kB / 0.4995 GB, free: 32 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.755e-05/0.4662, allocations: 7.953 kB / 0.4995 GB, free: 24 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.822e-05/0.4663, allocations: 8 kB / 0.4995 GB, free: 16 kB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002497/0.4666, allocations: 55.98 kB / 0.4995 GB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004776/0.467, allocations: 194.6 kB / 0.4997 GB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.633e-05/0.4671, allocations: 3.938 kB / 0.4997 GB, free: 15.74 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.722e-05/0.4671, allocations: 0 / 0.4997 GB, free: 15.74 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.819e-06/0.4671, allocations: 4 kB / 0.4997 GB, free: 15.74 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007841/0.4679, allocations: 0.5536 MB / 0.5003 GB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002593/0.4682, allocations: 128.1 kB / 0.5004 GB, free: 14.97 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001388/0.4684, allocations: 70.58 kB / 0.5005 GB, free: 14.89 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.596e-05/0.4684, allocations: 0 / 0.5005 GB, free: 14.89 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.945e-05/0.4684, allocations: 42.55 kB / 0.5005 GB, free: 14.84 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 1.703e-06/0.4684, allocations: 0 / 0.5005 GB, free: 14.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003837/0.4688, allocations: 101.5 kB / 0.5006 GB, free: 14.73 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.893e-05/0.4689, allocations: 114.7 kB / 0.5007 GB, free: 14.6 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001264/0.4691, allocations: 114.5 kB / 0.5008 GB, free: 14.48 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.125e-05/0.4691, allocations: 25.7 kB / 0.5009 GB, free: 14.45 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001114/0.4692, allocations: 182.5 kB / 0.501 GB, free: 14.27 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.028e-05/0.4693, allocations: 23.66 kB / 0.501 GB, free: 14.24 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.424e-06/0.4693, allocations: 0 / 0.501 GB, free: 14.24 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.4695, allocations: 322.8 kB / 0.5014 GB, free: 13.92 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.393e-05/0.4696, allocations: 20 kB / 0.5014 GB, free: 13.9 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001457/0.4697, allocations: 109.4 kB / 0.5015 GB, free: 13.75 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001033/0.4698, allocations: 41.2 kB / 0.5015 GB, free: 13.71 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.4698, allocations: 0 / 0.5015 GB, free: 13.71 MB / 362.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003265/0.4702, allocations: 137.5 kB / 0.5017 GB, free: 13.57 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.976e-05/0.4702, allocations: 11.95 kB / 0.5017 GB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/0.4702, allocations: 4 kB / 0.5017 GB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.007e-05/0.4703, allocations: 4 kB / 0.5017 GB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003451/0.4706, allocations: 47.92 kB / 0.5017 GB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.315e-05/0.4707, allocations: 7.984 kB / 0.5017 GB, free: 13.49 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001768/0.4708, allocations: 24.09 kB / 0.5017 GB, free: 13.47 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.993e-05/0.4709, allocations: 8 kB / 0.5018 GB, free: 13.46 MB / 362.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 0.0001/0.471, allocations: 107.8 kB / 0.5019 GB, free: 13.35 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001953/0.4712, allocations: 81.56 kB / 0.5019 GB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.204e-05/0.4713, allocations: 20.56 kB / 0.502 GB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.4713, allocations: 4 kB / 0.502 GB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.4713, allocations: 0 / 0.502 GB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.4713, allocations: 0 / 0.502 GB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003292/0.4716, allocations: 170.1 kB / 0.5021 GB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.4717, allocations: 4 kB / 0.5021 GB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003144/0.472, allocations: 39.91 kB / 0.5022 GB, free: 13 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.133e-06/0.472, allocations: 4 kB / 0.5022 GB, free: 13 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.17e-05/0.472, allocations: 8 kB / 0.5022 GB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.472, allocations: 3.938 kB / 0.5022 GB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.461e-06/0.4721, allocations: 7.953 kB / 0.5022 GB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004589/0.4725, allocations: 347 kB / 0.5025 GB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.784e-05/0.4726, allocations: 88.97 kB / 0.5026 GB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.13e-05/0.4727, allocations: 7.984 kB / 0.5026 GB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002175/0.4729, allocations: 8 kB / 0.5026 GB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.571e-05/0.473, allocations: 7.922 kB / 0.5026 GB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.33e-05/0.473, allocations: 4 kB / 0.5026 GB, free: 12.47 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.882e-05/0.4731, allocations: 101 kB / 0.5027 GB, free: 12.38 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.4731, allocations: 0 / 0.5027 GB, free: 12.38 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004537/0.4736, allocations: 23.94 kB / 0.5027 GB, free: 12.35 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 (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.4737, allocations: 99.02 kB / 0.5028 GB, free: 12.24 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002419/0.474, allocations: 79.88 kB / 0.5029 GB, free: 12.16 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.474, allocations: 0.875 kB / 0.5029 GB, free: 12.16 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.761e-05/0.474, allocations: 23.92 kB / 0.5029 GB, free: 12.14 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004545/0.4745, allocations: 32.03 kB / 0.503 GB, free: 12.11 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008053/0.4753, allocations: 320.5 kB / 0.5033 GB, free: 11.76 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000374/0.4757, allocations: 0.7162 MB / 0.504 GB, free: 11.02 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.575e-05/0.4758, allocations: 15.44 kB / 0.504 GB, free: 11 MB / 362.7 MB Notification: Performance of SimCode: time 7.32e-07/0.4758, allocations: 384 / 0.504 GB, free: 11 MB / 362.7 MB Notification: Performance of Templates: time 0.004333/0.4801, allocations: 1.447 MB / 0.5054 GB, free: 9.562 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_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_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches