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.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController,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.ClockedWithDiscreteTextbookController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,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.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009876/0.0009877, allocations: 183.7 kB / 16.71 MB, free: 4.969 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.222/1.222, allocations: 225.7 MB / 243.2 MB, free: 8.492 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.0007883/0.0007883, allocations: 88.72 kB / 294.4 MB, free: 9.516 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002637/0.0002637, allocations: 7.938 kB / 354.2 MB, free: 13.65 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2161/0.2163, allocations: 50.41 MB / 404.6 MB, free: 31.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.001787/0.2182, allocations: 1.676 MB / 406.2 MB, free: 29.65 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005622/0.2188, allocations: 474.1 kB / 406.7 MB, free: 29.18 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.649e-05/0.2189, allocations: 1.781 kB / 406.7 MB, free: 29.18 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.101e-05/0.219, allocations: 15.86 kB / 406.7 MB, free: 29.17 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.999e-05/0.219, allocations: 11.86 kB / 406.7 MB, free: 29.16 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002434/0.2193, allocations: 59.88 kB / 406.8 MB, free: 29.1 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001144/0.2194, allocations: 113.7 kB / 406.9 MB, free: 28.99 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001179/0.2195, allocations: 46.52 kB / 406.9 MB, free: 28.95 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.051e-05/0.2196, allocations: 35.86 kB / 407 MB, free: 28.91 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.3e-05/0.2197, allocations: 52.39 kB / 407 MB, free: 28.86 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.029e-05/0.2197, allocations: 4 kB / 407 MB, free: 28.86 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.489e-05/0.2197, allocations: 4.812 kB / 407 MB, free: 28.85 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.195e-05/0.2197, allocations: 15.92 kB / 407.1 MB, free: 28.84 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.233e-05/0.2198, allocations: 79.56 kB / 407.1 MB, free: 28.75 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001073/0.2199, allocations: 117.1 kB / 407.3 MB, free: 28.64 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.2199, allocations: 3.938 kB / 407.3 MB, free: 28.64 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2199, allocations: 0 / 407.3 MB, free: 28.64 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.126e-06/0.2199, allocations: 0 / 407.3 MB, free: 28.64 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0004039/0.2203, allocations: 407.7 kB / 407.7 MB, free: 28.2 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.371e-05/0.2204, allocations: 8.031 kB / 407.7 MB, free: 28.19 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.656e-05/0.2204, allocations: 16.75 kB / 407.7 MB, free: 28.17 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001454/0.2206, allocations: 208.1 kB / 407.9 MB, free: 27.93 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.478e-05/0.2206, allocations: 16.38 kB / 407.9 MB, free: 27.91 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.792e-05/0.2206, allocations: 24.3 kB / 407.9 MB, free: 27.89 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003758/0.221, allocations: 234.9 kB / 408.1 MB, free: 27.64 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.221, allocations: 3.938 kB / 408.2 MB, free: 27.63 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.223e-05/0.221, allocations: 8 kB / 408.2 MB, free: 27.62 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.2211, allocations: 0 / 408.2 MB, free: 27.62 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001991/0.2213, allocations: 91.88 kB / 408.3 MB, free: 27.54 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004075/0.2217, allocations: 0.5959 MB / 408.8 MB, free: 26.87 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002047/0.2219, allocations: 151.9 kB / 409 MB, free: 26.69 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001244/0.222, allocations: 86.58 kB / 409.1 MB, free: 26.6 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.589e-05/0.222, allocations: 0 / 409.1 MB, free: 26.6 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.314e-05/0.2221, allocations: 38.55 kB / 409.1 MB, free: 26.55 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.272e-06/0.2221, allocations: 0 / 409.1 MB, free: 26.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004021/0.2225, allocations: 193.3 kB / 409.3 MB, free: 26.36 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.617e-05/0.2225, allocations: 110.8 kB / 409.4 MB, free: 26.22 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.573e-05/0.2226, allocations: 134.2 kB / 409.5 MB, free: 26.08 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.097e-06/0.2226, allocations: 29.7 kB / 409.6 MB, free: 26.04 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.758e-05/0.2227, allocations: 115.9 kB / 409.7 MB, free: 25.93 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.998e-05/0.2227, allocations: 27.72 kB / 409.7 MB, free: 25.9 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.701e-06/0.2227, allocations: 4.375 kB / 409.7 MB, free: 25.89 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.357e-05/0.2227, allocations: 314.8 kB / 410 MB, free: 25.58 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.715e-05/0.2228, allocations: 51.91 kB / 410.1 MB, free: 25.53 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001083/0.223, allocations: 133.4 kB / 410.2 MB, free: 25.35 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001967/0.2232, allocations: 188.6 kB / 410.4 MB, free: 25.12 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.2232, allocations: 0 / 410.4 MB, free: 25.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002695/0.2234, allocations: 197.1 kB / 410.6 MB, free: 24.92 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.184e-05/0.2235, allocations: 8 kB / 410.6 MB, free: 24.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.2235, allocations: 7.984 kB / 410.6 MB, free: 24.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.2235, allocations: 7.938 kB / 410.6 MB, free: 24.9 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001433/0.2236, allocations: 48.36 kB / 410.7 MB, free: 24.85 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.2237, allocations: 7.938 kB / 410.7 MB, free: 24.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.516e-05/0.2238, allocations: 31.77 kB / 410.7 MB, free: 24.81 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.688e-06/0.2238, allocations: 8 kB / 410.7 MB, free: 24.8 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * 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 5.683e-05/0.2238, allocations: 125.8 kB / 410.8 MB, free: 24.67 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001021/0.2239, allocations: 77.59 kB / 410.9 MB, free: 24.59 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.495e-05/0.224, allocations: 28.64 kB / 410.9 MB, free: 24.56 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.224, allocations: 0 / 410.9 MB, free: 24.56 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.224, allocations: 4 kB / 410.9 MB, free: 24.55 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.224, allocations: 0 / 410.9 MB, free: 24.55 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001784/0.2242, allocations: 201.5 kB / 411.1 MB, free: 24.31 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.2242, allocations: 0 / 411.1 MB, free: 24.31 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001465/0.2243, allocations: 35.92 kB / 411.2 MB, free: 24.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.866e-06/0.2244, allocations: 8 kB / 411.2 MB, free: 24.27 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.141e-05/0.2244, allocations: 7.938 kB / 411.2 MB, free: 24.26 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.2244, allocations: 3.984 kB / 411.2 MB, free: 24.25 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.2244, allocations: 8 kB / 411.2 MB, free: 24.25 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003645/0.2248, allocations: 383.4 kB / 411.6 MB, free: 23.85 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.126e-05/0.2248, allocations: 85.05 kB / 411.6 MB, free: 23.75 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.818e-05/0.2248, allocations: 7.938 kB / 411.7 MB, free: 23.74 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001403/0.225, allocations: 11.98 kB / 411.7 MB, free: 23.73 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.503e-05/0.225, allocations: 4 kB / 411.7 MB, free: 23.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.422e-06/0.225, allocations: 3.984 kB / 411.7 MB, free: 23.72 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.38e-05/0.2251, allocations: 107.3 kB / 411.8 MB, free: 23.62 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2251, allocations: 0 / 411.8 MB, free: 23.62 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002597/0.2253, allocations: 27.94 kB / 411.8 MB, free: 23.59 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 (14): * Single equations (assignments): 14 * 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.142e-05/0.2254, allocations: 111.5 kB / 411.9 MB, free: 23.47 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000249/0.2257, allocations: 136.3 kB / 412 MB, free: 23.34 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.542e-06/0.2257, allocations: 3.938 kB / 412.1 MB, free: 23.34 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.876e-05/0.2257, allocations: 35.91 kB / 412.1 MB, free: 23.3 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004173/0.2262, allocations: 56.64 kB / 412.1 MB, free: 23.25 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000513/0.2267, allocations: 483.5 kB / 412.6 MB, free: 22.74 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001105/0.2268, allocations: 0.7164 MB / 413.3 MB, free: 22 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.079e-05/0.2269, allocations: 8.656 kB / 413.3 MB, free: 21.99 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.83e-05/0.2269, allocations: 11.44 kB / 413.4 MB, free: 21.98 MB / 298.7 MB Notification: Performance of SimCode: time 2.01e-07/0.2269, allocations: 0 / 413.4 MB, free: 21.98 MB / 298.7 MB Notification: Performance of Templates: time 0.002684/0.2296, allocations: 1.04 MB / 414.4 MB, free: 20.95 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches