Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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_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_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.0009509/0.0009508, allocations: 181.4 kB / 13.23 MB, free: 2.086 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.562/1.562, allocations: 205.2 MB / 219 MB, free: 9.141 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.0009024/0.0009025, allocations: 90.75 kB / 267.1 MB, free: 9.273 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.09724/0.09724, allocations: 12.59 MB / 327.8 MB, free: 12.48 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.271e-05/3.303e-05, allocations: 4 kB / 386 MB, free: 69.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1169, allocations: 50.37 MB / 436.4 MB, free: 19.23 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4669/0.5838, allocations: 79.03 MB / 0.5033 GB, free: 11.91 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002608/0.5842, allocations: 67.81 kB / 0.5034 GB, free: 11.91 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005368/0.5895, allocations: 2.172 MB / 0.5055 GB, free: 11.48 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.925e-06/0.5896, allocations: 3.844 kB / 0.5055 GB, free: 11.48 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.145e-05/0.5896, allocations: 0 / 0.5055 GB, free: 11.48 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.0003989/0.59, allocations: 393 kB / 0.5059 GB, free: 11.11 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.813e-05/0.59, allocations: 11.53 kB / 0.5059 GB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.36e-05/0.5901, allocations: 7.75 kB / 0.5059 GB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001771/0.5903, allocations: 193.2 kB / 0.5061 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.611e-05/0.5903, allocations: 7.781 kB / 0.5061 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.956e-05/0.5903, allocations: 11.83 kB / 0.5061 GB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002069/0.5905, allocations: 110.8 kB / 0.5062 GB, free: 10.85 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.5906, allocations: 4.812 kB / 0.5062 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.577e-05/0.5906, allocations: 3.688 kB / 0.5062 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.584e-06/0.5906, allocations: 7.844 kB / 0.5062 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001089/0.5907, allocations: 45.25 kB / 0.5063 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006548/0.5914, allocations: 0.5371 MB / 0.5068 GB, free: 10.4 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001177/0.5915, allocations: 65.47 kB / 0.5069 GB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.915e-05/0.5916, allocations: 34.52 kB / 0.5069 GB, free: 10.36 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.29e-05/0.5916, allocations: 3.938 kB / 0.5069 GB, free: 10.36 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.92e-05/0.5916, allocations: 33.42 kB / 0.5069 GB, free: 10.32 MB / 330.7 MB Notification: Performance of pre-optimization done (n=7): time 1.112e-06/0.5916, allocations: 0 / 0.5069 GB, free: 10.32 MB / 330.7 MB Notification: Performance of matching and sorting (n=7): time 0.000173/0.5918, allocations: 69.53 kB / 0.507 GB, free: 10.28 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.029e-05/0.5918, allocations: 51.41 kB / 0.507 GB, free: 10.22 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.939e-05/0.5919, allocations: 122 kB / 0.5072 GB, free: 10.13 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.016e-05/0.5919, allocations: 29.7 kB / 0.5072 GB, free: 10.09 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.927e-05/0.592, allocations: 113.1 kB / 0.5073 GB, free: 9.996 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.176e-05/0.592, allocations: 26.31 kB / 0.5073 GB, free: 9.98 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.859e-06/0.592, allocations: 0 / 0.5073 GB, free: 9.98 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.033e-05/0.5921, allocations: 321.1 kB / 0.5076 GB, free: 9.668 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.563e-05/0.5921, allocations: 18.16 kB / 0.5076 GB, free: 9.668 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.94e-05/0.5922, allocations: 56.2 kB / 0.5077 GB, free: 9.625 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.674e-05/0.5923, allocations: 29.27 kB / 0.5077 GB, free: 9.621 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.5923, allocations: 0 / 0.5077 GB, free: 9.621 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001379/0.5924, allocations: 117.8 kB / 0.5078 GB, free: 9.574 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/0.5924, allocations: 3.875 kB / 0.5078 GB, free: 9.574 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.5924, allocations: 0 / 0.5078 GB, free: 9.574 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.5925, allocations: 7.969 kB / 0.5078 GB, free: 9.57 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001653/0.5926, allocations: 36.36 kB / 0.5079 GB, free: 9.566 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.236e-06/0.5926, allocations: 0 / 0.5079 GB, free: 9.566 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.453e-05/0.5927, allocations: 18.34 kB / 0.5079 GB, free: 9.559 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.023e-05/0.5927, allocations: 11.56 kB / 0.5079 GB, free: 9.555 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 () * 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 4.922e-05/0.5928, allocations: 110 kB / 0.508 GB, free: 9.445 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.904e-05/0.5928, allocations: 17.27 kB / 0.508 GB, free: 9.438 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.441e-05/0.5929, allocations: 11.44 kB / 0.508 GB, free: 9.434 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.5929, allocations: 3.875 kB / 0.508 GB, free: 9.434 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.5929, allocations: 0 / 0.508 GB, free: 9.434 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.5929, allocations: 0 / 0.508 GB, free: 9.434 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001594/0.5931, allocations: 199.4 kB / 0.5082 GB, free: 9.242 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.5931, allocations: 3.984 kB / 0.5082 GB, free: 9.238 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001293/0.5932, allocations: 25.39 kB / 0.5083 GB, free: 9.238 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.5932, allocations: 3.953 kB / 0.5083 GB, free: 9.234 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.232e-05/0.5932, allocations: 2.688 kB / 0.5083 GB, free: 9.234 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.5932, allocations: 7.875 kB / 0.5083 GB, free: 9.23 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.053e-06/0.5933, allocations: 0 / 0.5083 GB, free: 9.23 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001889/0.5935, allocations: 192.1 kB / 0.5085 GB, free: 9.094 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.171e-05/0.5935, allocations: 84.27 kB / 0.5085 GB, free: 8.996 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.919e-05/0.5935, allocations: 10.84 kB / 0.5085 GB, free: 8.992 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.958e-05/0.5936, allocations: 3.875 kB / 0.5086 GB, free: 8.992 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.397e-05/0.5937, allocations: 14.55 kB / 0.5086 GB, free: 8.984 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.24e-06/0.5937, allocations: 3.75 kB / 0.5086 GB, free: 8.984 MB / 330.7 MB Notification: Performance of sorting global known variables: time 4.062e-05/0.5937, allocations: 96.7 kB / 0.5087 GB, free: 8.91 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5937, allocations: 0 / 0.5087 GB, free: 8.91 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002081/0.5939, allocations: 23 kB / 0.5087 GB, free: 8.906 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 () * 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 9.212e-05/0.594, allocations: 97.44 kB / 0.5088 GB, free: 8.816 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001241/0.5942, allocations: 55.73 kB / 0.5088 GB, free: 8.812 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.5942, allocations: 256 / 0.5088 GB, free: 8.812 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.712e-05/0.5942, allocations: 30.28 kB / 0.5089 GB, free: 8.805 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000249/0.5945, allocations: 20.7 kB / 0.5089 GB, free: 8.801 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004993/0.595, allocations: 275.5 kB / 0.5091 GB, free: 8.594 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001529/0.5951, allocations: 0.6997 MB / 0.5098 GB, free: 7.887 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.247e-05/0.5952, allocations: 12.22 kB / 0.5098 GB, free: 7.879 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.176e-05/0.5952, allocations: 10.88 kB / 0.5098 GB, free: 7.871 MB / 330.7 MB Notification: Performance of SimCode: time 2.21e-07/0.5952, allocations: 0 / 0.5098 GB, free: 7.871 MB / 330.7 MB Notification: Performance of Templates: time 0.002973/0.5982, allocations: 0.8615 MB / 0.5107 GB, free: 7.449 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches