Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,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.ClockedWithDiscretizedContinuousController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,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.ClockedWithDiscretizedContinuousController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009487/0.0009492, allocations: 98.59 kB / 16.3 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009216/0.0009217, allocations: 180.9 kB / 17.19 MB, free: 5.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.391/1.391, allocations: 223.2 MB / 241.1 MB, free: 376 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002552/0.0002552, allocations: 7.938 kB / 300.7 MB, free: 6.508 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09593/0.0962, allocations: 50.42 MB / 351.1 MB, free: 4.078 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.002214/0.09846, allocations: 1.687 MB / 352.8 MB, free: 2.375 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007626/0.09926, allocations: 479.1 kB / 353.3 MB, free: 1.902 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.267e-05/0.09937, allocations: 4 kB / 353.3 MB, free: 1.898 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.347e-05/0.09941, allocations: 19.86 kB / 353.3 MB, free: 1.879 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.197e-05/0.09951, allocations: 23.94 kB / 353.3 MB, free: 1.855 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000244/0.09976, allocations: 50.64 kB / 353.4 MB, free: 1.809 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001435/0.09991, allocations: 83.78 kB / 353.5 MB, free: 1.727 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000133/0.1001, allocations: 53.3 kB / 353.5 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.648e-05/0.1001, allocations: 35.86 kB / 353.5 MB, free: 1.637 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.959e-05/0.1002, allocations: 47.77 kB / 353.6 MB, free: 1.59 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.748e-05/0.1002, allocations: 4 kB / 353.6 MB, free: 1.586 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.633e-05/0.1002, allocations: 4 kB / 353.6 MB, free: 1.582 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.13e-05/0.1003, allocations: 19.92 kB / 353.6 MB, free: 1.562 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.391e-05/0.1003, allocations: 45.58 kB / 353.7 MB, free: 1.512 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001022/0.1004, allocations: 92.03 kB / 353.8 MB, free: 1.422 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.1004, allocations: 0 / 353.8 MB, free: 1.422 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1004, allocations: 0 / 353.8 MB, free: 1.422 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.717e-06/0.1004, allocations: 7.938 kB / 353.8 MB, free: 1.414 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0004932/0.1009, allocations: 418.9 kB / 354.2 MB, free: 0.957 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.025e-05/0.101, allocations: 8.031 kB / 354.2 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.723e-05/0.101, allocations: 19.77 kB / 354.2 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001924/0.1012, allocations: 206.1 kB / 354.4 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.381e-05/0.1012, allocations: 8 kB / 354.4 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.755e-05/0.1013, allocations: 16 kB / 354.4 MB, free: 0.668 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004205/0.1017, allocations: 226.5 kB / 354.6 MB, free: 432 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.1017, allocations: 11.91 kB / 354.7 MB, free: 420 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.639e-05/0.1018, allocations: 7.953 kB / 354.7 MB, free: 412 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-06/0.1018, allocations: 4 kB / 354.7 MB, free: 408 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002433/0.102, allocations: 91.86 kB / 354.8 MB, free: 316 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006177/0.1026, allocations: 0.5999 MB / 355.4 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003246/0.103, allocations: 160.1 kB / 355.5 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.9e-05/0.103, allocations: 0 / 355.5 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.017e-05/0.103, allocations: 38.56 kB / 355.6 MB, free: 15.41 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 9.72e-07/0.103, allocations: 0 / 355.6 MB, free: 15.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.000495/0.1035, allocations: 193.6 kB / 355.7 MB, free: 15.21 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.318e-05/0.1036, allocations: 114.8 kB / 355.9 MB, free: 15.07 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000104/0.1037, allocations: 144.8 kB / 356 MB, free: 14.92 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.132e-05/0.1038, allocations: 25.7 kB / 356 MB, free: 14.89 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.336e-05/0.1038, allocations: 115.9 kB / 356.1 MB, free: 14.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.303e-05/0.1039, allocations: 27.7 kB / 356.2 MB, free: 14.75 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.699e-06/0.1039, allocations: 0 / 356.2 MB, free: 14.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.104, allocations: 330.9 kB / 356.5 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001117/0.1041, allocations: 40.34 kB / 356.5 MB, free: 14.38 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001674/0.1043, allocations: 141.5 kB / 356.7 MB, free: 14.19 MB / 302.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = 0.0 (PI.y_start = 0.0) Notification: Performance of analyzeInitialSystem (initialization): time 0.0002763/0.1046, allocations: 153.5 kB / 356.8 MB, free: 14.02 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.1046, allocations: 4 kB / 356.8 MB, free: 14.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003632/0.105, allocations: 201.2 kB / 357 MB, free: 13.82 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/0.105, allocations: 4 kB / 357 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.105, allocations: 7.938 kB / 357 MB, free: 13.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.749e-05/0.105, allocations: 8 kB / 357 MB, free: 13.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000157/0.1052, allocations: 48.38 kB / 357.1 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.08e-05/0.1052, allocations: 7.938 kB / 357.1 MB, free: 13.74 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001153/0.1053, allocations: 31.83 kB / 357.1 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.348e-05/0.1053, allocations: 11.95 kB / 357.1 MB, free: 13.7 MB / 302.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: PI.y = 0.0. 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 0.0001116/0.1055, allocations: 133.7 kB / 357.3 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001531/0.1056, allocations: 93.44 kB / 357.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.33e-05/0.1057, allocations: 20.64 kB / 357.4 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.668e-06/0.1057, allocations: 4 kB / 357.4 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.1057, allocations: 4 kB / 357.4 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.1057, allocations: 0 / 357.4 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002649/0.106, allocations: 209.5 kB / 357.6 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.106, allocations: 0 / 357.6 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002066/0.1062, allocations: 47.95 kB / 357.6 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.1062, allocations: 0 / 357.6 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.624e-05/0.1062, allocations: 8 kB / 357.6 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.1062, allocations: 0 / 357.6 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1062, allocations: 0 / 357.6 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005809/0.1068, allocations: 426.7 kB / 358.1 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.558e-05/0.1069, allocations: 92.95 kB / 358.1 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.369e-05/0.1069, allocations: 4 kB / 358.2 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000138/0.1071, allocations: 11.98 kB / 358.2 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.37e-05/0.1071, allocations: 7.953 kB / 358.2 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.995e-06/0.1071, allocations: 4 kB / 358.2 MB, free: 12.54 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.297e-05/0.1072, allocations: 113.9 kB / 358.3 MB, free: 12.43 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1072, allocations: 0 / 358.3 MB, free: 12.43 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003102/0.1075, allocations: 27.91 kB / 358.3 MB, free: 12.4 MB / 302.1 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.0001233/0.1077, allocations: 107.2 kB / 358.4 MB, free: 12.29 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003307/0.108, allocations: 132 kB / 358.5 MB, free: 12.16 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.108, allocations: 0 / 358.5 MB, free: 12.16 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.663e-05/0.1081, allocations: 32.66 kB / 358.6 MB, free: 12.12 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003902/0.1085, allocations: 68.03 kB / 358.6 MB, free: 12.06 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008294/0.1094, allocations: 0.4998 MB / 359.1 MB, free: 11.52 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000279/0.1096, allocations: 0.7245 MB / 359.9 MB, free: 10.77 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.443e-05/0.1097, allocations: 9.078 kB / 359.9 MB, free: 10.76 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.681e-05/0.1097, allocations: 15.44 kB / 359.9 MB, free: 10.75 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1097, allocations: 0 / 359.9 MB, free: 10.75 MB / 302.1 MB Notification: Performance of Templates: time 0.003568/0.1133, allocations: 1.118 MB / 361 MB, free: 9.66 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches