Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001697/0.001697, allocations: 177.6 kB / 8.349 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.385/1.385, allocations: 221.5 MB / 230.3 MB, free: 7.523 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008706/0.0008705, allocations: 85.94 kB / 281.2 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.734e-05/1.737e-05, allocations: 4 kB / 337 MB, free: 10.05 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09301/0.09304, allocations: 50.41 MB / 387.4 MB, free: 7.598 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3119/0.4051, allocations: 77.89 MB / 465.3 MB, free: 1.016 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002058/0.4053, allocations: 71.97 kB / 465.4 MB, free: 0.9453 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006386/0.4117, allocations: 2.336 MB / 467.7 MB, free: 14.62 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.4117, allocations: 0 / 467.7 MB, free: 14.62 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.121e-05/0.4118, allocations: 4 kB / 467.8 MB, free: 14.62 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0004903/0.4123, allocations: 395 kB / 468.1 MB, free: 14.19 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.569e-05/0.4123, allocations: 16.02 kB / 468.2 MB, free: 14.18 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.731e-05/0.4124, allocations: 19.8 kB / 468.2 MB, free: 14.16 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002247/0.4126, allocations: 198.8 kB / 468.4 MB, free: 13.92 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.54e-05/0.4126, allocations: 4 kB / 468.4 MB, free: 13.92 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.136e-05/0.4127, allocations: 11.98 kB / 468.4 MB, free: 13.91 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001514/0.4128, allocations: 59.94 kB / 468.4 MB, free: 13.85 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003357/0.4132, allocations: 203.1 kB / 468.6 MB, free: 13.62 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.435e-05/0.4132, allocations: 3.953 kB / 468.6 MB, free: 13.62 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.38e-05/0.4132, allocations: 0 / 468.6 MB, free: 13.62 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.101e-06/0.4132, allocations: 8 kB / 468.7 MB, free: 13.61 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005483/0.4138, allocations: 0.5574 MB / 469.2 MB, free: 12.99 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001612/0.414, allocations: 120 kB / 469.3 MB, free: 12.85 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.578e-05/0.4141, allocations: 54.58 kB / 469.4 MB, free: 12.79 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.905e-05/0.4141, allocations: 24.12 kB / 469.4 MB, free: 12.76 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.139e-05/0.4141, allocations: 34.56 kB / 469.4 MB, free: 12.72 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 1.262e-06/0.4141, allocations: 0 / 469.4 MB, free: 12.72 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002277/0.4144, allocations: 101.5 kB / 469.5 MB, free: 12.61 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.619e-05/0.4144, allocations: 106.8 kB / 469.6 MB, free: 12.48 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.563e-05/0.4145, allocations: 115.2 kB / 469.8 MB, free: 12.36 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.426e-05/0.4145, allocations: 25.73 kB / 469.8 MB, free: 12.33 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.7e-05/0.4146, allocations: 115.9 kB / 469.9 MB, free: 12.21 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.557e-05/0.4146, allocations: 35.58 kB / 469.9 MB, free: 12.18 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.13e-06/0.4147, allocations: 0 / 469.9 MB, free: 12.18 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.121e-05/0.4148, allocations: 322.8 kB / 470.2 MB, free: 11.86 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.735e-05/0.4148, allocations: 20 kB / 470.3 MB, free: 11.84 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.617e-05/0.4149, allocations: 108.9 kB / 470.4 MB, free: 11.68 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.757e-05/0.4149, allocations: 41.23 kB / 470.4 MB, free: 11.64 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.415, allocations: 0 / 470.4 MB, free: 11.64 MB / 346.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001979/0.4152, allocations: 141.4 kB / 470.5 MB, free: 11.5 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/0.4152, allocations: 8 kB / 470.6 MB, free: 11.49 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.207e-06/0.4152, allocations: 4 kB / 470.6 MB, free: 11.49 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.4152, allocations: 4 kB / 470.6 MB, free: 11.48 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001777/0.4154, allocations: 47.91 kB / 470.6 MB, free: 11.44 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.155e-06/0.4154, allocations: 4 kB / 470.6 MB, free: 11.43 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001023/0.4156, allocations: 24.14 kB / 470.6 MB, free: 11.41 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.696e-05/0.4156, allocations: 16.58 kB / 470.7 MB, free: 11.39 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.873e-05/0.4157, allocations: 108.9 kB / 470.8 MB, free: 11.28 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001301/0.4158, allocations: 81.56 kB / 470.8 MB, free: 11.2 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.106e-05/0.4158, allocations: 12.62 kB / 470.8 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.4159, allocations: 0 / 470.8 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.4159, allocations: 4 kB / 470.9 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.4159, allocations: 4.078 kB / 470.9 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002274/0.4161, allocations: 182 kB / 471 MB, free: 10.96 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.4161, allocations: 4 kB / 471 MB, free: 10.96 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001698/0.4163, allocations: 31.98 kB / 471.1 MB, free: 10.93 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-06/0.4163, allocations: 0 / 471.1 MB, free: 10.93 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.274e-05/0.4163, allocations: 4 kB / 471.1 MB, free: 10.92 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.4163, allocations: 0 / 471.1 MB, free: 10.92 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/0.4163, allocations: 3.938 kB / 471.1 MB, free: 10.92 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000308/0.4167, allocations: 354.9 kB / 471.4 MB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.881e-05/0.4167, allocations: 85.05 kB / 471.5 MB, free: 10.44 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.176e-05/0.4167, allocations: 4 kB / 471.5 MB, free: 10.43 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00013/0.4169, allocations: 7.984 kB / 471.5 MB, free: 10.43 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.937e-05/0.4169, allocations: 8 kB / 471.5 MB, free: 10.42 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.012e-05/0.4169, allocations: 12.02 kB / 471.5 MB, free: 10.41 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.682e-05/0.417, allocations: 92.95 kB / 471.6 MB, free: 10.32 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.417, allocations: 0 / 471.6 MB, free: 10.32 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003135/0.4173, allocations: 27.84 kB / 471.7 MB, free: 10.29 MB / 346.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 14 * 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.0001191/0.4175, allocations: 103.2 kB / 471.8 MB, free: 10.18 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001613/0.4176, allocations: 84.55 kB / 471.8 MB, free: 10.1 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.4176, allocations: 0 / 471.8 MB, free: 10.1 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.968e-05/0.4177, allocations: 20.12 kB / 471.9 MB, free: 10.08 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003323/0.418, allocations: 36.02 kB / 471.9 MB, free: 10.04 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005186/0.4185, allocations: 286.8 kB / 472.2 MB, free: 9.73 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002722/0.4188, allocations: 0.7162 MB / 472.9 MB, free: 8.988 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 5.414e-05/0.4189, allocations: 12.77 kB / 472.9 MB, free: 8.977 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.598e-05/0.4189, allocations: 15.81 kB / 472.9 MB, free: 8.961 MB / 346.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4189, allocations: 0 / 472.9 MB, free: 8.961 MB / 346.7 MB Notification: Performance of Templates: time 0.002966/0.4219, allocations: 0.962 MB / 473.9 MB, free: 8.039 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches