Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.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.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PI.I.y|inertia1.phi|inertia1.w|integrator.y|spring.phi_rel|spring.w_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller") translateModel(Modelica.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PI.I.y|inertia1.phi|inertia1.w|integrator.y|spring.phi_rel|spring.w_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008742/0.0008742, allocations: 177.3 kB / 16.71 MB, free: 5.094 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.176/1.176, allocations: 225.7 MB / 243.2 MB, free: 8.449 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.0006997/0.0006997, allocations: 89.67 kB / 294.4 MB, free: 9.496 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002624/0.0002625, allocations: 7.984 kB / 354.1 MB, free: 13.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1896/0.1899, allocations: 50.41 MB / 404.6 MB, free: 31.33 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.002244/0.1922, allocations: 2.654 MB / 407.2 MB, free: 28.66 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001065/0.1932, allocations: 0.9064 MB / 408.1 MB, free: 27.75 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001655/0.1934, allocations: 15.88 kB / 408.1 MB, free: 27.74 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002453/0.1937, allocations: 59.5 kB / 408.2 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001811/0.1939, allocations: 93.98 kB / 408.3 MB, free: 27.59 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003842/0.1943, allocations: 204.3 kB / 408.5 MB, free: 27.39 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003342/0.1946, allocations: 495.7 kB / 409 MB, free: 26.9 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002308/0.1948, allocations: 154.8 kB / 409.1 MB, free: 26.75 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001276/0.195, allocations: 163.1 kB / 409.3 MB, free: 26.59 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001486/0.1951, allocations: 171 kB / 409.4 MB, free: 26.42 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.884e-05/0.1952, allocations: 16 kB / 409.5 MB, free: 26.41 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.146e-05/0.1952, allocations: 16 kB / 409.5 MB, free: 26.39 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.962e-05/0.1953, allocations: 83.56 kB / 409.6 MB, free: 26.31 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001134/0.1954, allocations: 212.5 kB / 409.8 MB, free: 26.09 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002565/0.1957, allocations: 439.7 kB / 410.2 MB, free: 25.66 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1957, allocations: 0 / 410.2 MB, free: 25.66 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1957, allocations: 4 kB / 410.2 MB, free: 25.66 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.338e-06/0.1957, allocations: 0 / 410.2 MB, free: 25.66 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.0009061/0.1966, allocations: 0.7134 MB / 410.9 MB, free: 24.9 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.272e-05/0.1967, allocations: 8.031 kB / 410.9 MB, free: 24.89 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.441e-05/0.1967, allocations: 48.38 kB / 411 MB, free: 24.84 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003077/0.1971, allocations: 355.7 kB / 411.3 MB, free: 24.46 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.295e-05/0.1971, allocations: 29.38 kB / 411.3 MB, free: 24.43 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.045e-05/0.1971, allocations: 44.12 kB / 411.4 MB, free: 24.39 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006879/0.1978, allocations: 462.4 kB / 411.8 MB, free: 23.91 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.669e-05/0.1979, allocations: 3.984 kB / 411.8 MB, free: 23.91 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.9e-05/0.1979, allocations: 16 kB / 411.9 MB, free: 23.89 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.954e-06/0.1979, allocations: 15.94 kB / 411.9 MB, free: 23.88 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008335/0.1987, allocations: 423.6 kB / 412.3 MB, free: 23.46 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001498/0.2003, allocations: 1.582 MB / 413.9 MB, free: 21.79 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006882/0.201, allocations: 342.6 kB / 414.2 MB, free: 21.44 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003715/0.2013, allocations: 188.7 kB / 414.4 MB, free: 21.25 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.309e-05/0.2014, allocations: 11.88 kB / 414.4 MB, free: 21.24 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.398e-05/0.2014, allocations: 34.56 kB / 414.4 MB, free: 21.2 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 1.273e-06/0.2014, allocations: 4 kB / 414.4 MB, free: 21.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.00262/0.204, allocations: 1.508 MB / 415.9 MB, free: 19.6 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.651e-05/0.2041, allocations: 77.11 kB / 416 MB, free: 19.5 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002474/0.2043, allocations: 361.6 kB / 416.4 MB, free: 19.14 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.646e-05/0.2043, allocations: 33.64 kB / 416.4 MB, free: 19.11 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.297e-05/0.2044, allocations: 248 kB / 416.7 MB, free: 18.86 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.053e-05/0.2045, allocations: 106.4 kB / 416.8 MB, free: 18.75 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.658e-05/0.2045, allocations: 12 kB / 416.8 MB, free: 18.74 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.23e-05/0.2046, allocations: 354.7 kB / 417.1 MB, free: 18.39 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004097/0.205, allocations: 184.8 kB / 417.3 MB, free: 18.2 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004051/0.2054, allocations: 276.8 kB / 417.6 MB, free: 17.9 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007243/0.2061, allocations: 435.6 kB / 418 MB, free: 17.45 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.2062, allocations: 0 / 418 MB, free: 17.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0008892/0.207, allocations: 0.5203 MB / 418.5 MB, free: 16.93 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.151e-05/0.2071, allocations: 148 kB / 418.7 MB, free: 16.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.401e-06/0.2071, allocations: 4 kB / 418.7 MB, free: 16.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.293e-05/0.2071, allocations: 4 kB / 418.7 MB, free: 16.74 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007823/0.2079, allocations: 267.7 kB / 418.9 MB, free: 16.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001097/0.209, allocations: 1.54 MB / 420.5 MB, free: 14.81 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002832/0.2093, allocations: 52.06 kB / 420.5 MB, free: 14.76 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.193e-05/0.2093, allocations: 12 kB / 420.5 MB, free: 14.75 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.268e-06/0.2094, allocations: 4 kB / 420.5 MB, free: 14.74 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007701/0.2101, allocations: 453.9 kB / 421 MB, free: 14.3 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.595e-06/0.2101, allocations: 0 / 421 MB, free: 14.3 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.107e-06/0.2102, allocations: 4 kB / 421 MB, free: 14.3 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000432/0.2106, allocations: 123.9 kB / 421.1 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.488e-06/0.2106, allocations: 12.09 kB / 421.1 MB, free: 14.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002402/0.2109, allocations: 43.95 kB / 421.2 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.894e-05/0.2109, allocations: 16 kB / 421.2 MB, free: 14.11 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.noWphase,integrator.local_reset,PI.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001289/0.211, allocations: 244.9 kB / 421.4 MB, free: 13.86 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.828e-05/0.2111, allocations: 51.42 kB / 421.5 MB, free: 13.8 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.135e-05/0.2111, allocations: 48.25 kB / 421.5 MB, free: 13.76 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.2111, allocations: 0 / 421.5 MB, free: 13.76 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-06/0.2112, allocations: 4 kB / 421.5 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.778e-06/0.2112, allocations: 3.938 kB / 421.5 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00123/0.2124, allocations: 0.9542 MB / 422.5 MB, free: 12.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.2124, allocations: 4 kB / 422.5 MB, free: 12.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003794/0.2128, allocations: 99.81 kB / 422.6 MB, free: 12.63 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.2128, allocations: 4 kB / 422.6 MB, free: 12.62 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.987e-05/0.2128, allocations: 8 kB / 422.6 MB, free: 12.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.2128, allocations: 8.031 kB / 422.6 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.2129, allocations: 4 kB / 422.6 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001121/0.214, allocations: 0.7267 MB / 423.3 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.062e-05/0.2141, allocations: 144.5 kB / 423.5 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.248e-05/0.2141, allocations: 12 kB / 423.5 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002679/0.2144, allocations: 43.95 kB / 423.5 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.665e-05/0.2145, allocations: 27.91 kB / 423.5 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.489e-05/0.2145, allocations: 12 kB / 423.6 MB, free: 11.6 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001735/0.2147, allocations: 247.2 kB / 423.8 MB, free: 11.36 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2147, allocations: 0 / 423.8 MB, free: 11.36 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004174/0.2151, allocations: 136 kB / 423.9 MB, free: 11.23 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (PI.I.y,inertia1.phi,spring.phi_rel,spring.w_rel,inertia2.w,integrator.y) * Number of discrete variables: 1 (kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 32 * 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.147e-05/0.2152, allocations: 108 kB / 424 MB, free: 11.11 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001588/0.2168, allocations: 0.7928 MB / 424.8 MB, free: 10.32 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.2168, allocations: 0 / 424.8 MB, free: 10.32 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003862/0.2172, allocations: 212.1 kB / 425 MB, free: 10.11 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005864/0.2178, allocations: 101.4 kB / 425.1 MB, free: 10.02 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001334/0.2191, allocations: 1.264 MB / 426.4 MB, free: 8.715 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001705/0.2193, allocations: 0.8159 MB / 427.2 MB, free: 7.875 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002193/0.2195, allocations: 63.22 kB / 427.3 MB, free: 7.816 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.142e-05/0.2196, allocations: 31.44 kB / 427.3 MB, free: 7.785 MB / 298.7 MB Notification: Performance of SimCode: time 2.51e-07/0.2196, allocations: 0 / 427.3 MB, free: 7.785 MB / 298.7 MB Notification: Performance of Templates: time 0.006409/0.226, allocations: 4.259 MB / 431.6 MB, free: 3.555 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","../files/Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches