Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.ClockedWithDiscreteController,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.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_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001277/0.001277, allocations: 120.5 kB / 18.45 MB, free: 4.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001304/0.001304, allocations: 215.8 kB / 19.41 MB, free: 3.684 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.397/1.397, allocations: 227.7 MB / 247.9 MB, free: 10.19 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.001859/0.001859, allocations: 63.89 kB / 359.6 MB, free: 12.78 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2315/0.2333, allocations: 50.54 MB / 410.2 MB, free: 1.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.005483/0.2388, allocations: 2.014 MB / 412.2 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001195/0.24, allocations: 0.5648 MB / 412.8 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001234/0.2401, allocations: 4 kB / 412.8 MB, free: 14.83 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001102/0.2403, allocations: 11.81 kB / 412.8 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001585/0.2404, allocations: 39.72 kB / 412.8 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002437/0.2407, allocations: 51.81 kB / 412.9 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002093/0.2409, allocations: 131.5 kB / 413 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001405/0.241, allocations: 41.38 kB / 413 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001006/0.2411, allocations: 59.72 kB / 413.1 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.596e-05/0.2412, allocations: 55.75 kB / 413.2 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.998e-05/0.2412, allocations: 8 kB / 413.2 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.261e-05/0.2413, allocations: 15.94 kB / 413.2 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.713e-05/0.2413, allocations: 27.86 kB / 413.2 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.578e-05/0.2414, allocations: 59.73 kB / 413.3 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00022/0.2416, allocations: 131.2 kB / 413.4 MB, free: 14.21 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2416, allocations: 4 kB / 413.4 MB, free: 14.21 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2416, allocations: 0 / 413.4 MB, free: 14.21 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.135e-05/0.2416, allocations: 0 / 413.4 MB, free: 14.21 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006583/0.2423, allocations: 426.9 kB / 413.8 MB, free: 13.74 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.2423, allocations: 8.031 kB / 413.8 MB, free: 13.73 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.68e-05/0.2423, allocations: 16.84 kB / 413.8 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002913/0.2426, allocations: 216.1 kB / 414 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.153e-05/0.2426, allocations: 8.375 kB / 414.1 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.694e-05/0.2427, allocations: 12.38 kB / 414.1 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005162/0.2432, allocations: 250.9 kB / 414.3 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.682e-05/0.2432, allocations: 3.938 kB / 414.3 MB, free: 13.17 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.34e-05/0.2432, allocations: 4 kB / 414.3 MB, free: 13.17 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.169e-06/0.2432, allocations: 4 kB / 414.3 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002954/0.2435, allocations: 91.86 kB / 414.4 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007055/0.2442, allocations: 0.5844 MB / 415 MB, free: 12.42 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003593/0.2446, allocations: 151.8 kB / 415.1 MB, free: 12.24 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001753/0.2448, allocations: 70.62 kB / 415.2 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.693e-05/0.2448, allocations: 4 kB / 415.2 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.686e-05/0.2448, allocations: 34.5 kB / 415.3 MB, free: 12.12 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.302e-06/0.2448, allocations: 0 / 415.3 MB, free: 12.12 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005466/0.2454, allocations: 193.4 kB / 415.4 MB, free: 11.92 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.667e-05/0.2455, allocations: 107.2 kB / 415.5 MB, free: 11.79 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001203/0.2456, allocations: 130.1 kB / 415.7 MB, free: 11.65 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.898e-05/0.2456, allocations: 25.7 kB / 415.7 MB, free: 11.62 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.645e-05/0.2457, allocations: 116 kB / 415.8 MB, free: 11.5 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.98e-05/0.2457, allocations: 31.78 kB / 415.8 MB, free: 11.47 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.706e-05/0.2458, allocations: 41.83 kB / 415.9 MB, free: 11.43 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.2459, allocations: 322.8 kB / 416.2 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001303/0.2461, allocations: 35.97 kB / 416.2 MB, free: 11.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00026/0.2463, allocations: 135.2 kB / 416.4 MB, free: 10.89 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003424/0.2467, allocations: 185.5 kB / 416.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.163e-06/0.2467, allocations: 8 kB / 416.6 MB, free: 10.65 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004105/0.2471, allocations: 205.1 kB / 416.8 MB, free: 10.44 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.2471, allocations: 4 kB / 416.8 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.2471, allocations: 4 kB / 416.8 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.81e-05/0.2471, allocations: 4 kB / 416.8 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001697/0.2473, allocations: 52.38 kB / 416.8 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.114e-05/0.2473, allocations: 11.94 kB / 416.8 MB, free: 10.37 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001143/0.2474, allocations: 23.88 kB / 416.9 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.577e-05/0.2474, allocations: 12 kB / 416.9 MB, free: 10.33 MB / 334.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000116/0.2476, allocations: 129.7 kB / 417 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001651/0.2477, allocations: 89.58 kB / 417.1 MB, free: 10.1 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.044e-05/0.2478, allocations: 16.72 kB / 417.1 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.846e-06/0.2478, allocations: 0 / 417.1 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.353e-06/0.2478, allocations: 4 kB / 417.1 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.2478, allocations: 7.984 kB / 417.1 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003019/0.2481, allocations: 209.5 kB / 417.3 MB, free: 9.812 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.2481, allocations: 0 / 417.3 MB, free: 9.812 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001781/0.2483, allocations: 35.98 kB / 417.3 MB, free: 9.777 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.2483, allocations: 0 / 417.3 MB, free: 9.777 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.437e-05/0.2483, allocations: 4 kB / 417.3 MB, free: 9.773 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.24e-06/0.2483, allocations: 3.984 kB / 417.4 MB, free: 9.77 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.2483, allocations: 0 / 417.4 MB, free: 9.77 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000563/0.2489, allocations: 388.8 kB / 417.7 MB, free: 9.375 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.947e-05/0.2489, allocations: 89.05 kB / 417.8 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.451e-05/0.249, allocations: 8 kB / 417.8 MB, free: 9.262 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001392/0.2491, allocations: 7.984 kB / 417.8 MB, free: 9.254 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.292e-05/0.2491, allocations: 4.219 kB / 417.8 MB, free: 9.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.069e-05/0.2492, allocations: 12.16 kB / 417.9 MB, free: 9.238 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.919e-05/0.2492, allocations: 103.1 kB / 418 MB, free: 9.137 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2492, allocations: 0 / 418 MB, free: 9.137 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003278/0.2496, allocations: 28 kB / 418 MB, free: 9.109 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.0001127/0.2497, allocations: 107.2 kB / 418.1 MB, free: 8.996 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003561/0.25, allocations: 124.2 kB / 418.2 MB, free: 8.875 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.25, allocations: 0 / 418.2 MB, free: 8.875 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.808e-05/0.2501, allocations: 23.98 kB / 418.2 MB, free: 8.852 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005122/0.2506, allocations: 55.88 kB / 418.3 MB, free: 8.797 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000874/0.2515, allocations: 394 kB / 418.7 MB, free: 8.379 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004061/0.2519, allocations: 0.72 MB / 419.4 MB, free: 7.633 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.263e-05/0.252, allocations: 13.08 kB / 419.4 MB, free: 7.621 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.632e-05/0.252, allocations: 19.44 kB / 419.4 MB, free: 7.602 MB / 334.1 MB Notification: Performance of SimCode: time 6.31e-07/0.252, allocations: 0 / 419.4 MB, free: 7.602 MB / 334.1 MB Notification: Performance of Templates: time 0.004499/0.2565, allocations: 1.24 MB / 420.7 MB, free: 6.402 MB / 334.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches