Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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_cpp_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_cpp_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.002191/0.002195, allocations: 179.4 kB / 8.407 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.065/2.065, 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.001158/0.001157, allocations: 94.62 kB / 262.2 MB, free: 1.602 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.1007/0.1007, allocations: 12.6 MB / 322.7 MB, free: 15.19 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.653e-05/1.649e-05, allocations: 0 / 378.9 MB, free: 6.895 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.316/0.316, allocations: 50.37 MB / 429.3 MB, free: 18.43 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1436/0.4597, allocations: 79.4 MB / 0.4967 GB, free: 2.918 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003274/0.4601, allocations: 75.91 kB / 0.4968 GB, free: 2.844 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01183/0.472, allocations: 2.678 MB / 0.4994 GB, free: 172 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.4721, allocations: 0 / 0.4994 GB, free: 172 kB / 346.7 MB Notification: Performance of Transformations before backend: time 1.735e-05/0.4721, allocations: 4 kB / 0.4994 GB, free: 168 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.0007967/0.4729, allocations: 419.9 kB / 0.4998 GB, free: 15.71 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.916e-05/0.473, allocations: 11.97 kB / 0.4999 GB, free: 15.7 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.536e-05/0.473, allocations: 19.72 kB / 0.4999 GB, free: 15.68 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000298/0.4733, allocations: 213.4 kB / 0.5001 GB, free: 15.43 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.908e-05/0.4734, allocations: 7.953 kB / 0.5001 GB, free: 15.43 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.587e-05/0.4734, allocations: 8 kB / 0.5001 GB, free: 15.42 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002393/0.4737, allocations: 63.98 kB / 0.5002 GB, free: 15.36 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005036/0.4742, allocations: 210.6 kB / 0.5004 GB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.702e-05/0.4742, allocations: 0 / 0.5004 GB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.291e-05/0.4743, allocations: 4 kB / 0.5004 GB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.4743, allocations: 3.938 kB / 0.5004 GB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008013/0.4751, allocations: 0.5614 MB / 0.5009 GB, free: 14.49 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003655/0.4755, allocations: 139.9 kB / 0.501 GB, free: 14.33 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001315/0.4756, allocations: 50.58 kB / 0.5011 GB, free: 14.27 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.638e-05/0.4757, allocations: 4 kB / 0.5011 GB, free: 14.27 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.892e-05/0.4757, allocations: 38.56 kB / 0.5011 GB, free: 14.22 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 2.454e-06/0.4757, allocations: 0 / 0.5011 GB, free: 14.22 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003885/0.4761, allocations: 113.5 kB / 0.5012 GB, free: 14.1 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.739e-05/0.4762, allocations: 106.8 kB / 0.5013 GB, free: 13.97 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001703/0.4764, allocations: 142.8 kB / 0.5015 GB, free: 13.83 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.367e-05/0.4764, allocations: 25.8 kB / 0.5015 GB, free: 13.8 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001073/0.4766, allocations: 178.8 kB / 0.5017 GB, free: 13.62 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.956e-05/0.4766, allocations: 35.67 kB / 0.5017 GB, free: 13.59 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.745e-06/0.4766, allocations: 3.938 kB / 0.5017 GB, free: 13.58 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.4768, allocations: 314.8 kB / 0.502 GB, free: 13.27 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.497e-05/0.4768, allocations: 16.38 kB / 0.502 GB, free: 13.25 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001488/0.477, allocations: 126.2 kB / 0.5021 GB, free: 13.07 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001044/0.4771, allocations: 40.02 kB / 0.5022 GB, free: 13.04 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.4771, allocations: 0 / 0.5022 GB, free: 13.04 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003389/0.4775, allocations: 145.5 kB / 0.5023 GB, free: 12.89 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.743e-05/0.4775, allocations: 8 kB / 0.5023 GB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.4775, allocations: 4 kB / 0.5023 GB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.11e-05/0.4776, allocations: 4 kB / 0.5023 GB, free: 12.87 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003155/0.4779, allocations: 51.86 kB / 0.5024 GB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.038e-05/0.4779, allocations: 8 kB / 0.5024 GB, free: 12.81 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000181/0.4781, allocations: 24.08 kB / 0.5024 GB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.357e-05/0.4781, allocations: 12 kB / 0.5024 GB, free: 12.78 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 9.72e-05/0.4783, allocations: 108.9 kB / 0.5025 GB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002038/0.4785, allocations: 81.53 kB / 0.5026 GB, free: 12.58 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.31e-05/0.4786, allocations: 20.61 kB / 0.5026 GB, free: 12.56 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.043e-06/0.4786, allocations: 4 kB / 0.5026 GB, free: 12.56 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.775e-06/0.4786, allocations: 3.953 kB / 0.5026 GB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.4786, allocations: 0 / 0.5026 GB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003357/0.479, allocations: 182 kB / 0.5028 GB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.479, allocations: 4 kB / 0.5028 GB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003355/0.4793, allocations: 35.98 kB / 0.5028 GB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.001e-06/0.4794, allocations: 0 / 0.5028 GB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.33e-05/0.4794, allocations: 8 kB / 0.5029 GB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.943e-06/0.4794, allocations: 7.984 kB / 0.5029 GB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.4794, allocations: 3.938 kB / 0.5029 GB, free: 12.28 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004993/0.4799, allocations: 354.8 kB / 0.5032 GB, free: 11.9 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001212/0.4801, allocations: 101 kB / 0.5033 GB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.835e-05/0.4801, allocations: 4 kB / 0.5033 GB, free: 11.78 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002263/0.4804, allocations: 7.953 kB / 0.5033 GB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.369e-05/0.4804, allocations: 7.984 kB / 0.5033 GB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.727e-05/0.4805, allocations: 8.156 kB / 0.5033 GB, free: 11.76 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001211/0.4806, allocations: 120 kB / 0.5034 GB, free: 11.64 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.4806, allocations: 0 / 0.5034 GB, free: 11.64 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004933/0.4811, allocations: 27.84 kB / 0.5035 GB, free: 11.61 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.0001609/0.4813, allocations: 118.9 kB / 0.5036 GB, free: 11.48 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002738/0.4816, allocations: 76.69 kB / 0.5037 GB, free: 11.41 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/0.4816, allocations: 4 kB / 0.5037 GB, free: 11.41 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.703e-05/0.4817, allocations: 20.06 kB / 0.5037 GB, free: 11.39 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005435/0.4822, allocations: 55.94 kB / 0.5037 GB, free: 11.33 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008779/0.4831, allocations: 329.2 kB / 0.504 GB, free: 10.98 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00037/0.4835, allocations: 0.7281 MB / 0.5048 GB, free: 10.22 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.768e-05/0.4836, allocations: 15.44 kB / 0.5048 GB, free: 10.21 MB / 362.7 MB Notification: Performance of SimCode: time 9.52e-07/0.4836, allocations: 0 / 0.5048 GB, free: 10.21 MB / 362.7 MB Notification: Performance of Templates: time 0.004861/0.4885, allocations: 1.564 MB / 0.5063 GB, free: 8.652 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches