Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/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_cpp_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_cpp_Modelica.Blocks.Examples.PID_Controller") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002245/0.002244, allocations: 179.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.988/1.988, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001118/0.001118, allocations: 93.17 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.631e-05/2.632e-05, allocations: 4 kB / 314.8 MB, free: 9.176 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3393/0.3394, allocations: 47.57 MB / 362.3 MB, free: 45.8 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1388/0.4783, allocations: 81.07 MB / 443.4 MB, free: 5.234 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000265/0.4786, allocations: 71.97 kB / 443.5 MB, free: 5.164 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.03713/0.5157, allocations: 8.255 MB / 451.7 MB, free: 12.96 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.5158, allocations: 0 / 451.7 MB, free: 12.96 MB / 347.1 MB Notification: Performance of Transformations before backend: time 4.959e-05/0.5158, allocations: 8 kB / 451.7 MB, free: 12.95 MB / 347.1 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.001758/0.5176, allocations: 0.6883 MB / 452.4 MB, free: 12.22 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.5177, allocations: 8.031 kB / 452.4 MB, free: 12.21 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000145/0.5178, allocations: 47.44 kB / 452.5 MB, free: 12.16 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007823/0.5186, allocations: 368.6 kB / 452.8 MB, free: 11.76 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.094e-05/0.5187, allocations: 12 kB / 452.8 MB, free: 11.75 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.616e-05/0.5188, allocations: 29.5 kB / 452.9 MB, free: 11.72 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007487/0.5195, allocations: 245.5 kB / 453.1 MB, free: 11.48 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008135/0.5204, allocations: 329.7 kB / 453.4 MB, free: 11.13 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.619e-05/0.5204, allocations: 0 / 453.4 MB, free: 11.13 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.206e-05/0.5205, allocations: 4 kB / 453.4 MB, free: 11.13 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.422e-05/0.5205, allocations: 12 kB / 453.4 MB, free: 11.12 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003288/0.5238, allocations: 1.518 MB / 455 MB, free: 9.52 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007181/0.5246, allocations: 231 kB / 455.2 MB, free: 9.277 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002741/0.5249, allocations: 104.8 kB / 455.3 MB, free: 9.172 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.084e-05/0.5249, allocations: 4 kB / 455.3 MB, free: 9.168 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.764e-05/0.525, allocations: 42.52 kB / 455.3 MB, free: 9.117 MB / 347.1 MB Notification: Performance of pre-optimization done (n=30): time 2.565e-06/0.525, allocations: 0 / 455.3 MB, free: 9.117 MB / 347.1 MB Notification: Performance of matching and sorting (n=32): time 0.002226/0.5272, allocations: 0.9372 MB / 456.3 MB, free: 8.09 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.288e-05/0.5273, allocations: 81.11 kB / 456.4 MB, free: 7.992 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004817/0.5278, allocations: 290.2 kB / 456.6 MB, free: 7.711 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 4.075e-05/0.5279, allocations: 25.7 kB / 456.7 MB, free: 7.68 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002131/0.5281, allocations: 294.7 kB / 456.9 MB, free: 7.387 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001323/0.5282, allocations: 118.3 kB / 457.1 MB, free: 7.27 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.368e-05/0.5283, allocations: 0 / 457.1 MB, free: 7.27 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.5284, allocations: 326.8 kB / 457.4 MB, free: 6.941 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002976/0.5287, allocations: 100.9 kB / 457.5 MB, free: 6.84 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003766/0.5291, allocations: 188 kB / 457.7 MB, free: 6.625 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003698/0.5295, allocations: 114.8 kB / 457.8 MB, free: 6.516 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.5295, allocations: 0 / 457.8 MB, free: 6.516 MB / 347.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0008528/0.5304, allocations: 329.2 kB / 458.1 MB, free: 6.188 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003761/0.5308, allocations: 0.7946 MB / 458.9 MB, free: 5.332 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.999e-06/0.5308, allocations: 0 / 458.9 MB, free: 5.332 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.756e-05/0.5308, allocations: 8 kB / 458.9 MB, free: 5.324 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001886/0.5327, allocations: 256.3 kB / 459.2 MB, free: 5.074 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009206/0.5337, allocations: 0.6601 MB / 459.8 MB, free: 4.391 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006859/0.5344, allocations: 44.05 kB / 459.9 MB, free: 4.348 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.627e-05/0.5345, allocations: 16 kB / 459.9 MB, free: 4.332 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/0.5345, allocations: 6.656 kB / 459.9 MB, free: 4.328 MB / 347.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007649/0.5353, allocations: 280.9 kB / 460.1 MB, free: 4.055 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.5353, allocations: 2 kB / 460.2 MB, free: 4.055 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.5353, allocations: 8 kB / 460.2 MB, free: 4.047 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009562/0.5363, allocations: 123.8 kB / 460.3 MB, free: 3.926 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/0.5363, allocations: 9.812 kB / 460.3 MB, free: 3.918 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004585/0.5368, allocations: 31.97 kB / 460.3 MB, free: 3.887 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.156e-05/0.5368, allocations: 19.98 kB / 460.3 MB, free: 3.867 MB / 347.1 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 () * 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001626/0.537, allocations: 116.8 kB / 460.5 MB, free: 3.746 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001191/0.5371, allocations: 39.53 kB / 460.5 MB, free: 3.707 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001649/0.5373, allocations: 44.58 kB / 460.5 MB, free: 3.664 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.694e-06/0.5373, allocations: 4 kB / 460.5 MB, free: 3.66 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.5373, allocations: 0 / 460.5 MB, free: 3.66 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.102e-06/0.5374, allocations: 0 / 460.5 MB, free: 3.66 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001629/0.539, allocations: 0.7487 MB / 461.3 MB, free: 2.859 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.124e-06/0.539, allocations: 4 kB / 461.3 MB, free: 2.855 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008483/0.5399, allocations: 95.88 kB / 461.4 MB, free: 2.762 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.035e-06/0.5399, allocations: 0 / 461.4 MB, free: 2.762 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.172e-05/0.54, allocations: 7.984 kB / 461.4 MB, free: 2.754 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.178e-06/0.54, allocations: 11.47 kB / 461.4 MB, free: 2.746 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.868e-06/0.54, allocations: 2.344 kB / 461.4 MB, free: 2.746 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001047/0.5411, allocations: 0.5405 MB / 461.9 MB, free: 2.152 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00025/0.5413, allocations: 136.7 kB / 462.1 MB, free: 2 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.358e-05/0.5414, allocations: 4 kB / 462.1 MB, free: 1.996 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000548/0.542, allocations: 39.95 kB / 462.1 MB, free: 1.957 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.234e-05/0.5421, allocations: 23.97 kB / 462.1 MB, free: 1.934 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.219e-05/0.5421, allocations: 12 kB / 462.2 MB, free: 1.922 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0003487/0.5425, allocations: 216.6 kB / 462.4 MB, free: 1.707 MB / 347.1 MB Notification: Performance of sort global known variables: time 4.4e-07/0.5425, allocations: 0 / 462.4 MB, free: 1.707 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0008291/0.5433, allocations: 123.9 kB / 462.5 MB, free: 1.586 MB / 347.1 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001918/0.5435, allocations: 115.2 kB / 462.6 MB, free: 1.465 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.001945/0.5455, allocations: 0.5277 MB / 463.1 MB, free: 0.9375 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.5455, allocations: 4 kB / 463.1 MB, free: 0.9336 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003298/0.5459, allocations: 123.8 kB / 463.3 MB, free: 0.8125 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008353/0.5467, allocations: 82.89 kB / 463.3 MB, free: 0.7344 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002391/0.5491, allocations: 0.8141 MB / 464.2 MB, free: 15.88 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000558/0.5497, allocations: 0.839 MB / 465 MB, free: 15.01 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002106/0.5499, allocations: 27.44 kB / 465 MB, free: 14.98 MB / 363.1 MB Notification: Performance of SimCode: time 1.112e-06/0.5499, allocations: 4 kB / 465 MB, free: 14.98 MB / 363.1 MB Notification: Performance of Templates: time 0.01406/0.564, allocations: 5.661 MB / 470.7 MB, free: 9.363 MB / 363.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches