Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_Modelica.Blocks.Examples.PID_Controller") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001673/0.001673, allocations: 194 kB / 17.38 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.906/1.906, allocations: 226.5 MB / 244.7 MB, free: 8.191 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001051/0.001051, allocations: 95.02 kB / 296.8 MB, free: 6.895 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002325/0.0002325, allocations: 8 kB / 356.7 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2398/0.2401, allocations: 51.28 MB / 408 MB, free: 27.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.00241/0.2425, allocations: 2.654 MB / 410.7 MB, free: 25.06 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001192/0.2437, allocations: 0.937 MB / 411.6 MB, free: 24.12 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001812/0.2439, allocations: 12.78 kB / 411.6 MB, free: 24.11 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002639/0.2442, allocations: 63.48 kB / 411.7 MB, free: 24.05 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001653/0.2444, allocations: 82.88 kB / 411.8 MB, free: 23.97 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003881/0.2448, allocations: 171.1 kB / 411.9 MB, free: 23.81 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003527/0.2451, allocations: 478.3 kB / 412.4 MB, free: 23.34 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002526/0.2454, allocations: 157.2 kB / 412.6 MB, free: 23.18 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001484/0.2456, allocations: 147.3 kB / 412.7 MB, free: 23.04 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001651/0.2457, allocations: 163.1 kB / 412.9 MB, free: 22.88 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.282e-05/0.2458, allocations: 16 kB / 412.9 MB, free: 22.86 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.215e-05/0.2458, allocations: 16 kB / 412.9 MB, free: 22.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.62e-05/0.2459, allocations: 79.61 kB / 413 MB, free: 22.77 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001152/0.246, allocations: 196.7 kB / 413.2 MB, free: 22.57 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000224/0.2463, allocations: 348 kB / 413.5 MB, free: 22.23 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.2463, allocations: 0 / 413.5 MB, free: 22.23 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2463, allocations: 0 / 413.5 MB, free: 22.23 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.578e-06/0.2463, allocations: 0 / 413.5 MB, free: 22.23 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.0009502/0.2473, allocations: 0.7095 MB / 414.2 MB, free: 21.47 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.557e-05/0.2473, allocations: 8.031 kB / 414.2 MB, free: 21.46 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.052e-05/0.2474, allocations: 56.38 kB / 414.3 MB, free: 21.41 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003446/0.2477, allocations: 355.7 kB / 414.6 MB, free: 21.02 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.797e-05/0.2478, allocations: 25.38 kB / 414.7 MB, free: 21 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.603e-05/0.2478, allocations: 48.31 kB / 414.7 MB, free: 20.95 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007233/0.2486, allocations: 470.7 kB / 415.2 MB, free: 20.47 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.981e-05/0.2486, allocations: 4 kB / 415.2 MB, free: 20.46 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.398e-05/0.2486, allocations: 19.98 kB / 415.2 MB, free: 20.45 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.2486, allocations: 8 kB / 415.2 MB, free: 20.44 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008506/0.2495, allocations: 419.6 kB / 415.6 MB, free: 20.03 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001626/0.2511, allocations: 1.579 MB / 417.2 MB, free: 18.36 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007/0.2518, allocations: 342.6 kB / 417.5 MB, free: 18.01 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003723/0.2522, allocations: 188.7 kB / 417.7 MB, free: 17.82 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.171e-05/0.2523, allocations: 7.938 kB / 417.7 MB, free: 17.81 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.53e-05/0.2523, allocations: 38.56 kB / 417.7 MB, free: 17.77 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 1.422e-06/0.2523, allocations: 0 / 417.7 MB, free: 17.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.002723/0.255, allocations: 1.511 MB / 419.3 MB, free: 16.16 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.525e-05/0.2551, allocations: 81.11 kB / 419.3 MB, free: 16.06 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002833/0.2554, allocations: 349.7 kB / 419.7 MB, free: 15.71 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.117e-05/0.2554, allocations: 33.7 kB / 419.7 MB, free: 15.67 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/0.2555, allocations: 243.8 kB / 419.9 MB, free: 15.43 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.503e-05/0.2556, allocations: 114.5 kB / 420.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.84e-05/0.2556, allocations: 8 kB / 420.1 MB, free: 15.31 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.044e-05/0.2557, allocations: 350.8 kB / 420.4 MB, free: 14.96 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004075/0.2561, allocations: 192.7 kB / 420.6 MB, free: 14.77 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004305/0.2565, allocations: 264.8 kB / 420.9 MB, free: 14.48 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007622/0.2573, allocations: 443.6 kB / 421.3 MB, free: 14.02 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.2573, allocations: 0 / 421.3 MB, free: 14.02 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0009365/0.2582, allocations: 0.5164 MB / 421.8 MB, free: 13.5 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.87e-05/0.2583, allocations: 156.3 kB / 422 MB, free: 13.31 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.2583, allocations: 7.984 kB / 422 MB, free: 13.3 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.2583, allocations: 4 kB / 422 MB, free: 13.3 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008128/0.2592, allocations: 255.7 kB / 422.2 MB, free: 13.05 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001175/0.2603, allocations: 1.552 MB / 423.8 MB, free: 11.37 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002844/0.2606, allocations: 39.97 kB / 423.8 MB, free: 11.33 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.52e-05/0.2607, allocations: 16 kB / 423.8 MB, free: 11.31 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.769e-06/0.2607, allocations: 4 kB / 423.8 MB, free: 11.31 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007804/0.2615, allocations: 447.5 kB / 424.3 MB, free: 10.87 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.457e-06/0.2615, allocations: 8.188 kB / 424.3 MB, free: 10.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.607e-06/0.2615, allocations: 4 kB / 424.3 MB, free: 10.86 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004345/0.2619, allocations: 123.9 kB / 424.4 MB, free: 10.74 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.588e-06/0.2619, allocations: 4 kB / 424.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002466/0.2622, allocations: 47.95 kB / 424.5 MB, free: 10.69 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.13e-05/0.2622, allocations: 20 kB / 424.5 MB, free: 10.67 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.0001628/0.2624, allocations: 244.9 kB / 424.7 MB, free: 10.42 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.357e-05/0.2625, allocations: 43.44 kB / 424.8 MB, free: 10.38 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.039e-05/0.2625, allocations: 48.23 kB / 424.8 MB, free: 10.33 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.2625, allocations: 8 kB / 424.8 MB, free: 10.32 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.013e-06/0.2626, allocations: 0 / 424.8 MB, free: 10.32 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.2626, allocations: 0 / 424.8 MB, free: 10.32 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001295/0.2639, allocations: 0.9657 MB / 425.8 MB, free: 9.289 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.2639, allocations: 0 / 425.8 MB, free: 9.289 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000374/0.2643, allocations: 100 kB / 425.9 MB, free: 9.191 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.2643, allocations: 4 kB / 425.9 MB, free: 9.188 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.272e-05/0.2643, allocations: 7.938 kB / 425.9 MB, free: 9.18 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.534e-06/0.2643, allocations: 4 kB / 425.9 MB, free: 9.176 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.2643, allocations: 0 / 425.9 MB, free: 9.176 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001157/0.2655, allocations: 0.74 MB / 426.6 MB, free: 8.406 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.602e-05/0.2656, allocations: 136.7 kB / 426.8 MB, free: 8.254 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.132e-05/0.2656, allocations: 11.94 kB / 426.8 MB, free: 8.242 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002731/0.2659, allocations: 47.95 kB / 426.8 MB, free: 8.195 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.301e-05/0.266, allocations: 23.97 kB / 426.8 MB, free: 8.172 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.694e-05/0.266, allocations: 12 kB / 426.9 MB, free: 8.16 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001855/0.2662, allocations: 243.2 kB / 427.1 MB, free: 7.926 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2662, allocations: 0 / 427.1 MB, free: 7.926 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004587/0.2667, allocations: 136 kB / 427.2 MB, free: 7.793 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.82e-05/0.2668, allocations: 107.2 kB / 427.3 MB, free: 7.676 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001648/0.2684, allocations: 0.7909 MB / 428.1 MB, free: 6.887 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.2684, allocations: 0 / 428.1 MB, free: 6.887 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003946/0.2688, allocations: 208.1 kB / 428.3 MB, free: 6.684 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008335/0.2697, allocations: 103.2 kB / 428.4 MB, free: 6.59 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001563/0.2713, allocations: 1.244 MB / 429.7 MB, free: 5.297 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001952/0.2715, allocations: 0.8198 MB / 430.5 MB, free: 4.449 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001129/0.2716, allocations: 31.44 kB / 430.5 MB, free: 4.418 MB / 298.7 MB Notification: Performance of SimCode: time 3.21e-07/0.2716, allocations: 0 / 430.5 MB, free: 4.418 MB / 298.7 MB Notification: Performance of Templates: time 0.006798/0.2784, allocations: 5.893 MB / 436.4 MB, free: 14.54 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.PID_Controller.makefile (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.PID_Controller --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches