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.002116/0.002116, allocations: 177.7 kB / 8.048 MB, free: 1.027 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.167/2.167, allocations: 205.3 MB / 213.8 MB, free: 13.76 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.001478/0.001478, allocations: 88 kB / 261.8 MB, free: 13.45 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.1252/0.1252, allocations: 12.58 MB / 322.3 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.054e-05/2.077e-05, allocations: 0 / 378.9 MB, free: 75.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09834/0.09839, allocations: 50.38 MB / 429.3 MB, free: 24.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4317/0.5301, allocations: 78.38 MB / 0.4958 GB, free: 11.89 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002694/0.5305, allocations: 70.38 kB / 0.4958 GB, free: 11.89 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008545/0.539, allocations: 2.161 MB / 0.498 GB, free: 11.47 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.482e-06/0.5391, allocations: 0 / 0.498 GB, free: 11.47 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.27e-05/0.5391, allocations: 3.844 kB / 0.498 GB, free: 11.47 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.0005271/0.5397, allocations: 391.5 kB / 0.4983 GB, free: 11.1 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/0.5397, allocations: 11.53 kB / 0.4983 GB, free: 11.1 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.463e-05/0.5398, allocations: 7.75 kB / 0.4984 GB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001965/0.54, allocations: 188.2 kB / 0.4985 GB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.117e-06/0.54, allocations: 0 / 0.4985 GB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.773e-05/0.54, allocations: 19.23 kB / 0.4986 GB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001604/0.5402, allocations: 36.53 kB / 0.4986 GB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001905/0.5404, allocations: 96.31 kB / 0.4987 GB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.726e-05/0.5404, allocations: 0 / 0.4987 GB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.56e-05/0.5405, allocations: 0 / 0.4987 GB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.523e-06/0.5405, allocations: 3.812 kB / 0.4987 GB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008685/0.5414, allocations: 0.5105 MB / 0.4992 GB, free: 10.43 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001445/0.5415, allocations: 59.41 kB / 0.4992 GB, free: 10.4 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.22e-05/0.5416, allocations: 28.19 kB / 0.4993 GB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.722e-05/0.5416, allocations: 7.75 kB / 0.4993 GB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.81e-05/0.5417, allocations: 38.69 kB / 0.4993 GB, free: 10.34 MB / 330.7 MB Notification: Performance of pre-optimization done (n=7): time 2.114e-06/0.5417, allocations: 0 / 0.4993 GB, free: 10.34 MB / 330.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002284/0.5419, allocations: 66.84 kB / 0.4994 GB, free: 10.3 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.365e-05/0.5419, allocations: 55.25 kB / 0.4994 GB, free: 10.24 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.836e-05/0.542, allocations: 117.3 kB / 0.4995 GB, free: 10.15 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.265e-05/0.5421, allocations: 25.7 kB / 0.4996 GB, free: 10.12 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.595e-05/0.5421, allocations: 117.6 kB / 0.4997 GB, free: 10.02 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.544e-05/0.5422, allocations: 30.41 kB / 0.4997 GB, free: 10 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.352e-06/0.5422, allocations: 0 / 0.4997 GB, free: 10 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.167e-05/0.5423, allocations: 317.5 kB / 0.5 GB, free: 9.688 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.174e-05/0.5423, allocations: 18.25 kB / 0.5 GB, free: 9.688 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.215e-05/0.5424, allocations: 50.33 kB / 0.5001 GB, free: 9.648 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.794e-05/0.5425, allocations: 27.09 kB / 0.5001 GB, free: 9.645 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.5425, allocations: 0 / 0.5001 GB, free: 9.645 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001978/0.5427, allocations: 104.2 kB / 0.5002 GB, free: 9.598 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.5427, allocations: 3.844 kB / 0.5002 GB, free: 9.598 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.5427, allocations: 0 / 0.5002 GB, free: 9.598 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.847e-05/0.5428, allocations: 7.797 kB / 0.5002 GB, free: 9.594 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000276/0.5431, allocations: 37.34 kB / 0.5002 GB, free: 9.59 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.032e-06/0.5431, allocations: 4.125 kB / 0.5002 GB, free: 9.586 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001303/0.5432, allocations: 18.83 kB / 0.5003 GB, free: 9.578 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.135e-05/0.5432, allocations: 3.906 kB / 0.5003 GB, free: 9.578 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 6.226e-05/0.5433, allocations: 110.5 kB / 0.5004 GB, free: 9.473 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.589e-05/0.5434, allocations: 7.75 kB / 0.5004 GB, free: 9.469 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.07e-05/0.5434, allocations: 8.25 kB / 0.5004 GB, free: 9.465 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.5434, allocations: 3.875 kB / 0.5004 GB, free: 9.465 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.5434, allocations: 7.953 kB / 0.5004 GB, free: 9.457 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.5435, allocations: 2.719 kB / 0.5004 GB, free: 9.457 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001913/0.5437, allocations: 160.9 kB / 0.5006 GB, free: 9.301 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.5437, allocations: 0 / 0.5006 GB, free: 9.301 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002442/0.5439, allocations: 26.61 kB / 0.5006 GB, free: 9.297 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.5439, allocations: 0 / 0.5006 GB, free: 9.297 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.425e-05/0.544, allocations: 3.438 kB / 0.5006 GB, free: 9.297 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.544, allocations: 0 / 0.5006 GB, free: 9.297 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.544, allocations: 3.844 kB / 0.5006 GB, free: 9.297 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002439/0.5442, allocations: 198.2 kB / 0.5008 GB, free: 9.152 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.51e-05/0.5443, allocations: 84.39 kB / 0.5009 GB, free: 9.055 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.519e-05/0.5443, allocations: 3.906 kB / 0.5009 GB, free: 9.055 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001534/0.5445, allocations: 9.062 kB / 0.5009 GB, free: 9.055 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.956e-05/0.5445, allocations: 3.906 kB / 0.5009 GB, free: 9.055 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.356e-06/0.5446, allocations: 0.875 kB / 0.5009 GB, free: 9.055 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.245e-05/0.5446, allocations: 95.77 kB / 0.501 GB, free: 8.98 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5446, allocations: 4 kB / 0.501 GB, free: 8.977 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003852/0.545, allocations: 25.12 kB / 0.501 GB, free: 8.973 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 0.0001125/0.5452, allocations: 102.1 kB / 0.5011 GB, free: 8.875 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001695/0.5453, allocations: 54.97 kB / 0.5011 GB, free: 8.871 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.5454, allocations: 0 / 0.5011 GB, free: 8.871 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.517e-05/0.5454, allocations: 14.88 kB / 0.5012 GB, free: 8.871 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000345/0.5458, allocations: 21.5 kB / 0.5012 GB, free: 8.867 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000696/0.5465, allocations: 274.2 kB / 0.5014 GB, free: 8.664 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001578/0.5467, allocations: 0.7081 MB / 0.5021 GB, free: 7.961 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 6.83e-05/0.5467, allocations: 7.375 kB / 0.5021 GB, free: 7.961 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.505e-05/0.5468, allocations: 11.38 kB / 0.5021 GB, free: 7.953 MB / 330.7 MB Notification: Performance of SimCode: time 6.61e-07/0.5468, allocations: 0 / 0.5021 GB, free: 7.953 MB / 330.7 MB Notification: Performance of Templates: time 0.004009/0.5508, allocations: 0.8072 MB / 0.5029 GB, free: 7.879 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/jenkins1/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