Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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.1.0-beta.om_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.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001507/0.001507, allocations: 118.6 kB / 18.45 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001579/0.001579, allocations: 207.6 kB / 19.41 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.39/1.39, allocations: 227.7 MB / 247.9 MB, free: 10.15 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001895/0.001895, allocations: 68.08 kB / 359.6 MB, free: 12.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2371/0.239, allocations: 50.54 MB / 410.2 MB, free: 1.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003482/0.2425, allocations: 2.075 MB / 412.3 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009334/0.2434, allocations: 0.5415 MB / 412.8 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.742e-05/0.2435, allocations: 4 kB / 412.8 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001014/0.2436, allocations: 15.8 kB / 412.8 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.318e-05/0.2437, allocations: 31.72 kB / 412.8 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000248/0.2439, allocations: 55.88 kB / 412.9 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001922/0.2441, allocations: 127.6 kB / 413 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001418/0.2442, allocations: 53.77 kB / 413.1 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.189e-05/0.2443, allocations: 43.8 kB / 413.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001043/0.2444, allocations: 63.64 kB / 413.2 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.573e-05/0.2445, allocations: 12 kB / 413.2 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.072e-05/0.2445, allocations: 8 kB / 413.2 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.939e-05/0.2445, allocations: 27.91 kB / 413.2 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.339e-05/0.2446, allocations: 59.67 kB / 413.3 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002003/0.2448, allocations: 123.3 kB / 413.4 MB, free: 14.17 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.2448, allocations: 0 / 413.4 MB, free: 14.17 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2448, allocations: 0 / 413.4 MB, free: 14.17 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.2448, allocations: 0 / 413.4 MB, free: 14.17 MB / 334.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.0006258/0.2454, allocations: 442.8 kB / 413.8 MB, free: 13.68 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.2455, allocations: 8.031 kB / 413.8 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.626e-05/0.2455, allocations: 20.84 kB / 413.9 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002753/0.2458, allocations: 212.2 kB / 414.1 MB, free: 13.41 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.51e-05/0.2458, allocations: 12.31 kB / 414.1 MB, free: 13.4 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.406e-05/0.2458, allocations: 16.33 kB / 414.1 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000478/0.2463, allocations: 234.9 kB / 414.3 MB, free: 13.13 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.2463, allocations: 0 / 414.3 MB, free: 13.13 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.61e-05/0.2463, allocations: 8 kB / 414.3 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-06/0.2463, allocations: 0 / 414.3 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002591/0.2466, allocations: 95.8 kB / 414.4 MB, free: 13.03 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006785/0.2473, allocations: 0.5921 MB / 415 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003281/0.2476, allocations: 143.9 kB / 415.2 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001656/0.2478, allocations: 78.56 kB / 415.2 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.231e-05/0.2478, allocations: 4 kB / 415.2 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3e-05/0.2478, allocations: 34.56 kB / 415.3 MB, free: 12.06 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.193e-06/0.2478, allocations: 0 / 415.3 MB, free: 12.06 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005069/0.2483, allocations: 173.5 kB / 415.5 MB, free: 11.89 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.597e-05/0.2484, allocations: 118.8 kB / 415.6 MB, free: 11.75 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001267/0.2485, allocations: 134.2 kB / 415.7 MB, free: 11.61 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.468e-05/0.2486, allocations: 29.7 kB / 415.7 MB, free: 11.57 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.889e-05/0.2487, allocations: 124 kB / 415.8 MB, free: 11.45 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.726e-05/0.2487, allocations: 27.78 kB / 415.9 MB, free: 11.42 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.867e-05/0.2487, allocations: 33.72 kB / 415.9 MB, free: 11.38 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.2489, allocations: 322.8 kB / 416.2 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001179/0.249, allocations: 43.97 kB / 416.3 MB, free: 11.01 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000193/0.2492, allocations: 137.6 kB / 416.4 MB, free: 10.83 MB / 334.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 = PI.y_start (0.0 = PI.y_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.0004347/0.2496, allocations: 281.3 kB / 416.7 MB, free: 10.49 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.2496, allocations: 7.938 kB / 416.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003966/0.25, allocations: 197.2 kB / 416.9 MB, free: 10.28 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.25, allocations: 11.92 kB / 416.9 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.797e-06/0.2501, allocations: 4 kB / 416.9 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.2501, allocations: 4 kB / 416.9 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001611/0.2502, allocations: 47.92 kB / 416.9 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.088e-05/0.2502, allocations: 8.453 kB / 416.9 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001025/0.2503, allocations: 19.89 kB / 417 MB, free: 10.19 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.492e-05/0.2504, allocations: 16 kB / 417 MB, free: 10.17 MB / 334.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: PI.y = PI.y_start. 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000121/0.2505, allocations: 133.7 kB / 417.1 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001757/0.2507, allocations: 93.88 kB / 417.2 MB, free: 9.934 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.626e-05/0.2507, allocations: 16.72 kB / 417.2 MB, free: 9.91 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.2507, allocations: 4 kB / 417.2 MB, free: 9.906 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.2507, allocations: 0 / 417.2 MB, free: 9.906 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.2507, allocations: 0 / 417.2 MB, free: 9.906 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002957/0.251, allocations: 225.4 kB / 417.4 MB, free: 9.637 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.251, allocations: 0 / 417.4 MB, free: 9.637 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002107/0.2512, allocations: 43.91 kB / 417.5 MB, free: 9.594 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.2512, allocations: 0 / 417.5 MB, free: 9.594 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.918e-05/0.2512, allocations: 12 kB / 417.5 MB, free: 9.582 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.2512, allocations: 0 / 417.5 MB, free: 9.582 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.2512, allocations: 0 / 417.5 MB, free: 9.582 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005681/0.2518, allocations: 383.7 kB / 417.9 MB, free: 9.188 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.366e-05/0.2519, allocations: 93.02 kB / 418 MB, free: 9.078 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.349e-05/0.2519, allocations: 4 kB / 418 MB, free: 9.074 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001383/0.252, allocations: 11.98 kB / 418 MB, free: 9.062 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.494e-05/0.2521, allocations: 7.938 kB / 418 MB, free: 9.055 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.887e-06/0.2521, allocations: 4.047 kB / 418 MB, free: 9.051 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.364e-05/0.2522, allocations: 109.7 kB / 418.1 MB, free: 8.945 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2522, allocations: 0 / 418.1 MB, free: 8.945 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003243/0.2525, allocations: 31.95 kB / 418.1 MB, free: 8.914 MB / 334.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001087/0.2526, allocations: 99.25 kB / 418.2 MB, free: 8.809 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003561/0.2529, allocations: 132.4 kB / 418.4 MB, free: 8.68 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.2529, allocations: 0 / 418.4 MB, free: 8.68 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.976e-05/0.253, allocations: 27.92 kB / 418.4 MB, free: 8.652 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004912/0.2535, allocations: 55.92 kB / 418.4 MB, free: 8.598 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008773/0.2544, allocations: 414.3 kB / 418.8 MB, free: 8.16 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003601/0.2548, allocations: 0.7278 MB / 419.6 MB, free: 7.406 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.225e-05/0.2548, allocations: 9.094 kB / 419.6 MB, free: 7.398 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.765e-05/0.2549, allocations: 19.38 kB / 419.6 MB, free: 7.379 MB / 334.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2549, allocations: 0 / 419.6 MB, free: 7.379 MB / 334.1 MB Notification: Performance of Templates: time 0.00419/0.259, allocations: 1.354 MB / 421 MB, free: 6.078 MB / 334.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches