Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.ClockedWithDiscreteController,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.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.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001488/0.001488, allocations: 111.4 kB / 17.7 MB, free: 5.242 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.001657/0.001657, allocations: 191 kB / 18.64 MB, free: 4.316 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.36/1.36, allocations: 222.9 MB / 242.3 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001037/0.001037, allocations: 51.92 kB / 351.9 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2394/0.2405, allocations: 49.43 MB / 401.3 MB, free: 8.723 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.002954/0.2435, allocations: 1.997 MB / 403.3 MB, free: 6.875 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000825/0.2443, allocations: 0.5298 MB / 403.9 MB, free: 6.34 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001011/0.2444, allocations: 4 kB / 403.9 MB, free: 6.336 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 9.734e-05/0.2445, allocations: 19.8 kB / 403.9 MB, free: 6.316 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001205/0.2446, allocations: 31.7 kB / 403.9 MB, free: 6.285 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002065/0.2449, allocations: 59.38 kB / 404 MB, free: 6.23 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001506/0.245, allocations: 119.6 kB / 404.1 MB, free: 6.113 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001318/0.2452, allocations: 53.42 kB / 404.1 MB, free: 6.059 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.316e-05/0.2452, allocations: 63.7 kB / 404.2 MB, free: 5.996 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.616e-05/0.2453, allocations: 51.72 kB / 404.3 MB, free: 5.945 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.327e-05/0.2454, allocations: 12 kB / 404.3 MB, free: 5.934 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.867e-05/0.2454, allocations: 12 kB / 404.3 MB, free: 5.922 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.038e-05/0.2454, allocations: 35.84 kB / 404.3 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.847e-05/0.2455, allocations: 55.72 kB / 404.4 MB, free: 5.832 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001508/0.2456, allocations: 128.6 kB / 404.5 MB, free: 5.711 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.2456, allocations: 0 / 404.5 MB, free: 5.711 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2456, allocations: 0 / 404.5 MB, free: 5.711 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.883e-06/0.2457, allocations: 4 kB / 404.5 MB, free: 5.707 MB / 318.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.0005584/0.2462, allocations: 427 kB / 404.9 MB, free: 5.242 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.376e-05/0.2463, allocations: 8.031 kB / 404.9 MB, free: 5.234 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.154e-05/0.2463, allocations: 24.75 kB / 404.9 MB, free: 5.211 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002092/0.2465, allocations: 200.1 kB / 405.1 MB, free: 4.977 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.483e-05/0.2465, allocations: 12.38 kB / 405.2 MB, free: 4.965 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.42e-05/0.2466, allocations: 20.31 kB / 405.2 MB, free: 4.945 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004455/0.247, allocations: 255.4 kB / 405.4 MB, free: 4.672 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.543e-05/0.2471, allocations: 3.906 kB / 405.4 MB, free: 4.668 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.645e-05/0.2471, allocations: 4 kB / 405.4 MB, free: 4.664 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.2471, allocations: 4 kB / 405.4 MB, free: 4.66 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002443/0.2473, allocations: 87.88 kB / 405.5 MB, free: 4.574 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005417/0.2479, allocations: 0.5804 MB / 406.1 MB, free: 3.922 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003292/0.2482, allocations: 159.7 kB / 406.3 MB, free: 3.738 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001433/0.2484, allocations: 70.64 kB / 406.3 MB, free: 3.66 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.517e-05/0.2484, allocations: 8.125 kB / 406.3 MB, free: 3.652 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.379e-05/0.2485, allocations: 38.55 kB / 406.4 MB, free: 3.605 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.342e-06/0.2485, allocations: 4 kB / 406.4 MB, free: 3.602 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004735/0.2489, allocations: 181.3 kB / 406.5 MB, free: 3.418 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.977e-05/0.249, allocations: 111.2 kB / 406.7 MB, free: 3.285 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.789e-05/0.2491, allocations: 126.1 kB / 406.8 MB, free: 3.148 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.313e-05/0.2491, allocations: 29.7 kB / 406.8 MB, free: 3.113 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.437e-05/0.2492, allocations: 116 kB / 406.9 MB, free: 2.996 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.333e-05/0.2492, allocations: 39.56 kB / 407 MB, free: 2.957 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.934e-05/0.2493, allocations: 33.72 kB / 407 MB, free: 2.918 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.21e-05/0.2494, allocations: 322.8 kB / 407.3 MB, free: 2.594 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001096/0.2495, allocations: 35.97 kB / 407.3 MB, free: 2.559 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001553/0.2496, allocations: 143.3 kB / 407.5 MB, free: 2.371 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002663/0.2499, allocations: 189.7 kB / 407.7 MB, free: 2.137 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.2499, allocations: 4 kB / 407.7 MB, free: 2.133 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003542/0.2503, allocations: 205.1 kB / 407.9 MB, free: 1.926 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.2503, allocations: 4 kB / 407.9 MB, free: 1.922 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.2503, allocations: 4 kB / 407.9 MB, free: 1.918 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/0.2503, allocations: 4.469 kB / 407.9 MB, free: 1.914 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001416/0.2505, allocations: 47.92 kB / 407.9 MB, free: 1.867 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.127e-06/0.2505, allocations: 7.984 kB / 407.9 MB, free: 1.859 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.839e-05/0.2506, allocations: 19.84 kB / 408 MB, free: 1.84 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.15e-05/0.2506, allocations: 8 kB / 408 MB, free: 1.832 MB / 318.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 8.784e-05/0.2507, allocations: 129.7 kB / 408.1 MB, free: 1.695 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001346/0.2509, allocations: 93.52 kB / 408.2 MB, free: 1.598 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.079e-05/0.2509, allocations: 16.72 kB / 408.2 MB, free: 1.574 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.2509, allocations: 0 / 408.2 MB, free: 1.574 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.2509, allocations: 4 kB / 408.2 MB, free: 1.57 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.251, allocations: 4 kB / 408.2 MB, free: 1.566 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002363/0.2512, allocations: 213.4 kB / 408.4 MB, free: 1.309 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.2512, allocations: 0 / 408.4 MB, free: 1.309 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001702/0.2514, allocations: 35.97 kB / 408.5 MB, free: 1.273 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.2514, allocations: 0 / 408.5 MB, free: 1.273 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.226e-05/0.2514, allocations: 4 kB / 408.5 MB, free: 1.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.2514, allocations: 3.938 kB / 408.5 MB, free: 1.266 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.2514, allocations: 4 kB / 408.5 MB, free: 1.262 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004734/0.2519, allocations: 390.8 kB / 408.8 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.02e-05/0.252, allocations: 85.05 kB / 408.9 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.088e-05/0.252, allocations: 8 kB / 408.9 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001302/0.2521, allocations: 7.984 kB / 408.9 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.516e-05/0.2522, allocations: 8.062 kB / 409 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.665e-06/0.2522, allocations: 4 kB / 409 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.879e-05/0.2522, allocations: 95.36 kB / 409.1 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.322e-06/0.2522, allocations: 3.938 kB / 409.1 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003106/0.2526, allocations: 43.86 kB / 409.1 MB, free: 0.5938 MB / 318.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 8.569e-05/0.2526, allocations: 95.25 kB / 409.2 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002985/0.2529, allocations: 123.8 kB / 409.3 MB, free: 380 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.169e-06/0.253, allocations: 0 / 409.3 MB, free: 380 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 9.368e-05/0.2531, allocations: 31.91 kB / 409.3 MB, free: 348 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004411/0.2535, allocations: 63.98 kB / 409.4 MB, free: 288 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000612/0.2541, allocations: 423.3 kB / 409.8 MB, free: 15.83 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002251/0.2544, allocations: 0.7084 MB / 410.5 MB, free: 15.09 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.866e-05/0.2544, allocations: 23.42 kB / 410.5 MB, free: 15.07 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2544, allocations: 0 / 410.5 MB, free: 15.07 MB / 334.1 MB Notification: Performance of Templates: time 0.002771/0.2572, allocations: 1.519 MB / 412.1 MB, free: 13.55 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches