Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Blocks.Examples.PID_Controller") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001483/0.001483, allocations: 180 kB / 17.36 MB, free: 4.445 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.303/1.303, allocations: 205.6 MB / 223.7 MB, free: 8.934 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008144/0.0008146, allocations: 102.3 kB / 272.1 MB, free: 8.121 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002621/0.0002622, allocations: 4 kB / 329 MB, free: 15.08 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2284/0.2286, allocations: 47.58 MB / 376.6 MB, free: 45.58 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.00295/0.2317, allocations: 2.663 MB / 379.3 MB, free: 43.5 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001549/0.2332, allocations: 0.9657 MB / 380.2 MB, free: 42.72 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002095/0.2335, allocations: 14.03 kB / 380.2 MB, free: 42.71 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003027/0.2338, allocations: 63.97 kB / 380.3 MB, free: 42.66 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001951/0.234, allocations: 91.25 kB / 380.4 MB, free: 42.59 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004363/0.2344, allocations: 210.9 kB / 380.6 MB, free: 42.42 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004315/0.2349, allocations: 499.7 kB / 381.1 MB, free: 42.13 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000233/0.2351, allocations: 156.2 kB / 381.2 MB, free: 42.04 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001663/0.2353, allocations: 163.9 kB / 381.4 MB, free: 41.94 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001957/0.2355, allocations: 174.3 kB / 381.6 MB, free: 41.82 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.236e-05/0.2355, allocations: 15.94 kB / 381.6 MB, free: 41.82 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.849e-05/0.2356, allocations: 19.16 kB / 381.6 MB, free: 41.81 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.006e-05/0.2357, allocations: 76.77 kB / 381.7 MB, free: 41.75 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001465/0.2358, allocations: 207.4 kB / 381.9 MB, free: 41.59 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003078/0.2362, allocations: 457.6 kB / 382.3 MB, free: 41.25 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.2362, allocations: 1.469 kB / 382.3 MB, free: 41.25 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.2362, allocations: 0 / 382.3 MB, free: 41.25 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.094e-06/0.2362, allocations: 0 / 382.3 MB, free: 41.25 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.001032/0.2372, allocations: 0.7082 MB / 383 MB, free: 40.66 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.2373, allocations: 9.062 kB / 383 MB, free: 40.66 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.782e-05/0.2374, allocations: 53.66 kB / 383.1 MB, free: 40.63 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003911/0.2378, allocations: 357.5 kB / 383.4 MB, free: 40.3 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.983e-05/0.2378, allocations: 32.25 kB / 383.5 MB, free: 40.28 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.668e-05/0.2379, allocations: 49.25 kB / 383.5 MB, free: 40.26 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008207/0.2387, allocations: 469.2 kB / 384 MB, free: 39.96 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.974e-05/0.2387, allocations: 1.281 kB / 384 MB, free: 39.96 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.161e-05/0.2388, allocations: 15.84 kB / 384 MB, free: 39.95 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.121e-05/0.2388, allocations: 14.12 kB / 384 MB, free: 39.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008885/0.2397, allocations: 418.9 kB / 384.4 MB, free: 39.77 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001672/0.2414, allocations: 1.586 MB / 386 MB, free: 38.4 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007425/0.2421, allocations: 340 kB / 386.3 MB, free: 38.24 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004002/0.2425, allocations: 183.4 kB / 386.5 MB, free: 38.16 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.78e-05/0.2426, allocations: 7.375 kB / 386.5 MB, free: 38.16 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.813e-05/0.2426, allocations: 43.58 kB / 386.6 MB, free: 38.11 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 1.463e-06/0.2426, allocations: 0.9062 kB / 386.6 MB, free: 38.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.002669/0.2453, allocations: 1.514 MB / 388.1 MB, free: 36.67 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.454e-05/0.2453, allocations: 81.11 kB / 388.2 MB, free: 36.57 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002734/0.2456, allocations: 365.5 kB / 388.5 MB, free: 36.21 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.721e-05/0.2456, allocations: 33.7 kB / 388.5 MB, free: 36.17 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.552e-05/0.2457, allocations: 243.9 kB / 388.8 MB, free: 35.93 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.326e-05/0.2458, allocations: 118.5 kB / 388.9 MB, free: 35.81 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.604e-05/0.2458, allocations: 8 kB / 388.9 MB, free: 35.8 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.795e-05/0.2459, allocations: 350.8 kB / 389.3 MB, free: 35.45 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003737/0.2462, allocations: 188.8 kB / 389.4 MB, free: 35.27 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003937/0.2467, allocations: 268.8 kB / 389.7 MB, free: 34.97 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007029/0.2474, allocations: 440.7 kB / 390.1 MB, free: 34.51 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.2474, allocations: 3.938 kB / 390.1 MB, free: 34.51 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.000867/0.2482, allocations: 0.5242 MB / 390.7 MB, free: 33.98 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.591e-05/0.2483, allocations: 150.8 kB / 390.8 MB, free: 33.8 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.511e-06/0.2483, allocations: 0 / 390.8 MB, free: 33.8 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.706e-05/0.2483, allocations: 4 kB / 390.8 MB, free: 33.8 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007813/0.2491, allocations: 259.7 kB / 391.1 MB, free: 33.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00118/0.2503, allocations: 1.54 MB / 392.6 MB, free: 31.87 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000285/0.2506, allocations: 56.08 kB / 392.7 MB, free: 31.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.445e-05/0.2507, allocations: 16 kB / 392.7 MB, free: 31.8 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.638e-06/0.2507, allocations: 4 kB / 392.7 MB, free: 31.8 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007403/0.2514, allocations: 447.5 kB / 393.1 MB, free: 31.36 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.655e-06/0.2514, allocations: 0 / 393.1 MB, free: 31.36 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.108e-06/0.2514, allocations: 4 kB / 393.1 MB, free: 31.36 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004195/0.2519, allocations: 132 kB / 393.2 MB, free: 31.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.019e-06/0.2519, allocations: 7.984 kB / 393.3 MB, free: 31.22 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002424/0.2521, allocations: 43.97 kB / 393.3 MB, free: 31.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.976e-05/0.2521, allocations: 12 kB / 393.3 MB, free: 31.16 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.0001577/0.2523, allocations: 248.9 kB / 393.6 MB, free: 30.91 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.987e-05/0.2524, allocations: 35.53 kB / 393.6 MB, free: 30.88 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.355e-05/0.2524, allocations: 48.25 kB / 393.6 MB, free: 30.83 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.2524, allocations: 4 kB / 393.6 MB, free: 30.82 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.2525, allocations: 0 / 393.6 MB, free: 30.82 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.2525, allocations: 0 / 393.6 MB, free: 30.82 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0013/0.2538, allocations: 0.9662 MB / 394.6 MB, free: 29.79 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.095e-06/0.2538, allocations: 4 kB / 394.6 MB, free: 29.79 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003686/0.2542, allocations: 91.88 kB / 394.7 MB, free: 29.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.2542, allocations: 128 / 394.7 MB, free: 29.7 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.22e-05/0.2542, allocations: 19.94 kB / 394.7 MB, free: 29.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.2542, allocations: 4 kB / 394.7 MB, free: 29.68 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.225e-06/0.2542, allocations: 0 / 394.7 MB, free: 29.68 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001133/0.2554, allocations: 0.7407 MB / 395.5 MB, free: 28.91 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001016/0.2555, allocations: 140.7 kB / 395.6 MB, free: 28.75 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.59e-05/0.2555, allocations: 11.94 kB / 395.6 MB, free: 28.74 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002682/0.2558, allocations: 43.95 kB / 395.7 MB, free: 28.7 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.453e-05/0.2559, allocations: 27.97 kB / 395.7 MB, free: 28.67 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.485e-05/0.2559, allocations: 4 kB / 395.7 MB, free: 28.66 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002006/0.2561, allocations: 251.2 kB / 395.9 MB, free: 28.42 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2561, allocations: 0 / 395.9 MB, free: 28.42 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004501/0.2566, allocations: 136 kB / 396.1 MB, free: 28.29 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 0.0001032/0.2567, allocations: 115.1 kB / 396.2 MB, free: 28.17 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001648/0.2583, allocations: 0.7968 MB / 397 MB, free: 27.37 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.2584, allocations: 4.062 kB / 397 MB, free: 27.37 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003738/0.2587, allocations: 211.5 kB / 397.2 MB, free: 27.16 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006684/0.2594, allocations: 97.42 kB / 397.3 MB, free: 27.07 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00161/0.261, allocations: 1.265 MB / 398.5 MB, free: 25.77 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002694/0.2613, allocations: 0.8159 MB / 399.4 MB, free: 24.93 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002641/0.2616, allocations: 63.22 kB / 399.4 MB, free: 24.86 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.214e-05/0.2617, allocations: 39.44 kB / 399.5 MB, free: 24.82 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2617, allocations: 0 / 399.5 MB, free: 24.82 MB / 298.7 MB Notification: Performance of Templates: time 0.007472/0.2692, allocations: 4.269 MB / 403.7 MB, free: 20.57 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches