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.002658/0.002663, allocations: 182.8 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.256/3.256, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001659/0.001659, allocations: 89.8 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006253/0.0006256, allocations: 12 kB / 327 MB, free: 216 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5647/0.5653, allocations: 47.57 MB / 374.5 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.006269/0.5717, allocations: 2.58 MB / 377.1 MB, free: 43.44 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003981/0.5757, allocations: 0.966 MB / 378.1 MB, free: 42.66 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006955/0.5765, allocations: 13.47 kB / 378.1 MB, free: 42.65 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004017/0.5769, allocations: 50.22 kB / 378.1 MB, free: 42.61 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009626/0.5779, allocations: 145 kB / 378.3 MB, free: 42.49 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001169/0.5791, allocations: 177 kB / 378.4 MB, free: 42.36 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001297/0.5804, allocations: 337.6 kB / 378.8 MB, free: 42.14 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005094/0.581, allocations: 132.8 kB / 378.9 MB, free: 42.06 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005057/0.5815, allocations: 154.9 kB / 379.1 MB, free: 41.97 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003927/0.5819, allocations: 171.2 kB / 379.2 MB, free: 41.85 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.278e-05/0.582, allocations: 15.12 kB / 379.2 MB, free: 41.85 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001149/0.5822, allocations: 15.53 kB / 379.3 MB, free: 41.85 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001518/0.5823, allocations: 67.25 kB / 379.3 MB, free: 41.8 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001646/0.5825, allocations: 91.3 kB / 379.4 MB, free: 41.73 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006913/0.5832, allocations: 352.6 kB / 379.7 MB, free: 41.47 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.5833, allocations: 4 kB / 379.8 MB, free: 41.47 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.487e-06/0.5833, allocations: 0 / 379.8 MB, free: 41.47 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.959e-06/0.5833, allocations: 3.938 kB / 379.8 MB, free: 41.46 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.002714/0.5861, allocations: 0.7154 MB / 380.5 MB, free: 40.87 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.414e-05/0.5861, allocations: 16.81 kB / 380.5 MB, free: 40.86 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002129/0.5864, allocations: 48.66 kB / 380.5 MB, free: 40.84 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009635/0.5874, allocations: 356.2 kB / 380.9 MB, free: 40.51 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.414e-05/0.5875, allocations: 31.38 kB / 380.9 MB, free: 40.49 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000152/0.5876, allocations: 41.03 kB / 381 MB, free: 40.48 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002173/0.5898, allocations: 466.1 kB / 381.4 MB, free: 40.18 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.713e-05/0.5899, allocations: 4.984 kB / 381.4 MB, free: 40.18 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.761e-05/0.59, allocations: 11.84 kB / 381.4 MB, free: 40.17 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.615e-05/0.5901, allocations: 9.125 kB / 381.4 MB, free: 40.17 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002651/0.5927, allocations: 428.1 kB / 381.9 MB, free: 39.98 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004813/0.5976, allocations: 1.578 MB / 383.4 MB, free: 38.62 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002084/0.5998, allocations: 340.9 kB / 383.8 MB, free: 38.46 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.485e-05/0.5999, allocations: 14.38 kB / 383.8 MB, free: 38.45 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.533e-05/0.5999, allocations: 32.75 kB / 383.8 MB, free: 38.41 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 5.14e-06/0.6, allocations: 0 / 383.8 MB, free: 38.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.008563/0.6085, allocations: 1.513 MB / 385.3 MB, free: 37.45 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.396e-05/0.6087, allocations: 80.89 kB / 385.4 MB, free: 37.36 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008997/0.6096, allocations: 364.9 kB / 385.8 MB, free: 37.12 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.083e-05/0.6097, allocations: 31.02 kB / 385.8 MB, free: 37.09 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000242/0.61, allocations: 290.7 kB / 386.1 MB, free: 36.82 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000172/0.6102, allocations: 112.5 kB / 386.2 MB, free: 36.72 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.186e-05/0.6102, allocations: 5.156 kB / 386.2 MB, free: 36.71 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001048/0.6103, allocations: 330.5 kB / 386.5 MB, free: 36.39 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001267/0.6116, allocations: 186.3 kB / 386.7 MB, free: 36.3 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001293/0.6129, allocations: 276.8 kB / 387 MB, free: 36 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001242/0.6142, allocations: 195.9 kB / 387.2 MB, free: 35.81 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.424e-06/0.6143, allocations: 8 kB / 387.2 MB, free: 35.8 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.002681/0.617, allocations: 0.5021 MB / 387.7 MB, free: 35.29 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002972/0.6173, allocations: 0.7862 MB / 388.5 MB, free: 34.45 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.444e-05/0.6173, allocations: 0 / 388.5 MB, free: 34.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.752e-05/0.6174, allocations: 4 kB / 388.5 MB, free: 34.44 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002599/0.62, allocations: 263.7 kB / 388.7 MB, free: 34.18 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00342/0.6235, allocations: 1.559 MB / 390.3 MB, free: 32.49 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00102/0.6246, allocations: 48 kB / 390.3 MB, free: 32.45 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.136e-05/0.6246, allocations: 16 kB / 390.3 MB, free: 32.43 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.6247, allocations: 8.062 kB / 390.3 MB, free: 32.42 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002427/0.6271, allocations: 447.7 kB / 390.8 MB, free: 31.98 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.6272, allocations: 3.938 kB / 390.8 MB, free: 31.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.664e-05/0.6272, allocations: 4 kB / 390.8 MB, free: 31.98 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00139/0.6286, allocations: 127.8 kB / 390.9 MB, free: 31.85 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.518e-05/0.6287, allocations: 4 kB / 390.9 MB, free: 31.85 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007178/0.6294, allocations: 51.98 kB / 391 MB, free: 31.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.481e-05/0.6295, allocations: 12 kB / 391 MB, free: 31.79 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 (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.0004591/0.63, allocations: 245 kB / 391.2 MB, free: 31.54 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001788/0.6302, allocations: 35.53 kB / 391.3 MB, free: 31.5 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001527/0.6303, allocations: 60.17 kB / 391.3 MB, free: 31.44 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.678e-06/0.6304, allocations: 4 kB / 391.3 MB, free: 31.44 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.025e-05/0.6304, allocations: 4 kB / 391.3 MB, free: 31.43 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/0.6304, allocations: 0 / 391.3 MB, free: 31.43 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003939/0.6344, allocations: 0.9611 MB / 392.3 MB, free: 30.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.216e-05/0.6345, allocations: 4 kB / 392.3 MB, free: 30.4 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001222/0.6357, allocations: 100 kB / 392.4 MB, free: 30.3 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.409e-05/0.6357, allocations: 0 / 392.4 MB, free: 30.3 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.451e-05/0.6358, allocations: 8 kB / 392.4 MB, free: 30.3 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.055e-05/0.6358, allocations: 7.938 kB / 392.4 MB, free: 30.29 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.6359, allocations: 0 / 392.4 MB, free: 30.29 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003676/0.6396, allocations: 0.7904 MB / 393.2 MB, free: 29.45 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003626/0.64, allocations: 132.7 kB / 393.3 MB, free: 29.3 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001122/0.6401, allocations: 8 kB / 393.3 MB, free: 29.29 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007916/0.6409, allocations: 43.95 kB / 393.4 MB, free: 29.25 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001601/0.6411, allocations: 27.97 kB / 393.4 MB, free: 29.22 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.426e-05/0.6412, allocations: 8 kB / 393.4 MB, free: 29.21 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005812/0.6418, allocations: 247.2 kB / 393.6 MB, free: 28.97 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.61e-07/0.6418, allocations: 0 / 393.6 MB, free: 28.97 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001278/0.6431, allocations: 136 kB / 393.8 MB, free: 28.84 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 (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.0002135/0.6433, allocations: 111.4 kB / 393.9 MB, free: 28.72 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.005217/0.6486, allocations: 0.7929 MB / 394.7 MB, free: 27.93 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.13e-05/0.6487, allocations: 4.125 kB / 394.7 MB, free: 27.93 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001258/0.6499, allocations: 204 kB / 394.9 MB, free: 27.73 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001347/0.6513, allocations: 94.62 kB / 395 MB, free: 27.64 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004048/0.6554, allocations: 1.261 MB / 396.2 MB, free: 26.33 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004499/0.6559, allocations: 0.8276 MB / 397.1 MB, free: 25.48 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003107/0.6562, allocations: 35.42 kB / 397.1 MB, free: 25.45 MB / 298.7 MB Notification: Performance of SimCode: time 1.623e-06/0.6563, allocations: 0 / 397.1 MB, free: 25.45 MB / 298.7 MB Notification: Performance of Templates: time 0.01864/0.6749, allocations: 5.775 MB / 402.9 MB, free: 19.68 MB / 298.7 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