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.Continuous.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.Continuous,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.Continuous") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,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.Continuous") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001472/0.001472, allocations: 179.1 kB / 16.71 MB, free: 5.09 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.262/1.262, allocations: 225.7 MB / 243.2 MB, free: 10.18 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.0007839/0.0007843, allocations: 93.86 kB / 294.4 MB, free: 9.723 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002519/0.0002521, allocations: 8 kB / 354.1 MB, free: 13.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2065/0.2068, allocations: 50.43 MB / 404.6 MB, free: 31.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.001492/0.2083, allocations: 1.539 MB / 406.1 MB, free: 29.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004892/0.2088, allocations: 427.8 kB / 406.5 MB, free: 29.37 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.749e-05/0.2089, allocations: 1.156 kB / 406.5 MB, free: 29.37 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.256e-05/0.209, allocations: 7.922 kB / 406.5 MB, free: 29.36 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.895e-05/0.209, allocations: 20.75 kB / 406.6 MB, free: 29.34 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001106/0.2092, allocations: 27.91 kB / 406.6 MB, free: 29.32 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001106/0.2093, allocations: 102.5 kB / 406.7 MB, free: 29.22 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.865e-05/0.2094, allocations: 33.39 kB / 406.7 MB, free: 29.18 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.835e-05/0.2094, allocations: 31.86 kB / 406.8 MB, free: 29.15 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.218e-05/0.2095, allocations: 39.78 kB / 406.8 MB, free: 29.11 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.482e-05/0.2095, allocations: 7.562 kB / 406.8 MB, free: 29.11 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.526e-05/0.2095, allocations: 4 kB / 406.8 MB, free: 29.11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.826e-05/0.2096, allocations: 11.92 kB / 406.8 MB, free: 29.09 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.255e-05/0.2096, allocations: 73.44 kB / 406.9 MB, free: 29.02 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.838e-05/0.2097, allocations: 85.2 kB / 407 MB, free: 28.93 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.2097, allocations: 7.938 kB / 407 MB, free: 28.93 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2097, allocations: 0 / 407 MB, free: 28.93 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.966e-06/0.2097, allocations: 3.938 kB / 407 MB, free: 28.92 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0003706/0.2101, allocations: 393.4 kB / 407.4 MB, free: 28.49 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.082e-05/0.2101, allocations: 16.03 kB / 407.4 MB, free: 28.48 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.907e-05/0.2102, allocations: 12.75 kB / 407.4 MB, free: 28.46 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001296/0.2103, allocations: 192.2 kB / 407.6 MB, free: 28.24 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.174e-05/0.2103, allocations: 4.562 kB / 407.6 MB, free: 28.23 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.542e-05/0.2104, allocations: 16.36 kB / 407.6 MB, free: 28.22 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000229/0.2106, allocations: 128.4 kB / 407.7 MB, free: 28.08 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.2106, allocations: 4 kB / 407.7 MB, free: 28.08 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.122e-05/0.2106, allocations: 8 kB / 407.7 MB, free: 28.07 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.2107, allocations: 4 kB / 407.7 MB, free: 28.07 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002025/0.2109, allocations: 75.89 kB / 407.8 MB, free: 27.99 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004693/0.2113, allocations: 0.5285 MB / 408.3 MB, free: 27.4 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001593/0.2115, allocations: 86.55 kB / 408.4 MB, free: 27.3 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.938e-05/0.2116, allocations: 48.83 kB / 408.5 MB, free: 27.25 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.154e-05/0.2116, allocations: 0 / 408.5 MB, free: 27.25 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.579e-05/0.2117, allocations: 30.56 kB / 408.5 MB, free: 27.21 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 1.102e-06/0.2117, allocations: 4 kB / 408.5 MB, free: 27.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003494/0.212, allocations: 141.6 kB / 408.6 MB, free: 27.07 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.737e-05/0.2121, allocations: 55.41 kB / 408.7 MB, free: 27 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.874e-05/0.2121, allocations: 125.8 kB / 408.8 MB, free: 26.87 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.945e-06/0.2122, allocations: 25.7 kB / 408.9 MB, free: 26.84 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.817e-05/0.2122, allocations: 115.8 kB / 409 MB, free: 26.72 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.804e-05/0.2122, allocations: 27.55 kB / 409 MB, free: 26.69 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.681e-06/0.2122, allocations: 8 kB / 409 MB, free: 26.68 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.031e-05/0.2123, allocations: 318.8 kB / 409.3 MB, free: 26.36 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.975e-05/0.2124, allocations: 43.97 kB / 409.4 MB, free: 26.32 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.905e-05/0.2125, allocations: 68.27 kB / 409.4 MB, free: 26.24 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001879/0.2127, allocations: 108.2 kB / 409.5 MB, free: 26.12 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.2127, allocations: 4 kB / 409.5 MB, free: 26.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002523/0.213, allocations: 153.2 kB / 409.7 MB, free: 25.96 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.244e-05/0.213, allocations: 8 kB / 409.7 MB, free: 25.95 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.213, allocations: 0 / 409.7 MB, free: 25.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.225e-05/0.213, allocations: 4 kB / 409.7 MB, free: 25.95 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001526/0.2132, allocations: 40.09 kB / 409.7 MB, free: 25.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.2132, allocations: 4 kB / 409.7 MB, free: 25.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.987e-05/0.2133, allocations: 8 kB / 409.7 MB, free: 25.89 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.814e-06/0.2133, allocations: 4 kB / 409.7 MB, free: 25.89 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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 6.439e-05/0.2133, allocations: 137.6 kB / 409.9 MB, free: 25.75 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.463e-05/0.2134, allocations: 7.906 kB / 409.9 MB, free: 25.74 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.287e-05/0.2134, allocations: 8.375 kB / 409.9 MB, free: 25.73 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.2134, allocations: 8 kB / 409.9 MB, free: 25.72 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.2134, allocations: 0 / 409.9 MB, free: 25.72 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.2134, allocations: 0 / 409.9 MB, free: 25.72 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001446/0.2136, allocations: 197.6 kB / 410.1 MB, free: 25.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.2136, allocations: 0 / 410.1 MB, free: 25.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000124/0.2137, allocations: 23.98 kB / 410.1 MB, free: 25.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.2137, allocations: 0 / 410.1 MB, free: 25.45 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.2137, allocations: 4 kB / 410.1 MB, free: 25.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.2138, allocations: 0 / 410.1 MB, free: 25.45 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.2138, allocations: 0 / 410.1 MB, free: 25.45 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003154/0.2141, allocations: 255.2 kB / 410.4 MB, free: 25.18 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.376e-05/0.2141, allocations: 93.05 kB / 410.5 MB, free: 25.07 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.621e-05/0.2141, allocations: 96 / 410.5 MB, free: 25.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.565e-05/0.2142, allocations: 4 kB / 410.5 MB, free: 25.07 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4e-05/0.2143, allocations: 15.97 kB / 410.5 MB, free: 25.05 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.308e-06/0.2143, allocations: 0 / 410.5 MB, free: 25.05 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.461e-05/0.2143, allocations: 99.77 kB / 410.6 MB, free: 24.96 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2143, allocations: 0 / 410.6 MB, free: 24.96 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002151/0.2145, allocations: 27.84 kB / 410.6 MB, free: 24.93 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (load.phi,load.w,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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 6.866e-05/0.2146, allocations: 107.2 kB / 410.7 MB, free: 24.82 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002666/0.2149, allocations: 91.88 kB / 410.8 MB, free: 24.73 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.2149, allocations: 256 / 410.8 MB, free: 24.73 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.073e-05/0.215, allocations: 44.2 kB / 410.8 MB, free: 24.68 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003102/0.2153, allocations: 28.89 kB / 410.9 MB, free: 24.66 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000543/0.2159, allocations: 451.6 kB / 411.3 MB, free: 24.19 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001111/0.216, allocations: 0.7082 MB / 412 MB, free: 23.45 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.944e-05/0.216, allocations: 12.41 kB / 412 MB, free: 23.44 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.937e-05/0.2161, allocations: 11.44 kB / 412 MB, free: 23.43 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2161, allocations: 0 / 412 MB, free: 23.43 MB / 298.7 MB Notification: Performance of Templates: time 0.00247/0.2186, allocations: 0.8711 MB / 412.9 MB, free: 22.57 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/Continuous/Continuous.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches