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-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.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.002142/0.002141, allocations: 186.1 kB / 16.44 MB, free: 5.672 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.975/1.975, allocations: 205.4 MB / 222.6 MB, free: 9.113 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.001179/0.001179, allocations: 91.2 kB / 270.9 MB, free: 8.371 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.109/0.109, allocations: 12.6 MB / 331.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005251/0.0005251, allocations: 16 kB / 392 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08634/0.08689, allocations: 50.37 MB / 442.3 MB, free: 16.49 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4137/0.5006, allocations: 79.12 MB / 0.5092 GB, free: 12.84 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002463/0.5009, allocations: 73.27 kB / 0.5093 GB, free: 12.83 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008315/0.5093, allocations: 2.179 MB / 0.5114 GB, free: 11.94 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.5093, allocations: 4 kB / 0.5114 GB, free: 11.94 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.332e-05/0.5093, allocations: 3.938 kB / 0.5114 GB, free: 11.93 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.0006081/0.5099, allocations: 398 kB / 0.5118 GB, free: 11.54 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.628e-05/0.51, allocations: 7.719 kB / 0.5118 GB, free: 11.54 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.315e-05/0.5101, allocations: 19.53 kB / 0.5119 GB, free: 11.53 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002052/0.5103, allocations: 186.9 kB / 0.512 GB, free: 11.32 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.817e-05/0.5103, allocations: 7.562 kB / 0.512 GB, free: 11.32 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.54e-05/0.5104, allocations: 23.05 kB / 0.5121 GB, free: 11.31 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003906/0.5108, allocations: 123.5 kB / 0.5122 GB, free: 11.24 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.727e-05/0.5108, allocations: 0 / 0.5122 GB, free: 11.24 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.5108, allocations: 3.188 kB / 0.5122 GB, free: 11.24 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.5109, allocations: 3.844 kB / 0.5122 GB, free: 11.24 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003717/0.5112, allocations: 84.33 kB / 0.5123 GB, free: 11.22 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009731/0.5122, allocations: 0.5481 MB / 0.5128 GB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002934/0.5126, allocations: 78.86 kB / 0.5129 GB, free: 10.69 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.83e-05/0.5126, allocations: 0 / 0.5129 GB, free: 10.69 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.281e-05/0.5126, allocations: 34.44 kB / 0.5129 GB, free: 10.65 MB / 330.7 MB Notification: Performance of pre-optimization done (n=7): time 1.994e-06/0.5126, allocations: 0 / 0.5129 GB, free: 10.65 MB / 330.7 MB Notification: Performance of matching and sorting (n=7): time 0.0006467/0.5133, allocations: 144.7 kB / 0.513 GB, free: 10.59 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.272e-05/0.5133, allocations: 51.41 kB / 0.5131 GB, free: 10.53 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001062/0.5135, allocations: 115 kB / 0.5132 GB, free: 10.43 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.7e-05/0.5135, allocations: 29.02 kB / 0.5132 GB, free: 10.4 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.218e-05/0.5136, allocations: 187.7 kB / 0.5134 GB, free: 10.23 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.83e-05/0.5136, allocations: 22.92 kB / 0.5134 GB, free: 10.21 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.035e-06/0.5136, allocations: 4 kB / 0.5134 GB, free: 10.21 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.59e-05/0.5137, allocations: 314.3 kB / 0.5137 GB, free: 9.898 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002112/0.5139, allocations: 37.94 kB / 0.5138 GB, free: 9.891 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001934/0.5141, allocations: 73.55 kB / 0.5138 GB, free: 9.84 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001916/0.5143, allocations: 40.52 kB / 0.5139 GB, free: 9.832 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.5144, allocations: 0 / 0.5139 GB, free: 9.832 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004686/0.5148, allocations: 153.5 kB / 0.514 GB, free: 9.766 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.5149, allocations: 3.812 kB / 0.514 GB, free: 9.766 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.074e-06/0.5149, allocations: 96 / 0.514 GB, free: 9.766 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.286e-05/0.5149, allocations: 7.812 kB / 0.514 GB, free: 9.762 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002708/0.5152, allocations: 39.25 kB / 0.5141 GB, free: 9.75 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.277e-06/0.5152, allocations: 0 / 0.5141 GB, free: 9.75 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001376/0.5154, allocations: 19.5 kB / 0.5141 GB, free: 9.742 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.126e-05/0.5154, allocations: 3.812 kB / 0.5141 GB, free: 9.742 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.0001043/0.5155, allocations: 129.1 kB / 0.5142 GB, free: 9.617 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.932e-05/0.5156, allocations: 11.7 kB / 0.5142 GB, free: 9.609 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.436e-05/0.5156, allocations: 11 kB / 0.5142 GB, free: 9.602 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.5156, allocations: 4 kB / 0.5142 GB, free: 9.598 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.782e-06/0.5156, allocations: 3.812 kB / 0.5143 GB, free: 9.598 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.5157, allocations: 3.938 kB / 0.5143 GB, free: 9.594 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002175/0.5159, allocations: 194.4 kB / 0.5144 GB, free: 9.391 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.5159, allocations: 0 / 0.5144 GB, free: 9.391 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002455/0.5161, allocations: 27.08 kB / 0.5145 GB, free: 9.387 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.35e-06/0.5162, allocations: 3.953 kB / 0.5145 GB, free: 9.383 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.386e-05/0.5162, allocations: 0 / 0.5145 GB, free: 9.383 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.5162, allocations: 0 / 0.5145 GB, free: 9.383 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.5162, allocations: 3.938 kB / 0.5145 GB, free: 9.379 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005989/0.5168, allocations: 252.3 kB / 0.5147 GB, free: 9.215 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.55e-05/0.5169, allocations: 85.08 kB / 0.5148 GB, free: 9.113 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.77e-05/0.5169, allocations: 12.27 kB / 0.5148 GB, free: 9.109 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001434/0.5171, allocations: 3.625 kB / 0.5148 GB, free: 9.109 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.852e-05/0.5171, allocations: 7.828 kB / 0.5148 GB, free: 9.105 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.355e-06/0.5171, allocations: 3.875 kB / 0.5148 GB, free: 9.105 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.599e-05/0.5172, allocations: 93.39 kB / 0.5149 GB, free: 9.027 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.5172, allocations: 0 / 0.5149 GB, free: 9.027 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003367/0.5176, allocations: 26.09 kB / 0.5149 GB, free: 9.023 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.0001055/0.5177, allocations: 98.59 kB / 0.515 GB, free: 8.934 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000415/0.5181, allocations: 93.84 kB / 0.5151 GB, free: 8.91 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.5181, allocations: 256 / 0.5151 GB, free: 8.91 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001734/0.5183, allocations: 41.47 kB / 0.5152 GB, free: 8.902 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003477/0.5187, allocations: 14.77 kB / 0.5152 GB, free: 8.898 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008529/0.5195, allocations: 481.8 kB / 0.5156 GB, free: 8.504 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001495/0.5197, allocations: 0.7111 MB / 0.5163 GB, free: 7.789 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.335e-05/0.5198, allocations: 19.12 kB / 0.5163 GB, free: 7.773 MB / 330.7 MB Notification: Performance of SimCode: time 1.242e-06/0.5198, allocations: 0 / 0.5163 GB, free: 7.773 MB / 330.7 MB Notification: Performance of Templates: time 0.003236/0.523, allocations: 1.232 MB / 0.5175 GB, free: 7.164 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