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.ExactlyClockedWithDiscreteController.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.ExactlyClockedWithDiscreteController,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.ExactlyClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,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.ExactlyClockedWithDiscreteController") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009272/0.0009273, allocations: 178.7 kB / 16.71 MB, free: 5.062 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.237/1.237, allocations: 225.7 MB / 243.2 MB, free: 8.469 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.0007269/0.000727, allocations: 96.88 kB / 294.4 MB, free: 9.492 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002361/0.0002361, allocations: 4 kB / 354.2 MB, free: 13.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2189/0.2192, allocations: 50.42 MB / 404.6 MB, free: 31.31 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.002241/0.2215, allocations: 1.702 MB / 406.3 MB, free: 29.6 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00101/0.2225, allocations: 0.5236 MB / 406.8 MB, free: 29.07 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001313/0.2227, allocations: 3.938 kB / 406.8 MB, free: 29.07 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001423/0.2228, allocations: 11.92 kB / 406.8 MB, free: 29.05 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001855/0.223, allocations: 28.34 kB / 406.8 MB, free: 29.03 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002909/0.2233, allocations: 60.72 kB / 406.9 MB, free: 28.97 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001646/0.2235, allocations: 123.6 kB / 407 MB, free: 28.85 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001674/0.2237, allocations: 48.34 kB / 407.1 MB, free: 28.8 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.116e-05/0.2238, allocations: 40.31 kB / 407.1 MB, free: 28.77 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.007e-05/0.2239, allocations: 55.66 kB / 407.2 MB, free: 28.71 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.633e-05/0.2239, allocations: 5.531 kB / 407.2 MB, free: 28.71 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.128e-05/0.2239, allocations: 4 kB / 407.2 MB, free: 28.7 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.374e-05/0.224, allocations: 23.91 kB / 407.2 MB, free: 28.68 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.169e-05/0.2241, allocations: 89.3 kB / 407.3 MB, free: 28.59 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001598/0.2243, allocations: 125.5 kB / 407.4 MB, free: 28.46 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.2243, allocations: 0.7188 kB / 407.4 MB, free: 28.46 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.255e-06/0.2243, allocations: 0 / 407.4 MB, free: 28.46 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.899e-06/0.2243, allocations: 0.5312 kB / 407.4 MB, free: 28.46 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0005187/0.2248, allocations: 439.7 kB / 407.8 MB, free: 27.99 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/0.2249, allocations: 8.031 kB / 407.8 MB, free: 27.98 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.651e-05/0.2249, allocations: 20.73 kB / 407.9 MB, free: 27.96 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001684/0.2251, allocations: 212 kB / 408.1 MB, free: 27.72 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.7e-05/0.2251, allocations: 20.3 kB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.137e-05/0.2251, allocations: 16.28 kB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004132/0.2256, allocations: 261.4 kB / 408.4 MB, free: 27.41 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.2256, allocations: 4 kB / 408.4 MB, free: 27.4 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.404e-05/0.2256, allocations: 4 kB / 408.4 MB, free: 27.4 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.2256, allocations: 4 kB / 408.4 MB, free: 27.39 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002211/0.2258, allocations: 99.86 kB / 408.5 MB, free: 27.3 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004802/0.2263, allocations: 0.5999 MB / 409.1 MB, free: 26.62 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003418/0.2267, allocations: 147.9 kB / 409.2 MB, free: 26.45 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001315/0.2268, allocations: 82.62 kB / 409.3 MB, free: 26.36 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.486e-05/0.2269, allocations: 7.984 kB / 409.3 MB, free: 26.36 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.473e-05/0.2269, allocations: 38.5 kB / 409.3 MB, free: 26.31 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.132e-06/0.2269, allocations: 0 / 409.3 MB, free: 26.31 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004374/0.2273, allocations: 201.3 kB / 409.5 MB, free: 26.11 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.442e-05/0.2274, allocations: 118.9 kB / 409.7 MB, free: 25.96 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001011/0.2275, allocations: 156.9 kB / 409.8 MB, free: 25.8 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.518e-06/0.2275, allocations: 33.7 kB / 409.8 MB, free: 25.77 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.186e-05/0.2276, allocations: 112.4 kB / 409.9 MB, free: 25.65 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.943e-05/0.2276, allocations: 27.64 kB / 410 MB, free: 25.62 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.4e-06/0.2276, allocations: 4 kB / 410 MB, free: 25.62 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.896e-05/0.2277, allocations: 322.8 kB / 410.3 MB, free: 25.3 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.941e-05/0.2278, allocations: 43.97 kB / 410.3 MB, free: 25.25 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001181/0.2279, allocations: 134.8 kB / 410.5 MB, free: 25.07 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00022/0.2281, allocations: 205.4 kB / 410.7 MB, free: 24.82 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.2281, allocations: 0 / 410.7 MB, free: 24.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002846/0.2284, allocations: 205.2 kB / 410.9 MB, free: 24.62 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.187e-05/0.2285, allocations: 4.469 kB / 410.9 MB, free: 24.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.2285, allocations: 8 kB / 410.9 MB, free: 24.61 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.2285, allocations: 4.375 kB / 410.9 MB, free: 24.6 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001299/0.2286, allocations: 47.91 kB / 410.9 MB, free: 24.55 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.788e-06/0.2286, allocations: 11.94 kB / 410.9 MB, free: 24.54 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.141e-05/0.2287, allocations: 27.83 kB / 411 MB, free: 24.52 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.137e-05/0.2288, allocations: 11.94 kB / 411 MB, free: 24.5 MB / 298.7 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 7.454e-05/0.2288, allocations: 134.3 kB / 411.1 MB, free: 24.36 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001122/0.229, allocations: 93.44 kB / 411.2 MB, free: 24.27 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.054e-05/0.229, allocations: 24.7 kB / 411.2 MB, free: 24.24 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.2291, allocations: 7.875 kB / 411.2 MB, free: 24.23 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.2291, allocations: 4 kB / 411.2 MB, free: 24.23 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.2291, allocations: 0 / 411.2 MB, free: 24.23 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001907/0.2293, allocations: 217.5 kB / 411.5 MB, free: 23.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.2293, allocations: 0 / 411.5 MB, free: 23.96 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001576/0.2294, allocations: 35.98 kB / 411.5 MB, free: 23.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.2295, allocations: 4 kB / 411.5 MB, free: 23.93 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.326e-05/0.2295, allocations: 12.22 kB / 411.5 MB, free: 23.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.2295, allocations: 0 / 411.5 MB, free: 23.91 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2295, allocations: 0 / 411.5 MB, free: 23.91 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003908/0.2299, allocations: 407.2 kB / 411.9 MB, free: 23.5 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.888e-05/0.2299, allocations: 104.9 kB / 412 MB, free: 23.38 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.035e-05/0.23, allocations: 4 kB / 412 MB, free: 23.37 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001217/0.2301, allocations: 12.06 kB / 412 MB, free: 23.36 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.284e-05/0.2301, allocations: 7.984 kB / 412 MB, free: 23.35 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.414e-06/0.2301, allocations: 4 kB / 412 MB, free: 23.35 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.419e-05/0.2302, allocations: 119.2 kB / 412.1 MB, free: 23.23 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2302, allocations: 0 / 412.1 MB, free: 23.23 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002794/0.2305, allocations: 24 kB / 412.2 MB, free: 23.21 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.37e-05/0.2306, allocations: 119.1 kB / 412.3 MB, free: 23.08 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002614/0.2309, allocations: 127.8 kB / 412.4 MB, free: 22.96 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.2309, allocations: 4.938 kB / 412.4 MB, free: 22.95 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.259e-05/0.231, allocations: 31.98 kB / 412.4 MB, free: 22.92 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004121/0.2314, allocations: 64.86 kB / 412.5 MB, free: 22.86 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005587/0.2319, allocations: 0.5173 MB / 413 MB, free: 22.3 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001316/0.2321, allocations: 0.7281 MB / 413.8 MB, free: 21.55 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.507e-05/0.2321, allocations: 9.422 kB / 413.8 MB, free: 21.54 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.038e-05/0.2322, allocations: 15.44 kB / 413.8 MB, free: 21.53 MB / 298.7 MB Notification: Performance of SimCode: time 2.9e-07/0.2322, allocations: 4 kB / 413.8 MB, free: 21.52 MB / 298.7 MB Notification: Performance of Templates: time 0.003193/0.2354, allocations: 1.208 MB / 415 MB, free: 20.33 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches