Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.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/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/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.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001885/0.001885, allocations: 180.5 kB / 17.46 MB, free: 4.359 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.839/2.839, allocations: 205.4 MB / 223.6 MB, free: 8.934 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.001198/0.001198, allocations: 91.86 kB / 272 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.1339/0.1339, allocations: 12.21 MB / 332.4 MB, free: 11.63 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006519/0.0006522, allocations: 16 kB / 392.7 MB, free: 67.06 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1638/0.1645, allocations: 50.29 MB / 443 MB, free: 16.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5414/0.706, allocations: 79.1 MB / 0.5099 GB, free: 13.02 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003696/0.7064, allocations: 77.77 kB / 0.5099 GB, free: 13.02 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008935/0.7154, allocations: 2.18 MB / 0.5121 GB, free: 12.15 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.948e-06/0.7155, allocations: 0 / 0.5121 GB, free: 12.15 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.704e-05/0.7155, allocations: 3.844 kB / 0.5121 GB, free: 12.15 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0007401/0.7163, allocations: 401.3 kB / 0.5125 GB, free: 11.75 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.058e-05/0.7164, allocations: 11.59 kB / 0.5125 GB, free: 11.75 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.43e-05/0.7164, allocations: 12.53 kB / 0.5125 GB, free: 11.74 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002311/0.7167, allocations: 201.3 kB / 0.5127 GB, free: 11.53 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.922e-05/0.7167, allocations: 0.5625 kB / 0.5127 GB, free: 11.53 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.869e-05/0.7168, allocations: 11.97 kB / 0.5127 GB, free: 11.53 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004208/0.7172, allocations: 130 kB / 0.5128 GB, free: 11.45 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.256e-05/0.7173, allocations: 0 / 0.5128 GB, free: 11.45 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.51e-05/0.7173, allocations: 7.781 kB / 0.5128 GB, free: 11.45 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.117e-06/0.7173, allocations: 0 / 0.5128 GB, free: 11.45 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003829/0.7177, allocations: 83.75 kB / 0.5129 GB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001101/0.7188, allocations: 0.5343 MB / 0.5134 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003323/0.7192, allocations: 85.2 kB / 0.5135 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001857/0.7194, allocations: 47.17 kB / 0.5135 GB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.277e-05/0.7194, allocations: 0 / 0.5135 GB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.456e-05/0.7195, allocations: 37.72 kB / 0.5136 GB, free: 10.85 MB / 330.7 MB Notification: Performance of pre-optimization done (n=7): time 2.455e-06/0.7195, allocations: 0 / 0.5136 GB, free: 10.85 MB / 330.7 MB Notification: Performance of matching and sorting (n=7): time 0.0007134/0.7202, allocations: 136.2 kB / 0.5137 GB, free: 10.79 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.291e-05/0.7203, allocations: 59.23 kB / 0.5138 GB, free: 10.73 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001416/0.7204, allocations: 118.7 kB / 0.5139 GB, free: 10.62 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.753e-05/0.7205, allocations: 32.8 kB / 0.5139 GB, free: 10.59 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.311e-05/0.7206, allocations: 118.9 kB / 0.514 GB, free: 10.48 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.795e-05/0.7206, allocations: 26.98 kB / 0.514 GB, free: 10.46 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.001e-05/0.7206, allocations: 5.406 kB / 0.514 GB, free: 10.46 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.839e-05/0.7207, allocations: 321.9 kB / 0.5144 GB, free: 10.15 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001729/0.7209, allocations: 29.83 kB / 0.5144 GB, free: 10.14 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000205/0.7211, allocations: 75.5 kB / 0.5145 GB, free: 10.09 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004003/0.7216, allocations: 121.1 kB / 0.5146 GB, free: 10.03 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.7216, allocations: 3.938 kB / 0.5146 GB, free: 10.03 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004695/0.7221, allocations: 150.5 kB / 0.5147 GB, free: 9.961 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.315e-05/0.7221, allocations: 7.625 kB / 0.5147 GB, free: 9.961 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.7221, allocations: 0 / 0.5147 GB, free: 9.961 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.723e-05/0.7222, allocations: 3.812 kB / 0.5147 GB, free: 9.961 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002915/0.7225, allocations: 34.81 kB / 0.5148 GB, free: 9.953 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.509e-05/0.7225, allocations: 0.8125 kB / 0.5148 GB, free: 9.953 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001436/0.7227, allocations: 16.88 kB / 0.5148 GB, free: 9.945 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.808e-05/0.7227, allocations: 7.656 kB / 0.5148 GB, free: 9.945 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001414/0.7229, allocations: 133.7 kB / 0.5149 GB, free: 9.816 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.932e-05/0.7229, allocations: 11.73 kB / 0.5149 GB, free: 9.809 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.398e-05/0.723, allocations: 10.38 kB / 0.5149 GB, free: 9.801 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.723, allocations: 0 / 0.5149 GB, free: 9.801 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.723, allocations: 3.938 kB / 0.5149 GB, free: 9.797 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.723, allocations: 3.844 kB / 0.5149 GB, free: 9.797 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002926/0.7233, allocations: 195.7 kB / 0.5151 GB, free: 9.59 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.7233, allocations: 4 kB / 0.5151 GB, free: 9.586 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002521/0.7236, allocations: 26.8 kB / 0.5152 GB, free: 9.582 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.7236, allocations: 0 / 0.5152 GB, free: 9.582 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.83e-05/0.7237, allocations: 0 / 0.5152 GB, free: 9.582 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.047e-06/0.7237, allocations: 4 kB / 0.5152 GB, free: 9.578 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.664e-06/0.7237, allocations: 0 / 0.5152 GB, free: 9.578 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006806/0.7244, allocations: 255.5 kB / 0.5154 GB, free: 9.414 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.556e-05/0.7244, allocations: 92.89 kB / 0.5155 GB, free: 9.309 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.062e-05/0.7245, allocations: 3.375 kB / 0.5155 GB, free: 9.309 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001639/0.7247, allocations: 11.72 kB / 0.5155 GB, free: 9.305 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.255e-05/0.7247, allocations: 3.984 kB / 0.5155 GB, free: 9.301 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.837e-06/0.7248, allocations: 3.812 kB / 0.5155 GB, free: 9.301 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.08e-05/0.7249, allocations: 97.67 kB / 0.5156 GB, free: 9.223 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.7249, allocations: 0 / 0.5156 GB, free: 9.223 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004767/0.7253, allocations: 22.53 kB / 0.5156 GB, free: 9.219 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (load.phi,load.w,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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.0001509/0.7255, allocations: 94.62 kB / 0.5157 GB, free: 9.133 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004445/0.726, allocations: 91.38 kB / 0.5158 GB, free: 9.109 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.726, allocations: 3.938 kB / 0.5158 GB, free: 9.105 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001685/0.7262, allocations: 42.02 kB / 0.5159 GB, free: 9.098 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006017/0.7268, allocations: 23.28 kB / 0.5159 GB, free: 9.086 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001094/0.7279, allocations: 477.7 kB / 0.5163 GB, free: 8.695 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001796/0.7281, allocations: 0.7031 MB / 0.517 GB, free: 7.984 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.607e-05/0.7282, allocations: 11.31 kB / 0.517 GB, free: 7.977 MB / 330.7 MB Notification: Performance of SimCode: time 5.21e-07/0.7282, allocations: 0 / 0.517 GB, free: 7.977 MB / 330.7 MB Notification: Performance of Templates: time 0.003977/0.7322, allocations: 1.265 MB / 0.5183 GB, free: 7.34 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches