Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001015/0.001015, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.162/1.162, allocations: 205.1 MB / 223.8 MB, free: 8.461 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.0009898/0.0009898, allocations: 103.8 kB / 271.2 MB, free: 8.422 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007657/0.0007658, allocations: 43.94 kB / 327.2 MB, free: 316 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1778/0.1786, allocations: 46.62 MB / 373.8 MB, free: 45.63 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003698/0.1823, allocations: 3.151 MB / 377 MB, free: 43.32 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001591/0.184, allocations: 0.9895 MB / 378 MB, free: 42.52 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000372/0.1844, allocations: 13.88 kB / 378 MB, free: 42.52 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003178/0.1847, allocations: 67.33 kB / 378 MB, free: 42.46 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002829/0.185, allocations: 87.23 kB / 378.1 MB, free: 42.39 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005097/0.1855, allocations: 207.3 kB / 378.3 MB, free: 42.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004932/0.186, allocations: 0.5087 MB / 378.8 MB, free: 41.93 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002582/0.1863, allocations: 161 kB / 379 MB, free: 41.82 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002098/0.1865, allocations: 175.8 kB / 379.2 MB, free: 41.72 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002146/0.1867, allocations: 197.2 kB / 379.4 MB, free: 41.58 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.455e-05/0.1868, allocations: 22.28 kB / 379.4 MB, free: 41.58 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.426e-05/0.1869, allocations: 23.03 kB / 379.4 MB, free: 41.58 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.44e-05/0.187, allocations: 92.44 kB / 379.5 MB, free: 41.51 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001434/0.1871, allocations: 196.2 kB / 379.7 MB, free: 41.37 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003069/0.1874, allocations: 457.2 kB / 380.1 MB, free: 41.02 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.1874, allocations: 5.094 kB / 380.1 MB, free: 41.02 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.31e-07/0.1874, allocations: 0 / 380.1 MB, free: 41.02 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.095e-05/0.1875, allocations: 0 / 380.1 MB, free: 41.02 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.001186/0.1887, allocations: 0.7714 MB / 380.9 MB, free: 40.37 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.239e-05/0.1887, allocations: 10.22 kB / 380.9 MB, free: 40.37 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.05e-05/0.1888, allocations: 49.59 kB / 381 MB, free: 40.34 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003715/0.1892, allocations: 369 kB / 381.3 MB, free: 40 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.818e-05/0.1892, allocations: 24.59 kB / 381.3 MB, free: 39.99 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.45e-05/0.1893, allocations: 44.38 kB / 381.4 MB, free: 39.97 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007786/0.1901, allocations: 451.3 kB / 381.8 MB, free: 39.68 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.855e-05/0.1901, allocations: 2.156 kB / 381.8 MB, free: 39.68 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.819e-05/0.1901, allocations: 15.06 kB / 381.8 MB, free: 39.66 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.034e-05/0.1901, allocations: 12.95 kB / 381.9 MB, free: 39.66 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008871/0.191, allocations: 380.8 kB / 382.2 MB, free: 39.48 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001611/0.1926, allocations: 1.574 MB / 383.8 MB, free: 38.12 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007085/0.1934, allocations: 321.4 kB / 384.1 MB, free: 37.96 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004011/0.1938, allocations: 160.1 kB / 384.3 MB, free: 37.88 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.91e-05/0.1938, allocations: 6.5 kB / 384.3 MB, free: 37.88 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.407e-05/0.1938, allocations: 35.97 kB / 384.3 MB, free: 37.83 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 1.452e-06/0.1938, allocations: 5.656 kB / 384.3 MB, free: 37.83 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.002802/0.1967, allocations: 1.378 MB / 385.7 MB, free: 36.88 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.77e-05/0.1967, allocations: 80.92 kB / 385.8 MB, free: 36.79 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003071/0.197, allocations: 366.5 kB / 386.1 MB, free: 36.55 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.757e-05/0.197, allocations: 32.2 kB / 386.2 MB, free: 36.52 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.73e-05/0.1971, allocations: 242.9 kB / 386.4 MB, free: 36.3 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.681e-05/0.1972, allocations: 121.2 kB / 386.5 MB, free: 36.19 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001022/0.1973, allocations: 77.06 kB / 386.6 MB, free: 36.14 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.609e-05/0.1974, allocations: 351.1 kB / 386.9 MB, free: 35.8 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004344/0.1978, allocations: 176.5 kB / 387.1 MB, free: 35.7 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004388/0.1983, allocations: 245.9 kB / 387.4 MB, free: 35.53 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007593/0.199, allocations: 400.7 kB / 387.7 MB, free: 35.12 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.199, allocations: 0 / 387.7 MB, free: 35.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0009278/0.2, allocations: 493.2 kB / 388.2 MB, free: 34.63 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.204e-05/0.2, allocations: 4 kB / 388.2 MB, free: 34.62 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.2, allocations: 4 kB / 388.2 MB, free: 34.62 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.2, allocations: 8.219 kB / 388.2 MB, free: 34.61 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007907/0.2008, allocations: 215.7 kB / 388.5 MB, free: 34.4 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001118/0.2019, allocations: 1.462 MB / 389.9 MB, free: 32.81 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003024/0.2023, allocations: 48.02 kB / 390 MB, free: 32.76 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.178e-05/0.2023, allocations: 12 kB / 390 MB, free: 32.75 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000421/0.2027, allocations: 276.9 kB / 390.2 MB, free: 32.48 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003662/0.2031, allocations: 240.8 kB / 390.5 MB, free: 32.21 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006574/0.2038, allocations: 375.4 kB / 390.8 MB, free: 31.82 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.623e-06/0.2038, allocations: 0 / 390.8 MB, free: 31.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0008223/0.2046, allocations: 471.9 kB / 391.3 MB, free: 31.35 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.433e-06/0.2046, allocations: 4 kB / 391.3 MB, free: 31.35 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.226e-06/0.2046, allocations: 4 kB / 391.3 MB, free: 31.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.147e-06/0.2046, allocations: 4 kB / 391.3 MB, free: 31.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004296/0.2051, allocations: 123.8 kB / 391.4 MB, free: 31.22 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.2051, allocations: 4 kB / 391.4 MB, free: 31.21 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002795/0.2054, allocations: 36.05 kB / 391.5 MB, free: 31.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.096e-05/0.2054, allocations: 20 kB / 391.5 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 8.098e-05/0.2055, allocations: 208.7 kB / 391.7 MB, free: 30.95 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.22e-05/0.2055, allocations: 39.53 kB / 391.7 MB, free: 30.91 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.449e-05/0.2056, allocations: 48.25 kB / 391.8 MB, free: 30.86 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.2056, allocations: 0 / 391.8 MB, free: 30.86 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.2056, allocations: 0 / 391.8 MB, free: 30.86 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.2057, allocations: 11.92 kB / 391.8 MB, free: 30.85 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001274/0.2069, allocations: 0.9182 MB / 392.7 MB, free: 29.87 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.2069, allocations: 0 / 392.7 MB, free: 29.87 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003752/0.2073, allocations: 95.8 kB / 392.8 MB, free: 29.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.2073, allocations: 0 / 392.8 MB, free: 29.77 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.111e-05/0.2074, allocations: 8 kB / 392.8 MB, free: 29.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.2074, allocations: 4 kB / 392.8 MB, free: 29.76 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.2074, allocations: 0 / 392.8 MB, free: 29.76 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004394/0.2118, allocations: 3.151 MB / 396 MB, free: 26.46 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.668e-05/0.2119, allocations: 128.7 kB / 396.1 MB, free: 26.32 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.808e-05/0.2119, allocations: 12 kB / 396.1 MB, free: 26.3 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002739/0.2122, allocations: 39.95 kB / 396.1 MB, free: 26.27 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.261e-05/0.2123, allocations: 19.91 kB / 396.2 MB, free: 26.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.591e-05/0.2123, allocations: 19.92 kB / 396.2 MB, free: 26.23 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001725/0.2125, allocations: 247.2 kB / 396.4 MB, free: 25.99 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.2125, allocations: 4 kB / 396.4 MB, free: 25.98 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006457/0.2131, allocations: 196 kB / 396.6 MB, free: 25.79 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 7.258e-05/0.2132, allocations: 111.2 kB / 396.7 MB, free: 25.68 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001611/0.2148, allocations: 0.6879 MB / 397.4 MB, free: 24.99 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.2149, allocations: 4 kB / 397.4 MB, free: 24.98 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003834/0.2152, allocations: 175.8 kB / 397.6 MB, free: 24.81 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005593/0.2158, allocations: 98 kB / 397.7 MB, free: 24.71 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001486/0.2173, allocations: 1.402 MB / 399.1 MB, free: 23.26 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002083/0.2175, allocations: 0.8314 MB / 399.9 MB, free: 22.41 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002492/0.2178, allocations: 63.23 kB / 400 MB, free: 22.34 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.595e-05/0.2179, allocations: 35.44 kB / 400 MB, free: 22.31 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2179, allocations: 0 / 400 MB, free: 22.31 MB / 298.7 MB Notification: Performance of Templates: time 0.0075/0.2254, allocations: 5.038 MB / 405.1 MB, free: 17.29 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@2/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