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.002327/0.002327, allocations: 186.7 kB / 13.7 MB, free: 1.617 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.081/2.081, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.001077/0.001077, allocations: 86.7 kB / 267.6 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09633/0.09633, allocations: 12.6 MB / 328.2 MB, free: 11.16 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.645e-05/3.663e-05, allocations: 4 kB / 386 MB, free: 1.316 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3462/0.3463, allocations: 50.37 MB / 436.3 MB, free: 14.15 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1431/0.4895, allocations: 79.04 MB / 0.5033 GB, free: 15 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002635/0.4898, allocations: 71.94 kB / 0.5034 GB, free: 14.93 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009248/0.4991, allocations: 2.182 MB / 0.5055 GB, free: 12.75 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.4991, allocations: 0 / 0.5055 GB, free: 12.75 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.231e-05/0.4992, allocations: 0 / 0.5055 GB, free: 12.75 MB / 362.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.0005968/0.4998, allocations: 390.4 kB / 0.5059 GB, free: 12.32 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.807e-05/0.4998, allocations: 12.03 kB / 0.5059 GB, free: 12.3 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.999e-05/0.4999, allocations: 7.906 kB / 0.5059 GB, free: 12.3 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002125/0.5001, allocations: 186.9 kB / 0.5061 GB, free: 12.07 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.746e-05/0.5001, allocations: 8.188 kB / 0.5061 GB, free: 12.07 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.929e-05/0.5002, allocations: 19.86 kB / 0.5061 GB, free: 12.05 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002599/0.5005, allocations: 100.6 kB / 0.5062 GB, free: 11.94 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.574e-05/0.5005, allocations: 4 kB / 0.5062 GB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.254e-05/0.5005, allocations: 8 kB / 0.5062 GB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.5005, allocations: 0 / 0.5062 GB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000165/0.5007, allocations: 51.91 kB / 0.5062 GB, free: 11.88 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001057/0.5018, allocations: 0.5405 MB / 0.5068 GB, free: 11.27 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001891/0.502, allocations: 62.62 kB / 0.5068 GB, free: 11.2 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.754e-05/0.5021, allocations: 28.8 kB / 0.5069 GB, free: 11.16 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.148e-05/0.5021, allocations: 8 kB / 0.5069 GB, free: 11.16 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.725e-05/0.5022, allocations: 34.5 kB / 0.5069 GB, free: 11.11 MB / 362.7 MB Notification: Performance of pre-optimization done (n=7): time 3.617e-06/0.5022, allocations: 0 / 0.5069 GB, free: 11.11 MB / 362.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002546/0.5024, allocations: 73.59 kB / 0.507 GB, free: 11.04 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.551e-05/0.5025, allocations: 51.41 kB / 0.507 GB, free: 10.97 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000121/0.5026, allocations: 114.8 kB / 0.5071 GB, free: 10.86 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.299e-05/0.5027, allocations: 25.7 kB / 0.5072 GB, free: 10.82 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.537e-05/0.5028, allocations: 186.2 kB / 0.5073 GB, free: 10.64 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.386e-05/0.5028, allocations: 27.66 kB / 0.5074 GB, free: 10.61 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.604e-06/0.5028, allocations: 0 / 0.5074 GB, free: 10.61 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.503, allocations: 322.8 kB / 0.5077 GB, free: 10.29 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.01e-05/0.5031, allocations: 20 kB / 0.5077 GB, free: 10.27 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001012/0.5032, allocations: 56.23 kB / 0.5077 GB, free: 10.2 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.729e-05/0.5033, allocations: 31.92 kB / 0.5078 GB, free: 10.17 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.5033, allocations: 4 kB / 0.5078 GB, free: 10.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002573/0.5036, allocations: 105.4 kB / 0.5079 GB, free: 10.05 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.104e-05/0.5036, allocations: 4 kB / 0.5079 GB, free: 10.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.477e-06/0.5036, allocations: 4 kB / 0.5079 GB, free: 10.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.888e-05/0.5036, allocations: 3.984 kB / 0.5079 GB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003172/0.504, allocations: 44.05 kB / 0.5079 GB, free: 10 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.288e-06/0.504, allocations: 0 / 0.5079 GB, free: 10 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000144/0.5041, allocations: 15.92 kB / 0.5079 GB, free: 9.984 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.463e-05/0.5042, allocations: 4 kB / 0.5079 GB, free: 9.98 MB / 362.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 () * 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 9.309e-05/0.5043, allocations: 112.8 kB / 0.5081 GB, free: 9.863 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.322e-05/0.5043, allocations: 11.86 kB / 0.5081 GB, free: 9.852 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.647e-05/0.5044, allocations: 8.625 kB / 0.5081 GB, free: 9.848 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.5044, allocations: 0 / 0.5081 GB, free: 9.848 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.5044, allocations: 8 kB / 0.5081 GB, free: 9.84 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.5044, allocations: 0 / 0.5081 GB, free: 9.84 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002884/0.5047, allocations: 197.8 kB / 0.5083 GB, free: 9.598 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.5047, allocations: 0 / 0.5083 GB, free: 9.598 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002942/0.505, allocations: 23.92 kB / 0.5083 GB, free: 9.574 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.182e-05/0.5051, allocations: 7.953 kB / 0.5083 GB, free: 9.566 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.652e-05/0.5051, allocations: 4 kB / 0.5083 GB, free: 9.562 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.005e-06/0.5051, allocations: 3.984 kB / 0.5083 GB, free: 9.559 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.5051, allocations: 3.938 kB / 0.5083 GB, free: 9.555 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003395/0.5055, allocations: 195.4 kB / 0.5085 GB, free: 9.348 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.43e-05/0.5055, allocations: 77.11 kB / 0.5086 GB, free: 9.254 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.809e-05/0.5056, allocations: 11.95 kB / 0.5086 GB, free: 9.242 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001523/0.5057, allocations: 8.125 kB / 0.5086 GB, free: 9.234 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.092e-05/0.5058, allocations: 7.938 kB / 0.5086 GB, free: 9.227 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.152e-05/0.5058, allocations: 3.984 kB / 0.5086 GB, free: 9.223 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.877e-05/0.5059, allocations: 107.2 kB / 0.5087 GB, free: 9.117 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.5059, allocations: 0 / 0.5087 GB, free: 9.117 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003356/0.5063, allocations: 23.84 kB / 0.5087 GB, free: 9.094 MB / 362.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 () * 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.0001424/0.5064, allocations: 95.25 kB / 0.5088 GB, free: 8.988 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002138/0.5067, allocations: 59.91 kB / 0.5089 GB, free: 8.93 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.5067, allocations: 4 kB / 0.5089 GB, free: 8.926 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.842e-05/0.5068, allocations: 16 kB / 0.5089 GB, free: 8.91 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003476/0.5071, allocations: 24.19 kB / 0.5089 GB, free: 8.887 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007973/0.5079, allocations: 293.5 kB / 0.5092 GB, free: 8.57 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003233/0.5083, allocations: 0.7121 MB / 0.5099 GB, free: 7.832 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.094e-05/0.5083, allocations: 11.44 kB / 0.5099 GB, free: 7.82 MB / 362.7 MB Notification: Performance of SimCode: time 1.032e-06/0.5084, allocations: 0 / 0.5099 GB, free: 7.82 MB / 362.7 MB Notification: Performance of Templates: time 0.003884/0.5123, allocations: 1.232 MB / 0.5111 GB, free: 6.59 MB / 362.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