Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002029/0.002029, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001469/0.001469, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.677/1.677, allocations: 227.7 MB / 247.7 MB, free: 10.44 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002088/0.002088, allocations: 69.45 kB / 307.9 MB, free: 0.5859 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1046, allocations: 50.53 MB / 358.4 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004972/0.1096, allocations: 3.116 MB / 361.5 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002001/0.1116, allocations: 1.001 MB / 362.5 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002363/0.1119, allocations: 11.94 kB / 362.5 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003773/0.1123, allocations: 87.17 kB / 362.6 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002542/0.1126, allocations: 107.1 kB / 362.7 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005964/0.1132, allocations: 227 kB / 363 MB, free: 9.477 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005629/0.1137, allocations: 0.5107 MB / 363.5 MB, free: 8.961 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003294/0.1141, allocations: 177.2 kB / 363.6 MB, free: 8.781 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002371/0.1143, allocations: 191.2 kB / 363.8 MB, free: 8.594 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002711/0.1146, allocations: 206.9 kB / 364 MB, free: 8.391 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.882e-05/0.1147, allocations: 44 kB / 364.1 MB, free: 8.348 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.747e-05/0.1147, allocations: 40 kB / 364.1 MB, free: 8.309 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001366/0.1149, allocations: 95.69 kB / 364.2 MB, free: 8.215 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002118/0.1151, allocations: 222.7 kB / 364.4 MB, free: 7.996 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005133/0.1156, allocations: 490.5 kB / 364.9 MB, free: 7.516 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1156, allocations: 0 / 364.9 MB, free: 7.516 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1157, allocations: 0 / 364.9 MB, free: 7.516 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.805e-06/0.1157, allocations: 0 / 364.9 MB, free: 7.516 MB / 302.1 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.001374/0.117, allocations: 0.7717 MB / 365.7 MB, free: 6.695 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.1171, allocations: 8.031 kB / 365.7 MB, free: 6.688 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.359e-05/0.1172, allocations: 48.38 kB / 365.7 MB, free: 6.641 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000461/0.1177, allocations: 355.7 kB / 366.1 MB, free: 6.258 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.363e-05/0.1177, allocations: 29.38 kB / 366.1 MB, free: 6.23 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.59e-05/0.1178, allocations: 36.38 kB / 366.1 MB, free: 6.195 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009176/0.1187, allocations: 467.5 kB / 366.6 MB, free: 5.707 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.977e-05/0.1187, allocations: 3.906 kB / 366.6 MB, free: 5.703 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.829e-05/0.1188, allocations: 20 kB / 366.6 MB, free: 5.684 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.294e-05/0.1188, allocations: 8 kB / 366.6 MB, free: 5.676 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009958/0.1198, allocations: 379.6 kB / 367 MB, free: 5.305 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002204/0.122, allocations: 1.567 MB / 368.6 MB, free: 3.645 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008476/0.1229, allocations: 315 kB / 368.9 MB, free: 3.328 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004515/0.1233, allocations: 160.8 kB / 369 MB, free: 3.168 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.956e-05/0.1234, allocations: 3.938 kB / 369 MB, free: 3.164 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.374e-05/0.1234, allocations: 46.5 kB / 369.1 MB, free: 3.109 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.545e-06/0.1234, allocations: 0 / 369.1 MB, free: 3.109 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.003378/0.1268, allocations: 1.389 MB / 370.5 MB, free: 1.625 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.598e-05/0.1269, allocations: 106.8 kB / 370.6 MB, free: 1.496 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004072/0.1273, allocations: 365.6 kB / 370.9 MB, free: 1.133 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.238e-05/0.1274, allocations: 29.7 kB / 371 MB, free: 1.098 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001926/0.1276, allocations: 244 kB / 371.2 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001096/0.1277, allocations: 110.4 kB / 371.3 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001328/0.1278, allocations: 82.03 kB / 371.4 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001763/0.128, allocations: 350.8 kB / 371.7 MB, free: 316 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004746/0.1285, allocations: 178.4 kB / 371.9 MB, free: 132 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1813/0.3098, allocations: 253.7 kB / 372.1 MB, free: 20.12 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001046/0.3109, allocations: 390.9 kB / 372.5 MB, free: 20.05 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.3109, allocations: 1.188 kB / 372.5 MB, free: 20.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001166/0.3121, allocations: 494.2 kB / 373 MB, free: 20.02 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.017e-05/0.3121, allocations: 5.625 kB / 373 MB, free: 20.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.747e-06/0.3121, allocations: 6.344 kB / 373 MB, free: 20.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.091e-05/0.3122, allocations: 3.938 kB / 373 MB, free: 20.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009218/0.3131, allocations: 207.5 kB / 373.2 MB, free: 20.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001362/0.3145, allocations: 1.576 MB / 374.8 MB, free: 18.6 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003591/0.3148, allocations: 37.3 kB / 374.8 MB, free: 18.6 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.744e-05/0.3149, allocations: 15.17 kB / 374.9 MB, free: 18.6 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005109/0.3154, allocations: 270 kB / 375.1 MB, free: 18.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004269/0.3158, allocations: 249 kB / 375.4 MB, free: 18.43 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007794/0.3166, allocations: 366.9 kB / 375.7 MB, free: 18.35 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.134e-06/0.3166, allocations: 1.031 kB / 375.7 MB, free: 18.35 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001013/0.3176, allocations: 474.3 kB / 376.2 MB, free: 18.2 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.144e-05/0.3177, allocations: 7.844 kB / 376.2 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.3177, allocations: 5.188 kB / 376.2 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.902e-06/0.3177, allocations: 4.625 kB / 376.2 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004634/0.3182, allocations: 121.2 kB / 376.3 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.181e-06/0.3182, allocations: 4.625 kB / 376.3 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002993/0.3185, allocations: 36.27 kB / 376.4 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.319e-05/0.3185, allocations: 15.31 kB / 376.4 MB, free: 18.17 MB / 302.1 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 0.0001139/0.3186, allocations: 207.8 kB / 376.6 MB, free: 17.97 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.387e-05/0.3187, allocations: 45.19 kB / 376.6 MB, free: 17.96 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.937e-05/0.3188, allocations: 48.14 kB / 376.7 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.3188, allocations: 2.75 kB / 376.7 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.3188, allocations: 2.75 kB / 376.7 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.3188, allocations: 2.109 kB / 376.7 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001483/0.3203, allocations: 0.9178 MB / 377.6 MB, free: 17.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.3203, allocations: 2.031 kB / 377.6 MB, free: 17.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004033/0.3207, allocations: 91.44 kB / 377.7 MB, free: 17.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/0.3207, allocations: 4 kB / 377.7 MB, free: 17.38 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.044e-05/0.3208, allocations: 5.969 kB / 377.7 MB, free: 17.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.516e-06/0.3208, allocations: 3.594 kB / 377.7 MB, free: 17.37 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.806e-06/0.3208, allocations: 2.016 kB / 377.7 MB, free: 17.37 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001321/0.3221, allocations: 0.6766 MB / 378.4 MB, free: 17.05 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001052/0.3222, allocations: 142.9 kB / 378.5 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.617e-05/0.3223, allocations: 7.688 kB / 378.5 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002894/0.3226, allocations: 30.89 kB / 378.6 MB, free: 16.92 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.901e-05/0.3227, allocations: 29.34 kB / 378.6 MB, free: 16.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.718e-05/0.3227, allocations: 10.41 kB / 378.6 MB, free: 16.91 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002297/0.3229, allocations: 249.4 kB / 378.8 MB, free: 16.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3229, allocations: 0 / 378.8 MB, free: 16.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000536/0.3235, allocations: 133.9 kB / 379 MB, free: 16.76 MB / 302.1 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 0.0001048/0.3236, allocations: 109.3 kB / 379.1 MB, free: 16.66 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001919/0.3255, allocations: 0.7069 MB / 379.8 MB, free: 16.48 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.848e-06/0.3255, allocations: 0 / 379.8 MB, free: 16.48 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004376/0.326, allocations: 179 kB / 380 MB, free: 16.44 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006584/0.3266, allocations: 100.8 kB / 380.1 MB, free: 16.41 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001583/0.3282, allocations: 1.045 MB / 381.1 MB, free: 15.76 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002634/0.3285, allocations: 0.8145 MB / 381.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000113/0.3286, allocations: 32.23 kB / 381.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of SimCode: time 3.6e-07/0.3286, allocations: 4 kB / 381.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of Templates: time 0.00903/0.3377, allocations: 5.931 MB / 387.9 MB, free: 13.35 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches