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.001019/0.001019, allocations: 172 kB / 16.8 MB, free: 4.902 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.545/1.545, allocations: 205.4 MB / 223 MB, free: 9.016 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.0007793/0.0007791, allocations: 89.03 kB / 271.3 MB, free: 8.246 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.07264/0.07264, allocations: 12.6 MB / 332.2 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004021/0.0004021, allocations: 12 kB / 393.2 MB, free: 65.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07883/0.07925, allocations: 50.37 MB / 443.6 MB, free: 15.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3055/0.3848, allocations: 79.16 MB / 0.5105 GB, free: 13.3 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002179/0.385, allocations: 77.67 kB / 0.5106 GB, free: 13.29 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005064/0.3901, allocations: 2.184 MB / 0.5127 GB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.445e-06/0.3901, allocations: 0 / 0.5127 GB, free: 12.37 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.778e-06/0.3902, allocations: 3.875 kB / 0.5127 GB, free: 12.37 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.0003768/0.3905, allocations: 388.6 kB / 0.5131 GB, free: 11.98 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.675e-05/0.3906, allocations: 15.3 kB / 0.5131 GB, free: 11.97 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.616e-05/0.3906, allocations: 16.62 kB / 0.5131 GB, free: 11.96 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001337/0.3908, allocations: 196.7 kB / 0.5133 GB, free: 11.75 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.019e-05/0.3908, allocations: 8.344 kB / 0.5133 GB, free: 11.75 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.533e-05/0.3908, allocations: 8.094 kB / 0.5133 GB, free: 11.75 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002216/0.391, allocations: 130.2 kB / 0.5134 GB, free: 11.67 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.353e-05/0.3911, allocations: 3.938 kB / 0.5134 GB, free: 11.67 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.293e-05/0.3911, allocations: 7.594 kB / 0.5135 GB, free: 11.67 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.3911, allocations: 0 / 0.5135 GB, free: 11.67 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001922/0.3913, allocations: 79.88 kB / 0.5135 GB, free: 11.65 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005814/0.3919, allocations: 0.5377 MB / 0.5141 GB, free: 11.17 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001661/0.3921, allocations: 84.2 kB / 0.5141 GB, free: 11.13 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000102/0.3922, allocations: 47.53 kB / 0.5142 GB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.328e-05/0.3922, allocations: 4 kB / 0.5142 GB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.065e-05/0.3922, allocations: 33.69 kB / 0.5142 GB, free: 11.07 MB / 330.7 MB Notification: Performance of pre-optimization done (n=7): time 1.332e-06/0.3922, allocations: 0 / 0.5142 GB, free: 11.07 MB / 330.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003647/0.3926, allocations: 146.7 kB / 0.5144 GB, free: 11 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.993e-05/0.3926, allocations: 51.41 kB / 0.5144 GB, free: 10.94 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.631e-05/0.3927, allocations: 131 kB / 0.5145 GB, free: 10.83 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.088e-05/0.3927, allocations: 29.58 kB / 0.5146 GB, free: 10.8 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.49e-05/0.3928, allocations: 119.7 kB / 0.5147 GB, free: 10.7 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.004e-05/0.3928, allocations: 23.48 kB / 0.5147 GB, free: 10.68 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.378e-06/0.3928, allocations: 5.781 kB / 0.5147 GB, free: 10.68 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.546e-05/0.3929, allocations: 318.8 kB / 0.515 GB, free: 10.36 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.231e-05/0.393, allocations: 37.94 kB / 0.515 GB, free: 10.35 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.515e-05/0.3931, allocations: 72.05 kB / 0.5151 GB, free: 10.3 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001855/0.3933, allocations: 120.8 kB / 0.5152 GB, free: 10.24 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.3933, allocations: 3.938 kB / 0.5152 GB, free: 10.23 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002384/0.3935, allocations: 144.3 kB / 0.5154 GB, free: 10.18 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.3936, allocations: 7.781 kB / 0.5154 GB, free: 10.17 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.052e-06/0.3936, allocations: 0 / 0.5154 GB, free: 10.17 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.671e-05/0.3936, allocations: 3.906 kB / 0.5154 GB, free: 10.17 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001531/0.3938, allocations: 34.17 kB / 0.5154 GB, free: 10.16 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.3938, allocations: 0 / 0.5154 GB, free: 10.16 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.273e-05/0.3939, allocations: 23.89 kB / 0.5154 GB, free: 10.16 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.306e-06/0.3939, allocations: 3.875 kB / 0.5154 GB, free: 10.16 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 7.221e-05/0.394, allocations: 129.4 kB / 0.5156 GB, free: 10.03 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.558e-05/0.394, allocations: 11.72 kB / 0.5156 GB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.258e-05/0.394, allocations: 7.938 kB / 0.5156 GB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.394, allocations: 3.969 kB / 0.5156 GB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.394, allocations: 7.922 kB / 0.5156 GB, free: 10.01 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.394, allocations: 0 / 0.5156 GB, free: 10.01 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001651/0.3942, allocations: 194.6 kB / 0.5158 GB, free: 9.805 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.3942, allocations: 0 / 0.5158 GB, free: 9.805 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001257/0.3944, allocations: 31.31 kB / 0.5158 GB, free: 9.797 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.3944, allocations: 4 kB / 0.5158 GB, free: 9.793 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.407e-06/0.3944, allocations: 0 / 0.5158 GB, free: 9.793 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.3944, allocations: 0 / 0.5158 GB, free: 9.793 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.3944, allocations: 3.812 kB / 0.5158 GB, free: 9.793 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003333/0.3947, allocations: 250.4 kB / 0.5161 GB, free: 9.625 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.638e-05/0.3948, allocations: 84.89 kB / 0.5161 GB, free: 9.527 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.725e-05/0.3948, allocations: 3.719 kB / 0.5161 GB, free: 9.527 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.665e-05/0.3949, allocations: 19.69 kB / 0.5162 GB, free: 9.516 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.681e-05/0.3949, allocations: 3.844 kB / 0.5162 GB, free: 9.516 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.789e-06/0.3949, allocations: 3.984 kB / 0.5162 GB, free: 9.512 MB / 330.7 MB Notification: Performance of sorting global known variables: time 3.391e-05/0.395, allocations: 103.8 kB / 0.5163 GB, free: 9.43 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.395, allocations: 0 / 0.5163 GB, free: 9.43 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002259/0.3952, allocations: 26.03 kB / 0.5163 GB, free: 9.426 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 8.353e-05/0.3953, allocations: 90.41 kB / 0.5164 GB, free: 9.34 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002268/0.3955, allocations: 94.45 kB / 0.5165 GB, free: 9.32 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.3956, allocations: 0 / 0.5165 GB, free: 9.32 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.83e-05/0.3956, allocations: 46.22 kB / 0.5165 GB, free: 9.309 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003578/0.396, allocations: 19.48 kB / 0.5165 GB, free: 9.301 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005787/0.3966, allocations: 447.5 kB / 0.517 GB, free: 8.941 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001329/0.3967, allocations: 0.7039 MB / 0.5176 GB, free: 8.23 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.277e-05/0.3968, allocations: 12.25 kB / 0.5177 GB, free: 8.223 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.223e-05/0.3968, allocations: 11.41 kB / 0.5177 GB, free: 8.215 MB / 330.7 MB Notification: Performance of SimCode: time 2.01e-07/0.3968, allocations: 0 / 0.5177 GB, free: 8.215 MB / 330.7 MB Notification: Performance of Templates: time 0.002826/0.3997, allocations: 0.8583 MB / 0.5185 GB, free: 7.797 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