Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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_cpp_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_cpp_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.002286/0.002286, 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.184/2.184, allocations: 205.3 MB / 214.1 MB, free: 1.727 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.001042/0.001042, allocations: 84.11 kB / 262.1 MB, free: 1.68 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.09741/0.09741, allocations: 12.61 MB / 322.7 MB, free: 15.19 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.038e-05/2.048e-05, allocations: 4 kB / 378.9 MB, free: 6.902 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3066/0.3066, allocations: 50.36 MB / 429.3 MB, free: 18.41 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1394/0.4461, allocations: 79.23 MB / 0.4966 GB, free: 3.07 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002882/0.4465, allocations: 75.94 kB / 0.4967 GB, free: 2.996 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01036/0.4569, allocations: 2.326 MB / 0.4989 GB, free: 0.6719 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.963e-06/0.4569, allocations: 0 / 0.4989 GB, free: 0.6719 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.495e-05/0.457, allocations: 7.938 kB / 0.4989 GB, free: 0.6641 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0007318/0.4577, allocations: 398.2 kB / 0.4993 GB, free: 236 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.878e-05/0.4578, allocations: 8.031 kB / 0.4993 GB, free: 228 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.196e-05/0.4579, allocations: 15.81 kB / 0.4993 GB, free: 212 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003087/0.4582, allocations: 203 kB / 0.4995 GB, free: 15.97 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.557e-05/0.4582, allocations: 7.953 kB / 0.4995 GB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.656e-05/0.4583, allocations: 15.91 kB / 0.4996 GB, free: 15.95 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002349/0.4585, allocations: 63.98 kB / 0.4996 GB, free: 15.88 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005039/0.459, allocations: 206.6 kB / 0.4998 GB, free: 15.66 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.754e-05/0.4591, allocations: 8 kB / 0.4998 GB, free: 15.65 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.881e-05/0.4591, allocations: 0 / 0.4998 GB, free: 15.65 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.278e-05/0.4591, allocations: 4 kB / 0.4998 GB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008401/0.46, allocations: 0.5536 MB / 0.5004 GB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003696/0.4604, allocations: 123.8 kB / 0.5005 GB, free: 14.88 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001467/0.4605, allocations: 66.69 kB / 0.5005 GB, free: 14.8 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.714e-05/0.4606, allocations: 4 kB / 0.5005 GB, free: 14.8 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.209e-05/0.4606, allocations: 34.56 kB / 0.5006 GB, free: 14.76 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 3.206e-06/0.4606, allocations: 0 / 0.5006 GB, free: 14.76 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003909/0.461, allocations: 109.4 kB / 0.5007 GB, free: 14.64 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.733e-05/0.4611, allocations: 114.8 kB / 0.5008 GB, free: 14.51 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001451/0.4613, allocations: 113.3 kB / 0.5009 GB, free: 14.39 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.295e-05/0.4614, allocations: 29.73 kB / 0.5009 GB, free: 14.35 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001278/0.4615, allocations: 178.4 kB / 0.5011 GB, free: 14.18 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.7e-05/0.4615, allocations: 31.64 kB / 0.5011 GB, free: 14.14 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.586e-06/0.4616, allocations: 0 / 0.5011 GB, free: 14.14 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000198/0.4618, allocations: 314.8 kB / 0.5014 GB, free: 13.83 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.199e-05/0.4619, allocations: 20.38 kB / 0.5015 GB, free: 13.8 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001721/0.462, allocations: 119.1 kB / 0.5016 GB, free: 13.64 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001201/0.4622, allocations: 45.2 kB / 0.5016 GB, free: 13.6 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.4622, allocations: 0 / 0.5016 GB, free: 13.6 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003807/0.4626, allocations: 149.3 kB / 0.5017 GB, free: 13.45 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.338e-05/0.4626, allocations: 4 kB / 0.5018 GB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.271e-05/0.4627, allocations: 4 kB / 0.5018 GB, free: 13.44 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.253e-05/0.4627, allocations: 12.05 kB / 0.5018 GB, free: 13.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000334/0.463, allocations: 52.31 kB / 0.5018 GB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.35e-05/0.4631, allocations: 7.938 kB / 0.5018 GB, free: 13.37 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001894/0.4633, allocations: 27.83 kB / 0.5019 GB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.951e-05/0.4633, allocations: 12 kB / 0.5019 GB, free: 13.33 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 0.0001211/0.4634, allocations: 104.9 kB / 0.502 GB, free: 13.22 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002127/0.4637, allocations: 77.59 kB / 0.502 GB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.95e-05/0.4638, allocations: 16.61 kB / 0.5021 GB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.588e-06/0.4638, allocations: 0 / 0.5021 GB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/0.4638, allocations: 7.953 kB / 0.5021 GB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.4638, allocations: 4 kB / 0.5021 GB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003552/0.4642, allocations: 178 kB / 0.5022 GB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.4642, allocations: 3.938 kB / 0.5022 GB, free: 12.9 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003532/0.4646, allocations: 39.97 kB / 0.5023 GB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.152e-06/0.4646, allocations: 4 kB / 0.5023 GB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.219e-05/0.4646, allocations: 4 kB / 0.5023 GB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.49e-06/0.4647, allocations: 7.938 kB / 0.5023 GB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.4647, allocations: 0 / 0.5023 GB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005422/0.4652, allocations: 354.9 kB / 0.5026 GB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.226e-05/0.4653, allocations: 89 kB / 0.5027 GB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.806e-05/0.4653, allocations: 0 / 0.5027 GB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002379/0.4656, allocations: 11.95 kB / 0.5027 GB, free: 12.35 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.105e-05/0.4657, allocations: 8.047 kB / 0.5027 GB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.803e-05/0.4657, allocations: 8 kB / 0.5027 GB, free: 12.34 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.215e-05/0.4658, allocations: 96.95 kB / 0.5028 GB, free: 12.24 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.4e-07/0.4658, allocations: 0 / 0.5028 GB, free: 12.24 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004807/0.4663, allocations: 27.84 kB / 0.5029 GB, free: 12.21 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.0001552/0.4665, allocations: 99.19 kB / 0.503 GB, free: 12.11 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002735/0.4668, allocations: 88.55 kB / 0.503 GB, free: 12.02 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.4668, allocations: 0 / 0.503 GB, free: 12.02 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.139e-05/0.4668, allocations: 12 kB / 0.5031 GB, free: 12.01 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004811/0.4673, allocations: 48.27 kB / 0.5031 GB, free: 11.96 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008217/0.4682, allocations: 312.8 kB / 0.5034 GB, free: 11.62 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003535/0.4685, allocations: 0.7125 MB / 0.5041 GB, free: 10.88 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.122e-05/0.4686, allocations: 15.44 kB / 0.5041 GB, free: 10.87 MB / 362.7 MB Notification: Performance of SimCode: time 9.22e-07/0.4686, allocations: 4 kB / 0.5041 GB, free: 10.86 MB / 362.7 MB Notification: Performance of Templates: time 0.004578/0.4732, allocations: 1.475 MB / 0.5056 GB, free: 9.395 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches