Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00175/0.00175, allocations: 196 kB / 18.1 MB, free: 3.734 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.306/1.306, allocations: 226.5 MB / 245.4 MB, free: 8.23 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008048/0.0008049, allocations: 95.39 kB / 297.5 MB, free: 6.871 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002844/0.0002845, allocations: 11.98 kB / 358.1 MB, free: 10.27 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3024/0.3027, allocations: 51.29 MB / 409.4 MB, free: 27.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1022/0.405, allocations: 79.42 MB / 488.8 MB, free: 12.09 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002909/0.4054, allocations: 75.97 kB / 488.9 MB, free: 12.01 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006726/0.4121, allocations: 2.437 MB / 491.3 MB, free: 9.586 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.425e-06/0.4122, allocations: 0 / 491.3 MB, free: 9.586 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.155e-05/0.4122, allocations: 4 kB / 491.3 MB, free: 9.582 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0005166/0.4127, allocations: 427.1 kB / 491.7 MB, free: 9.113 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.4128, allocations: 12.03 kB / 491.7 MB, free: 9.102 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.266e-05/0.4128, allocations: 12.84 kB / 491.7 MB, free: 9.09 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002154/0.4131, allocations: 204 kB / 491.9 MB, free: 8.852 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.449e-05/0.4131, allocations: 12.31 kB / 492 MB, free: 8.84 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.132e-05/0.4131, allocations: 12.38 kB / 492 MB, free: 8.828 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004823/0.4136, allocations: 250.8 kB / 492.2 MB, free: 8.562 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.361e-05/0.4136, allocations: 192 / 492.2 MB, free: 8.562 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.762e-05/0.4137, allocations: 7.938 kB / 492.2 MB, free: 8.555 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.214e-06/0.4137, allocations: 4 kB / 492.2 MB, free: 8.551 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002481/0.4139, allocations: 99.88 kB / 492.3 MB, free: 8.453 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006278/0.4146, allocations: 0.592 MB / 492.9 MB, free: 7.789 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003315/0.4149, allocations: 155.7 kB / 493.1 MB, free: 7.609 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001563/0.4151, allocations: 78.83 kB / 493.1 MB, free: 7.523 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.803e-05/0.4151, allocations: 11.86 kB / 493.1 MB, free: 7.512 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.451e-05/0.4151, allocations: 38.56 kB / 493.2 MB, free: 7.465 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.433e-06/0.4151, allocations: 4 kB / 493.2 MB, free: 7.461 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005117/0.4157, allocations: 197.4 kB / 493.4 MB, free: 7.262 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.202e-05/0.4158, allocations: 114.9 kB / 493.5 MB, free: 7.125 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001013/0.4159, allocations: 126.1 kB / 493.6 MB, free: 6.988 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.815e-05/0.4159, allocations: 29.7 kB / 493.6 MB, free: 6.953 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.545e-05/0.416, allocations: 111.9 kB / 493.8 MB, free: 6.84 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.746e-05/0.416, allocations: 27.73 kB / 493.8 MB, free: 6.812 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.849e-06/0.416, allocations: 0 / 493.8 MB, free: 6.812 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001098/0.4161, allocations: 326.8 kB / 494.1 MB, free: 6.484 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001268/0.4163, allocations: 39.97 kB / 494.1 MB, free: 6.445 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001653/0.4164, allocations: 146.5 kB / 494.3 MB, free: 6.258 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002743/0.4167, allocations: 193.5 kB / 494.5 MB, free: 6.02 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.4167, allocations: 0 / 494.5 MB, free: 6.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003552/0.4171, allocations: 217.4 kB / 494.7 MB, free: 5.801 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.4171, allocations: 8 kB / 494.7 MB, free: 5.793 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.4171, allocations: 7.938 kB / 494.7 MB, free: 5.785 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.617e-05/0.4171, allocations: 4 kB / 494.7 MB, free: 5.781 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001541/0.4173, allocations: 51.91 kB / 494.8 MB, free: 5.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.151e-05/0.4173, allocations: 8 kB / 494.8 MB, free: 5.723 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.918e-05/0.4174, allocations: 19.83 kB / 494.8 MB, free: 5.703 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.531e-05/0.4175, allocations: 12 kB / 494.8 MB, free: 5.691 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.264e-05/0.4176, allocations: 129.8 kB / 494.9 MB, free: 5.555 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000143/0.4177, allocations: 93.47 kB / 495 MB, free: 5.457 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.779e-05/0.4178, allocations: 13.19 kB / 495 MB, free: 5.441 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.4178, allocations: 4 kB / 495 MB, free: 5.438 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.4178, allocations: 0 / 495 MB, free: 5.438 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.874e-06/0.4178, allocations: 8.219 kB / 495 MB, free: 5.43 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002504/0.4181, allocations: 201.5 kB / 495.2 MB, free: 5.184 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.4181, allocations: 3.938 kB / 495.2 MB, free: 5.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001725/0.4183, allocations: 47.92 kB / 495.3 MB, free: 5.133 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.001e-06/0.4183, allocations: 7.984 kB / 495.3 MB, free: 5.125 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.327e-05/0.4183, allocations: 0 / 495.3 MB, free: 5.125 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.4183, allocations: 3.938 kB / 495.3 MB, free: 5.121 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.041e-06/0.4183, allocations: 4 kB / 495.3 MB, free: 5.117 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004976/0.4188, allocations: 402.4 kB / 495.7 MB, free: 4.707 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.652e-05/0.4189, allocations: 88.98 kB / 495.8 MB, free: 4.602 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.881e-05/0.4189, allocations: 0 / 495.8 MB, free: 4.602 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001334/0.4191, allocations: 20.05 kB / 495.8 MB, free: 4.582 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.421e-05/0.4191, allocations: 7.984 kB / 495.8 MB, free: 4.574 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.997e-06/0.4191, allocations: 4 kB / 495.8 MB, free: 4.57 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.086e-05/0.4192, allocations: 103.2 kB / 495.9 MB, free: 4.469 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4192, allocations: 0 / 495.9 MB, free: 4.469 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003061/0.4195, allocations: 31.84 kB / 495.9 MB, free: 4.438 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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.0001323/0.4197, allocations: 103.2 kB / 496 MB, free: 4.328 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003005/0.42, allocations: 132.6 kB / 496.2 MB, free: 4.199 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.42, allocations: 0 / 496.2 MB, free: 4.199 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.399e-05/0.4201, allocations: 36.05 kB / 496.2 MB, free: 4.164 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004759/0.4206, allocations: 59.88 kB / 496.3 MB, free: 4.105 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000674/0.4212, allocations: 476.7 kB / 496.7 MB, free: 3.613 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000232/0.4215, allocations: 0.7165 MB / 497.5 MB, free: 2.871 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.928e-05/0.4215, allocations: 9.078 kB / 497.5 MB, free: 2.863 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.999e-05/0.4216, allocations: 15.44 kB / 497.5 MB, free: 2.848 MB / 362.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4216, allocations: 0 / 497.5 MB, free: 2.848 MB / 362.7 MB Notification: Performance of Templates: time 0.003439/0.425, allocations: 1.04 MB / 498.5 MB, free: 1.828 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches