Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001528/0.001528, allocations: 197.6 kB / 17.43 MB, free: 4.375 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.387/1.387, allocations: 229.5 MB / 247.7 MB, free: 6.32 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008486/0.0008487, allocations: 96.19 kB / 299.8 MB, free: 5.34 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002089/0.0002089, allocations: 8 kB / 360.6 MB, free: 8.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2615/0.2617, allocations: 51.41 MB / 412 MB, free: 25.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.002672/0.2645, allocations: 1.731 MB / 413.8 MB, free: 24.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009855/0.2655, allocations: 0.654 MB / 414.4 MB, free: 23.47 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000107/0.2656, allocations: 4 kB / 414.4 MB, free: 23.46 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.727e-05/0.2658, allocations: 11.86 kB / 414.4 MB, free: 23.45 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.227e-05/0.2658, allocations: 19.86 kB / 414.5 MB, free: 23.43 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002757/0.2661, allocations: 45.36 kB / 414.5 MB, free: 23.39 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000156/0.2663, allocations: 119.6 kB / 414.6 MB, free: 23.27 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001629/0.2664, allocations: 60.92 kB / 414.7 MB, free: 23.21 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.117e-05/0.2665, allocations: 39.8 kB / 414.7 MB, free: 23.18 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.934e-05/0.2666, allocations: 55.58 kB / 414.8 MB, free: 23.12 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.949e-05/0.2666, allocations: 4 kB / 414.8 MB, free: 23.12 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.95e-05/0.2667, allocations: 12 kB / 414.8 MB, free: 23.11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.874e-05/0.2667, allocations: 15.92 kB / 414.8 MB, free: 23.09 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.474e-05/0.2668, allocations: 73.38 kB / 414.9 MB, free: 23.01 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001485/0.2669, allocations: 117 kB / 415 MB, free: 22.9 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.706e-06/0.2669, allocations: 4 kB / 415 MB, free: 22.89 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.2669, allocations: 0 / 415 MB, free: 22.89 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.671e-06/0.267, allocations: 0 / 415 MB, free: 22.89 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.0005341/0.2675, allocations: 415.1 kB / 415.4 MB, free: 22.44 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.2675, allocations: 8.031 kB / 415.4 MB, free: 22.43 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.914e-05/0.2676, allocations: 16.75 kB / 415.4 MB, free: 22.42 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001692/0.2678, allocations: 208.1 kB / 415.6 MB, free: 22.18 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.027e-05/0.2678, allocations: 8.375 kB / 415.6 MB, free: 22.17 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.178e-05/0.2678, allocations: 20.27 kB / 415.7 MB, free: 22.15 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004106/0.2682, allocations: 230.9 kB / 415.9 MB, free: 21.9 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.379e-05/0.2683, allocations: 0 / 415.9 MB, free: 21.9 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.446e-05/0.2683, allocations: 11.92 kB / 415.9 MB, free: 21.89 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.2683, allocations: 8 kB / 415.9 MB, free: 21.88 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002137/0.2685, allocations: 91.88 kB / 416 MB, free: 21.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005085/0.269, allocations: 0.5921 MB / 416.6 MB, free: 21.12 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002886/0.2693, allocations: 155.9 kB / 416.7 MB, free: 20.95 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001284/0.2695, allocations: 78.62 kB / 416.8 MB, free: 20.86 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.946e-05/0.2695, allocations: 3.984 kB / 416.8 MB, free: 20.86 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.748e-05/0.2695, allocations: 42.5 kB / 416.9 MB, free: 20.8 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.202e-06/0.2695, allocations: 0 / 416.9 MB, free: 20.8 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004369/0.27, allocations: 197.4 kB / 417.1 MB, free: 20.61 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.095e-05/0.27, allocations: 115.1 kB / 417.2 MB, free: 20.47 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.303e-05/0.2701, allocations: 127.9 kB / 417.3 MB, free: 20.33 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.135e-05/0.2701, allocations: 33.7 kB / 417.3 MB, free: 20.29 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.825e-05/0.2702, allocations: 115.9 kB / 417.4 MB, free: 20.18 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.041e-05/0.2702, allocations: 27.66 kB / 417.5 MB, free: 20.15 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.37e-06/0.2702, allocations: 0 / 417.5 MB, free: 20.15 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.987e-05/0.2703, allocations: 330.9 kB / 417.8 MB, free: 19.82 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001003/0.2704, allocations: 39.97 kB / 417.8 MB, free: 19.78 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001241/0.2705, allocations: 148.3 kB / 418 MB, free: 19.59 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.0003789/0.2709, allocations: 286.7 kB / 418.2 MB, free: 19.24 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.2709, allocations: 4 kB / 418.3 MB, free: 19.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003036/0.2712, allocations: 209.2 kB / 418.5 MB, free: 19.02 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/0.2713, allocations: 7.984 kB / 418.5 MB, free: 19.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.2713, allocations: 4 kB / 418.5 MB, free: 19.01 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.587e-05/0.2713, allocations: 8 kB / 418.5 MB, free: 19 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001462/0.2715, allocations: 48.45 kB / 418.5 MB, free: 18.96 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.759e-06/0.2715, allocations: 11.92 kB / 418.5 MB, free: 18.95 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.333e-05/0.2716, allocations: 23.83 kB / 418.6 MB, free: 18.92 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.364e-05/0.2716, allocations: 15.98 kB / 418.6 MB, free: 18.91 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 9.229e-05/0.2717, allocations: 137.6 kB / 418.7 MB, free: 18.76 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001238/0.2718, allocations: 93.47 kB / 418.8 MB, free: 18.66 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.96e-05/0.2719, allocations: 12.72 kB / 418.8 MB, free: 18.64 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.2719, allocations: 8 kB / 418.8 MB, free: 18.64 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.2719, allocations: 0 / 418.8 MB, free: 18.64 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.2719, allocations: 0 / 418.8 MB, free: 18.64 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001987/0.2721, allocations: 217.4 kB / 419 MB, free: 18.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.2721, allocations: 3.938 kB / 419 MB, free: 18.37 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001921/0.2723, allocations: 43.97 kB / 419.1 MB, free: 18.33 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.2723, allocations: 0 / 419.1 MB, free: 18.33 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.324e-05/0.2724, allocations: 8 kB / 419.1 MB, free: 18.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.2724, allocations: 0 / 419.1 MB, free: 18.32 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.2724, allocations: 4 kB / 419.1 MB, free: 18.32 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004309/0.2728, allocations: 403.3 kB / 419.5 MB, free: 17.9 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.077e-05/0.2728, allocations: 92.95 kB / 419.6 MB, free: 17.79 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.238e-05/0.2729, allocations: 4 kB / 419.6 MB, free: 17.79 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001227/0.273, allocations: 15.98 kB / 419.6 MB, free: 17.77 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.647e-05/0.273, allocations: 0 / 419.6 MB, free: 17.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.947e-06/0.2731, allocations: 12.08 kB / 419.6 MB, free: 17.76 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.188e-05/0.2731, allocations: 114.2 kB / 419.7 MB, free: 17.65 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2731, allocations: 0 / 419.7 MB, free: 17.65 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000264/0.2734, allocations: 27.94 kB / 419.7 MB, free: 17.62 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 8.308e-05/0.2735, allocations: 111.2 kB / 419.9 MB, free: 17.51 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003091/0.2738, allocations: 136.2 kB / 420 MB, free: 17.38 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.2738, allocations: 4 kB / 420 MB, free: 17.37 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.652e-05/0.2739, allocations: 27.98 kB / 420 MB, free: 17.34 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004436/0.2744, allocations: 72.38 kB / 420.1 MB, free: 17.27 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007107/0.2751, allocations: 0.49 MB / 420.6 MB, free: 16.75 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000139/0.2752, allocations: 0.7242 MB / 421.3 MB, free: 16 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.913e-05/0.2753, allocations: 9.078 kB / 421.3 MB, free: 15.99 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.798e-05/0.2754, allocations: 15.44 kB / 421.3 MB, free: 15.97 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2754, allocations: 3.938 kB / 421.3 MB, free: 15.97 MB / 298.7 MB Notification: Performance of Templates: time 0.003405/0.2788, allocations: 1.183 MB / 422.5 MB, free: 14.79 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches