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.001511/0.001511, allocations: 179.5 kB / 16.41 MB, free: 5.73 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.573/1.573, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.0008688/0.0008688, allocations: 92.92 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002877/0.0002877, allocations: 12 kB / 327 MB, free: 204 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2029/0.2032, allocations: 47.57 MB / 374.5 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.002509/0.2057, allocations: 2.658 MB / 377.2 MB, free: 43.34 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001252/0.207, allocations: 0.9509 MB / 378.1 MB, free: 42.57 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001862/0.2072, allocations: 16.78 kB / 378.2 MB, free: 42.56 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002489/0.2075, allocations: 63.48 kB / 378.2 MB, free: 42.51 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001679/0.2076, allocations: 83.17 kB / 378.3 MB, free: 42.44 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00039/0.208, allocations: 170.1 kB / 378.5 MB, free: 42.32 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003655/0.2084, allocations: 476.7 kB / 378.9 MB, free: 42.03 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002166/0.2086, allocations: 128.4 kB / 379.1 MB, free: 41.95 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001544/0.2088, allocations: 148.1 kB / 379.2 MB, free: 41.87 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001702/0.209, allocations: 173.9 kB / 379.4 MB, free: 41.75 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.556e-05/0.209, allocations: 15.31 kB / 379.4 MB, free: 41.75 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.22e-05/0.2091, allocations: 16.16 kB / 379.4 MB, free: 41.75 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.139e-05/0.2092, allocations: 71.44 kB / 379.5 MB, free: 41.69 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.347e-05/0.2092, allocations: 94.45 kB / 379.6 MB, free: 41.62 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002415/0.2095, allocations: 345.5 kB / 379.9 MB, free: 41.37 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2095, allocations: 0 / 379.9 MB, free: 41.37 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.445e-06/0.2095, allocations: 1.188 kB / 379.9 MB, free: 41.37 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.582e-06/0.2095, allocations: 3.938 kB / 379.9 MB, free: 41.36 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.00103/0.2105, allocations: 0.7225 MB / 380.6 MB, free: 40.76 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.213e-05/0.2106, allocations: 13.41 kB / 380.6 MB, free: 40.75 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.775e-05/0.2107, allocations: 47.97 kB / 380.7 MB, free: 40.73 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003564/0.211, allocations: 356.4 kB / 381 MB, free: 40.4 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.009e-05/0.2111, allocations: 31.56 kB / 381.1 MB, free: 40.39 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.218e-05/0.2111, allocations: 44.78 kB / 381.1 MB, free: 40.37 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008547/0.212, allocations: 460.6 kB / 381.6 MB, free: 40.08 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.044e-05/0.212, allocations: 6.281 kB / 381.6 MB, free: 40.07 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.327e-05/0.2121, allocations: 16.16 kB / 381.6 MB, free: 40.06 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.367e-05/0.2121, allocations: 8.625 kB / 381.6 MB, free: 40.06 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009655/0.2131, allocations: 424.3 kB / 382 MB, free: 39.88 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001644/0.2147, allocations: 1.581 MB / 383.6 MB, free: 38.52 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007881/0.2155, allocations: 346.2 kB / 383.9 MB, free: 38.36 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004283/0.216, allocations: 191.3 kB / 384.1 MB, free: 38.27 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.642e-05/0.216, allocations: 7.547 kB / 384.1 MB, free: 38.26 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.416e-05/0.216, allocations: 31.56 kB / 384.2 MB, free: 38.22 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 1.673e-06/0.216, allocations: 5.188 kB / 384.2 MB, free: 38.22 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.00303/0.2191, allocations: 1.512 MB / 385.7 MB, free: 37.26 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.833e-05/0.2191, allocations: 80.58 kB / 385.7 MB, free: 37.16 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003128/0.2194, allocations: 357 kB / 386.1 MB, free: 36.92 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.104e-05/0.2195, allocations: 37.64 kB / 386.1 MB, free: 36.88 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.81e-05/0.2196, allocations: 243.9 kB / 386.4 MB, free: 36.64 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.549e-05/0.2196, allocations: 122.3 kB / 386.5 MB, free: 36.52 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.671e-05/0.2197, allocations: 12 kB / 386.5 MB, free: 36.5 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.609e-05/0.2197, allocations: 346.8 kB / 386.8 MB, free: 36.16 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004104/0.2201, allocations: 184.8 kB / 387 MB, free: 35.98 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004357/0.2206, allocations: 276.8 kB / 387.3 MB, free: 35.67 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004238/0.221, allocations: 199.9 kB / 387.5 MB, free: 35.48 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.221, allocations: 0 / 387.5 MB, free: 35.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0009542/0.222, allocations: 0.5325 MB / 388 MB, free: 34.94 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.559e-05/0.222, allocations: 148 kB / 388.2 MB, free: 34.76 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-06/0.222, allocations: 4 kB / 388.2 MB, free: 34.76 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.2221, allocations: 7.938 kB / 388.2 MB, free: 34.75 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000853/0.2229, allocations: 255.7 kB / 388.4 MB, free: 34.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001165/0.2241, allocations: 1.536 MB / 390 MB, free: 32.83 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003181/0.2244, allocations: 56.05 kB / 390 MB, free: 32.78 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.207e-05/0.2245, allocations: 15.94 kB / 390 MB, free: 32.76 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.328e-06/0.2245, allocations: 4 kB / 390 MB, free: 32.76 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008301/0.2253, allocations: 443.6 kB / 390.5 MB, free: 32.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.377e-06/0.2253, allocations: 3.953 kB / 390.5 MB, free: 32.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.268e-06/0.2253, allocations: 4.156 kB / 390.5 MB, free: 32.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004499/0.2258, allocations: 127.9 kB / 390.6 MB, free: 32.19 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.2258, allocations: 11.97 kB / 390.6 MB, free: 32.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002688/0.2261, allocations: 47.97 kB / 390.7 MB, free: 32.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.849e-05/0.2261, allocations: 8 kB / 390.7 MB, free: 32.12 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.0001509/0.2263, allocations: 248.9 kB / 390.9 MB, free: 31.87 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.592e-05/0.2263, allocations: 39.53 kB / 391 MB, free: 31.83 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.583e-05/0.2264, allocations: 48.2 kB / 391 MB, free: 31.79 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.2264, allocations: 4 kB / 391 MB, free: 31.78 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.2264, allocations: 0 / 391 MB, free: 31.78 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.2264, allocations: 7.938 kB / 391 MB, free: 31.77 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001434/0.2279, allocations: 0.965 MB / 392 MB, free: 30.74 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.2279, allocations: 4 kB / 392 MB, free: 30.74 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004103/0.2283, allocations: 104 kB / 392.1 MB, free: 30.64 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.2283, allocations: 0 / 392.1 MB, free: 30.64 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.113e-05/0.2283, allocations: 8 kB / 392.1 MB, free: 30.63 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/0.2283, allocations: 4 kB / 392.1 MB, free: 30.62 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.2284, allocations: 3.984 kB / 392.1 MB, free: 30.62 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001223/0.2296, allocations: 0.7407 MB / 392.8 MB, free: 29.85 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.445e-05/0.2297, allocations: 136.7 kB / 393 MB, free: 29.7 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.296e-05/0.2297, allocations: 11.98 kB / 393 MB, free: 29.69 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002992/0.23, allocations: 47.95 kB / 393 MB, free: 29.64 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.06e-05/0.2301, allocations: 23.97 kB / 393.1 MB, free: 29.62 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.415e-05/0.2301, allocations: 4 kB / 393.1 MB, free: 29.61 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001805/0.2303, allocations: 251.2 kB / 393.3 MB, free: 29.37 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.12e-07/0.2303, allocations: 0 / 393.3 MB, free: 29.37 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004701/0.2308, allocations: 139.9 kB / 393.4 MB, free: 29.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 (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 8.653e-05/0.2309, allocations: 107.5 kB / 393.5 MB, free: 29.12 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001753/0.2327, allocations: 0.7968 MB / 394.3 MB, free: 28.32 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.2327, allocations: 0 / 394.3 MB, free: 28.32 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004217/0.2331, allocations: 204.1 kB / 394.5 MB, free: 28.12 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006205/0.2337, allocations: 95.92 kB / 394.6 MB, free: 28.04 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00149/0.2352, allocations: 1.256 MB / 395.9 MB, free: 26.73 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001875/0.2354, allocations: 0.8159 MB / 396.7 MB, free: 25.89 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001034/0.2355, allocations: 39.44 kB / 396.7 MB, free: 25.86 MB / 298.7 MB Notification: Performance of SimCode: time 4.31e-07/0.2355, allocations: 0 / 396.7 MB, free: 25.86 MB / 298.7 MB Notification: Performance of Templates: time 0.005981/0.2415, allocations: 5.923 MB / 402.7 MB, free: 19.95 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/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_cpp_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches