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.001135/0.001136, allocations: 175.5 kB / 16.72 MB, free: 5.082 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.838/1.838, allocations: 205.4 MB / 222.9 MB, free: 9.023 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.0008191/0.0008191, allocations: 85.05 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003669/0.000367, allocations: 8 kB / 327.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2414/0.2418, allocations: 47.57 MB / 375.1 MB, free: 45.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003721/0.2456, allocations: 2.656 MB / 377.7 MB, free: 43.37 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00232/0.2479, allocations: 0.9643 MB / 378.7 MB, free: 42.58 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005688/0.2485, allocations: 12.94 kB / 378.7 MB, free: 42.58 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004079/0.249, allocations: 59.41 kB / 378.8 MB, free: 42.53 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004354/0.2494, allocations: 87.52 kB / 378.8 MB, free: 42.46 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007202/0.2502, allocations: 170 kB / 379 MB, free: 42.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007459/0.2509, allocations: 483.6 kB / 379.5 MB, free: 42.04 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003305/0.2513, allocations: 153.2 kB / 379.6 MB, free: 41.95 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002134/0.2515, allocations: 155.5 kB / 379.8 MB, free: 41.86 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002226/0.2517, allocations: 170.1 kB / 380 MB, free: 41.74 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.741e-05/0.2518, allocations: 16 kB / 380 MB, free: 41.74 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.953e-05/0.2519, allocations: 15.22 kB / 380 MB, free: 41.74 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.718e-05/0.2519, allocations: 67.66 kB / 380.1 MB, free: 41.69 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001752/0.2521, allocations: 203.3 kB / 380.2 MB, free: 41.54 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003139/0.2525, allocations: 356.3 kB / 380.6 MB, free: 41.27 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.2525, allocations: 0 / 380.6 MB, free: 41.27 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.023e-06/0.2525, allocations: 5 kB / 380.6 MB, free: 41.27 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.905e-06/0.2525, allocations: 0 / 380.6 MB, free: 41.27 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.001295/0.2538, allocations: 0.7037 MB / 381.3 MB, free: 40.68 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.698e-05/0.2539, allocations: 12.84 kB / 381.3 MB, free: 40.67 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000102/0.254, allocations: 50.28 kB / 381.4 MB, free: 40.65 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004596/0.2544, allocations: 364.6 kB / 381.7 MB, free: 40.31 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.944e-05/0.2545, allocations: 29.28 kB / 381.8 MB, free: 40.3 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.723e-05/0.2546, allocations: 40.06 kB / 381.8 MB, free: 40.28 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001037/0.2556, allocations: 473.8 kB / 382.3 MB, free: 39.98 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.54e-05/0.2557, allocations: 1.406 kB / 382.3 MB, free: 39.98 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.395e-05/0.2557, allocations: 20 kB / 382.3 MB, free: 39.96 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.415e-05/0.2557, allocations: 8.562 kB / 382.3 MB, free: 39.96 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001151/0.2569, allocations: 420 kB / 382.7 MB, free: 39.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002154/0.2591, allocations: 1.59 MB / 384.3 MB, free: 38.42 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008211/0.2599, allocations: 343.5 kB / 384.6 MB, free: 38.25 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004039/0.2603, allocations: 187.7 kB / 384.8 MB, free: 38.17 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.23e-05/0.2604, allocations: 6.562 kB / 384.8 MB, free: 38.16 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.115e-05/0.2604, allocations: 41.16 kB / 384.8 MB, free: 38.12 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 2.325e-06/0.2604, allocations: 0 / 384.8 MB, free: 38.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.003088/0.2635, allocations: 1.514 MB / 386.4 MB, free: 37.09 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.24e-05/0.2635, allocations: 81.11 kB / 386.4 MB, free: 36.99 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002994/0.2638, allocations: 365.5 kB / 386.8 MB, free: 36.62 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.157e-05/0.2639, allocations: 33.7 kB / 386.8 MB, free: 36.59 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.779e-05/0.264, allocations: 239.8 kB / 387.1 MB, free: 36.35 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.077e-05/0.264, allocations: 126.4 kB / 387.2 MB, free: 36.22 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.684e-05/0.2641, allocations: 4 kB / 387.2 MB, free: 36.22 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.586e-05/0.2641, allocations: 346.8 kB / 387.5 MB, free: 35.87 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003829/0.2645, allocations: 184.8 kB / 387.7 MB, free: 35.69 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004176/0.265, allocations: 276.8 kB / 388 MB, free: 35.39 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007304/0.2657, allocations: 432.2 kB / 388.4 MB, free: 34.94 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.2657, allocations: 4 kB / 388.4 MB, free: 34.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001391/0.2671, allocations: 0.5209 MB / 388.9 MB, free: 34.41 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.716e-05/0.2672, allocations: 151.9 kB / 389.1 MB, free: 34.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.2672, allocations: 4 kB / 389.1 MB, free: 34.22 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.071e-05/0.2672, allocations: 4 kB / 389.1 MB, free: 34.22 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001198/0.2685, allocations: 263.7 kB / 389.3 MB, free: 33.96 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001311/0.2698, allocations: 1.54 MB / 390.9 MB, free: 32.29 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003344/0.2701, allocations: 52.05 kB / 390.9 MB, free: 32.24 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.583e-05/0.2702, allocations: 16 kB / 390.9 MB, free: 32.22 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.991e-06/0.2702, allocations: 4 kB / 391 MB, free: 32.22 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008701/0.2711, allocations: 443.6 kB / 391.4 MB, free: 31.79 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.2711, allocations: 11.92 kB / 391.4 MB, free: 31.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.478e-06/0.2711, allocations: 4 kB / 391.4 MB, free: 31.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000438/0.2715, allocations: 128 kB / 391.5 MB, free: 31.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.854e-06/0.2715, allocations: 4 kB / 391.5 MB, free: 31.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002857/0.2718, allocations: 43.95 kB / 391.6 MB, free: 31.6 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.191e-05/0.2719, allocations: 16 kB / 391.6 MB, free: 31.58 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.0001817/0.2721, allocations: 244.9 kB / 391.8 MB, free: 31.33 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.623e-05/0.2721, allocations: 39.53 kB / 391.9 MB, free: 31.29 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.892e-05/0.2722, allocations: 48.17 kB / 391.9 MB, free: 31.25 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.2722, allocations: 4 kB / 391.9 MB, free: 31.24 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.2722, allocations: 0 / 391.9 MB, free: 31.24 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.2722, allocations: 7.938 kB / 391.9 MB, free: 31.23 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001414/0.2736, allocations: 0.965 MB / 392.9 MB, free: 30.2 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.2737, allocations: 3.984 kB / 392.9 MB, free: 30.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003869/0.2741, allocations: 95.88 kB / 393 MB, free: 30.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.372e-06/0.2741, allocations: 4.125 kB / 393 MB, free: 30.1 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.069e-05/0.2741, allocations: 15.94 kB / 393 MB, free: 30.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.2741, allocations: 0 / 393 MB, free: 30.09 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.2741, allocations: 4 kB / 393 MB, free: 30.08 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001194/0.2753, allocations: 0.7375 MB / 393.7 MB, free: 29.32 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000115/0.2755, allocations: 140.7 kB / 393.9 MB, free: 29.16 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.391e-05/0.2755, allocations: 11.94 kB / 393.9 MB, free: 29.15 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002782/0.2758, allocations: 44.08 kB / 393.9 MB, free: 29.11 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.732e-05/0.2759, allocations: 27.97 kB / 394 MB, free: 29.08 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.651e-05/0.2759, allocations: 12 kB / 394 MB, free: 29.07 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001907/0.2761, allocations: 251.2 kB / 394.2 MB, free: 28.82 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2761, allocations: 0 / 394.2 MB, free: 28.82 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005025/0.2766, allocations: 132 kB / 394.4 MB, free: 28.7 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.93e-05/0.2767, allocations: 107.2 kB / 394.5 MB, free: 28.58 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001654/0.2784, allocations: 0.789 MB / 395.2 MB, free: 27.79 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.307e-06/0.2784, allocations: 4.062 kB / 395.3 MB, free: 27.79 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003831/0.2788, allocations: 204 kB / 395.5 MB, free: 27.59 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000696/0.2795, allocations: 93.92 kB / 395.5 MB, free: 27.5 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00157/0.2811, allocations: 1.251 MB / 396.8 MB, free: 26.2 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002188/0.2813, allocations: 0.8198 MB / 397.6 MB, free: 25.36 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001099/0.2814, allocations: 31.44 kB / 397.6 MB, free: 25.33 MB / 298.7 MB Notification: Performance of SimCode: time 6.22e-07/0.2814, allocations: 0 / 397.6 MB, free: 25.33 MB / 298.7 MB Notification: Performance of Templates: time 0.007371/0.2888, allocations: 5.951 MB / 403.6 MB, free: 19.39 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