Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001026/0.001026, allocations: 183.2 kB / 16.71 MB, free: 4.961 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.303/1.303, allocations: 225.7 MB / 243.2 MB, free: 8.508 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007727/0.0007728, allocations: 102.9 kB / 294.4 MB, free: 9.504 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003074/0.0003075, allocations: 11.94 kB / 354.2 MB, free: 13.66 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2495/0.2498, allocations: 50.42 MB / 404.6 MB, free: 31.33 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.001777/0.2517, allocations: 1.722 MB / 406.3 MB, free: 29.6 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005839/0.2523, allocations: 467.1 kB / 406.8 MB, free: 29.14 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.629e-05/0.2524, allocations: 7.938 kB / 406.8 MB, free: 29.13 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.998e-05/0.2525, allocations: 7.922 kB / 406.8 MB, free: 29.12 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.858e-05/0.2525, allocations: 23.78 kB / 406.8 MB, free: 29.1 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002399/0.2528, allocations: 48.52 kB / 406.8 MB, free: 29.05 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001411/0.2529, allocations: 128.3 kB / 407 MB, free: 28.93 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001554/0.2531, allocations: 55.81 kB / 407 MB, free: 28.88 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.283e-05/0.2532, allocations: 35.8 kB / 407.1 MB, free: 28.84 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.024e-05/0.2533, allocations: 48.7 kB / 407.1 MB, free: 28.79 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.541e-05/0.2533, allocations: 4 kB / 407.1 MB, free: 28.79 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.667e-05/0.2533, allocations: 11.03 kB / 407.1 MB, free: 28.78 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.504e-05/0.2534, allocations: 19.92 kB / 407.1 MB, free: 28.76 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.785e-05/0.2534, allocations: 73.39 kB / 407.2 MB, free: 28.68 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000142/0.2536, allocations: 117 kB / 407.3 MB, free: 28.57 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.2536, allocations: 0 / 407.3 MB, free: 28.57 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.482e-06/0.2536, allocations: 0 / 407.3 MB, free: 28.57 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.588e-06/0.2536, allocations: 0 / 407.3 MB, free: 28.57 MB / 298.7 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.000427/0.254, allocations: 430.1 kB / 407.7 MB, free: 28.11 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.204e-05/0.2541, allocations: 8.031 kB / 407.7 MB, free: 28.1 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.286e-05/0.2541, allocations: 16.75 kB / 407.8 MB, free: 28.08 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001595/0.2543, allocations: 204.1 kB / 408 MB, free: 27.84 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.129e-05/0.2543, allocations: 12.38 kB / 408 MB, free: 27.83 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.05e-05/0.2543, allocations: 22.16 kB / 408 MB, free: 27.81 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003861/0.2547, allocations: 226.9 kB / 408.2 MB, free: 27.57 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.2548, allocations: 0 / 408.2 MB, free: 27.57 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.339e-05/0.2548, allocations: 8 kB / 408.2 MB, free: 27.56 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.2548, allocations: 4 kB / 408.2 MB, free: 27.55 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002133/0.255, allocations: 95.88 kB / 408.3 MB, free: 27.46 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004762/0.2555, allocations: 0.5921 MB / 408.9 MB, free: 26.8 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002801/0.2558, allocations: 159.9 kB / 409.1 MB, free: 26.61 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001268/0.2559, allocations: 78.64 kB / 409.2 MB, free: 26.53 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.012e-05/0.2559, allocations: 4 kB / 409.2 MB, free: 26.52 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.518e-05/0.256, allocations: 42.55 kB / 409.2 MB, free: 26.47 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.242e-06/0.256, allocations: 4 kB / 409.2 MB, free: 26.47 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004294/0.2564, allocations: 193.3 kB / 409.4 MB, free: 26.27 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.832e-05/0.2565, allocations: 110.8 kB / 409.5 MB, free: 26.14 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.413e-05/0.2566, allocations: 147.7 kB / 409.6 MB, free: 25.98 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.347e-06/0.2566, allocations: 29.7 kB / 409.7 MB, free: 25.95 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.887e-05/0.2566, allocations: 112 kB / 409.8 MB, free: 25.84 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.789e-05/0.2566, allocations: 27.64 kB / 409.8 MB, free: 25.81 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.601e-06/0.2566, allocations: 4 kB / 409.8 MB, free: 25.8 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.531e-05/0.2567, allocations: 326.9 kB / 410.1 MB, free: 25.48 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001022/0.2568, allocations: 39.97 kB / 410.2 MB, free: 25.44 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001199/0.2569, allocations: 147.4 kB / 410.3 MB, free: 25.25 MB / 298.7 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.0003822/0.2573, allocations: 290.8 kB / 410.6 MB, free: 24.89 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.766e-06/0.2573, allocations: 0 / 410.6 MB, free: 24.89 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000307/0.2576, allocations: 209.1 kB / 410.8 MB, free: 24.68 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/0.2577, allocations: 11.94 kB / 410.8 MB, free: 24.67 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.2577, allocations: 4 kB / 410.8 MB, free: 24.67 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.2577, allocations: 4 kB / 410.8 MB, free: 24.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000136/0.2578, allocations: 52.38 kB / 410.9 MB, free: 24.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.175e-06/0.2579, allocations: 11.94 kB / 410.9 MB, free: 24.6 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.252e-05/0.258, allocations: 23.83 kB / 410.9 MB, free: 24.58 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.022e-05/0.258, allocations: 8 kB / 410.9 MB, free: 24.57 MB / 298.7 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 = 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 7.407e-05/0.2581, allocations: 137.7 kB / 411 MB, free: 24.43 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001206/0.2582, allocations: 89.47 kB / 411.1 MB, free: 24.33 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.606e-05/0.2582, allocations: 20.7 kB / 411.2 MB, free: 24.31 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.2582, allocations: 4 kB / 411.2 MB, free: 24.3 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.2582, allocations: 4 kB / 411.2 MB, free: 24.3 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.2582, allocations: 0 / 411.2 MB, free: 24.3 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001977/0.2584, allocations: 205.5 kB / 411.4 MB, free: 24.05 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.2585, allocations: 4 kB / 411.4 MB, free: 24.05 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001926/0.2587, allocations: 51.89 kB / 411.4 MB, free: 24 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.2587, allocations: 4 kB / 411.4 MB, free: 23.99 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.178e-05/0.2587, allocations: 0 / 411.4 MB, free: 23.99 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.2587, allocations: 0 / 411.4 MB, free: 23.99 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.2587, allocations: 8 kB / 411.4 MB, free: 23.98 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000419/0.2591, allocations: 403.2 kB / 411.8 MB, free: 23.57 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.304e-05/0.2592, allocations: 88.95 kB / 411.9 MB, free: 23.46 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.055e-05/0.2592, allocations: 4 kB / 411.9 MB, free: 23.46 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001234/0.2593, allocations: 11.98 kB / 411.9 MB, free: 23.45 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.394e-05/0.2594, allocations: 4 kB / 411.9 MB, free: 23.45 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.894e-06/0.2594, allocations: 11.94 kB / 411.9 MB, free: 23.43 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.952e-05/0.2594, allocations: 105.4 kB / 412 MB, free: 23.33 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2594, allocations: 0 / 412 MB, free: 23.33 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000266/0.2597, allocations: 35.94 kB / 412.1 MB, free: 23.3 MB / 298.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 () * 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 7.456e-05/0.2598, allocations: 103.2 kB / 412.2 MB, free: 23.19 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002948/0.2601, allocations: 136.2 kB / 412.3 MB, free: 23.05 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.2601, allocations: 0 / 412.3 MB, free: 23.05 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.677e-05/0.2602, allocations: 35.92 kB / 412.3 MB, free: 23.02 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004266/0.2606, allocations: 77.28 kB / 412.4 MB, free: 22.95 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007044/0.2613, allocations: 0.5063 MB / 412.9 MB, free: 22.4 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001288/0.2615, allocations: 0.7242 MB / 413.7 MB, free: 21.65 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.349e-05/0.2615, allocations: 9.078 kB / 413.7 MB, free: 21.64 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.305e-05/0.2615, allocations: 15.44 kB / 413.7 MB, free: 21.63 MB / 298.7 MB Notification: Performance of SimCode: time 2e-07/0.2616, allocations: 0 / 413.7 MB, free: 21.63 MB / 298.7 MB Notification: Performance of Templates: time 0.003066/0.2646, allocations: 1.173 MB / 414.9 MB, free: 20.46 MB / 298.7 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