Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.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 trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID1.I.y|PID2.I.y|PID3.I.y|PID4.I.y|firstOrder1.y|firstOrder2.y|firstOrder3.y|firstOrder4.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.LimPID") translateModel(ModelicaTest.Blocks.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID1.I.y|PID2.I.y|PID3.I.y|PID4.I.y|firstOrder1.y|firstOrder2.y|firstOrder3.y|firstOrder4.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001285/0.001285, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001321/0.001321, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.261/1.261, allocations: 227.4 MB / 247.5 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1925/0.1925, allocations: 46.09 MB / 344.9 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 69.83 kB / 419 MB, free: 19.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09735/0.09866, allocations: 62.45 MB / 481.4 MB, free: 4.566 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.004994/0.1037, allocations: 4.358 MB / 485.8 MB, free: 192 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002512/0.1062, allocations: 1.578 MB / 487.4 MB, free: 14.6 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003403/0.1066, allocations: 35.81 kB / 487.4 MB, free: 14.57 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003432/0.107, allocations: 154.3 kB / 487.6 MB, free: 14.41 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003087/0.1073, allocations: 162.3 kB / 487.7 MB, free: 14.25 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00106/0.1083, allocations: 0.607 MB / 488.3 MB, free: 13.66 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008721/0.1092, allocations: 1.019 MB / 489.3 MB, free: 12.64 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005432/0.1098, allocations: 435.1 kB / 489.8 MB, free: 12.19 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002999/0.1101, allocations: 362.3 kB / 490.1 MB, free: 11.84 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00032/0.1104, allocations: 385.7 kB / 490.5 MB, free: 11.46 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001106/0.1105, allocations: 91.94 kB / 490.6 MB, free: 11.37 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.736e-05/0.1106, allocations: 84 kB / 490.7 MB, free: 11.29 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001527/0.1108, allocations: 199.2 kB / 490.9 MB, free: 11.09 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002903/0.1111, allocations: 441.2 kB / 491.3 MB, free: 10.66 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007475/0.1118, allocations: 1.019 MB / 492.3 MB, free: 9.633 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1118, allocations: 0 / 492.3 MB, free: 9.633 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1118, allocations: 0 / 492.3 MB, free: 9.633 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.181e-05/0.1119, allocations: 4 kB / 492.3 MB, free: 9.629 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.001744/0.1136, allocations: 1.292 MB / 493.6 MB, free: 8.281 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.389e-05/0.1137, allocations: 8.031 kB / 493.6 MB, free: 8.273 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001406/0.1138, allocations: 119.6 kB / 493.7 MB, free: 8.156 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008774/0.1147, allocations: 0.6554 MB / 494.4 MB, free: 7.461 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.226e-05/0.1147, allocations: 53.62 kB / 494.5 MB, free: 7.41 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.927e-05/0.1148, allocations: 68.31 kB / 494.5 MB, free: 7.344 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001117/0.116, allocations: 0.7699 MB / 495.3 MB, free: 6.504 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.51e-05/0.116, allocations: 4 kB / 495.3 MB, free: 6.5 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.998e-05/0.116, allocations: 24 kB / 495.3 MB, free: 6.477 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.505e-05/0.1161, allocations: 16 kB / 495.3 MB, free: 6.461 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001042/0.1171, allocations: 0.5431 MB / 495.9 MB, free: 5.918 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002993/0.1201, allocations: 2.71 MB / 498.6 MB, free: 3.109 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001207/0.1213, allocations: 0.6631 MB / 499.2 MB, free: 2.41 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004922/0.1218, allocations: 287.4 kB / 499.5 MB, free: 2.117 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.061e-05/0.1219, allocations: 12 kB / 499.5 MB, free: 2.105 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.875e-05/0.1219, allocations: 42.5 kB / 499.6 MB, free: 2.055 MB / 366.1 MB Notification: Performance of pre-optimization done (n=52): time 2.325e-06/0.1219, allocations: 0 / 499.6 MB, free: 2.055 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.001626/0.1236, allocations: 0.7928 MB / 0.4886 GB, free: 1.258 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001386/0.1237, allocations: 354.1 kB / 0.489 GB, free: 0.832 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007016/0.1244, allocations: 0.6929 MB / 0.4897 GB, free: 128 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.039e-05/0.1245, allocations: 37.7 kB / 0.4897 GB, free: 84 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003018/0.1248, allocations: 432.4 kB / 0.4901 GB, free: 15.66 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001199/0.1249, allocations: 185.3 kB / 0.4903 GB, free: 15.47 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001649/0.1251, allocations: 110.1 kB / 0.4904 GB, free: 15.36 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.1252, allocations: 337.9 kB / 0.4907 GB, free: 15.02 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004591/0.1257, allocations: 227 kB / 0.4909 GB, free: 14.8 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005627/0.1262, allocations: 391.5 kB / 0.4913 GB, free: 14.35 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009576/0.1272, allocations: 0.5507 MB / 0.4918 GB, free: 13.77 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.1272, allocations: 0 / 0.4918 GB, free: 13.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002373/0.1296, allocations: 1.044 MB / 0.4929 GB, free: 12.7 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.589e-05/0.1296, allocations: 8 kB / 0.4929 GB, free: 12.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.1296, allocations: 3.938 kB / 0.4929 GB, free: 12.69 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001105/0.1308, allocations: 323.4 kB / 0.4932 GB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005297/0.1313, allocations: 123.9 kB / 0.4933 GB, free: 12.24 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007695/0.139, allocations: 7.276 MB / 0.5004 GB, free: 4.402 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000562/0.1396, allocations: 83.47 kB / 0.5005 GB, free: 4.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.327e-05/0.1396, allocations: 23.98 kB / 0.5005 GB, free: 4.297 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000549/0.1402, allocations: 341.2 kB / 0.5008 GB, free: 3.961 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004289/0.1406, allocations: 347.5 kB / 0.5012 GB, free: 3.559 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007389/0.1414, allocations: 0.5011 MB / 0.5017 GB, free: 3.023 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.635e-06/0.1414, allocations: 0 / 0.5017 GB, free: 3.023 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001394/0.1428, allocations: 0.7461 MB / 0.5024 GB, free: 2.266 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.045e-05/0.1428, allocations: 4.281 kB / 0.5024 GB, free: 2.262 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.932e-06/0.1428, allocations: 11.94 kB / 0.5024 GB, free: 2.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004582/0.1433, allocations: 141.5 kB / 0.5025 GB, free: 2.105 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006818/0.144, allocations: 175.8 kB / 0.5027 GB, free: 1.934 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1803/0.3243, allocations: 3.413 MB / 0.506 GB, free: 38.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006587/0.325, allocations: 69.77 kB / 0.5061 GB, free: 38.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.591e-05/0.3251, allocations: 20.16 kB / 0.5061 GB, free: 38.3 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 4 (PID4.I.local_reset,PID3.I.local_reset,PID2.I.local_reset,PID1.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002178/0.3254, allocations: 216.6 kB / 0.5063 GB, free: 38.12 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002293/0.3256, allocations: 90.59 kB / 0.5064 GB, free: 38.12 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002005/0.3258, allocations: 100.6 kB / 0.5065 GB, free: 38.11 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.3258, allocations: 6.562 kB / 0.5065 GB, free: 38.11 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.3258, allocations: 3.75 kB / 0.5065 GB, free: 38.11 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.357e-06/0.3258, allocations: 5.156 kB / 0.5065 GB, free: 38.11 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001077/0.3269, allocations: 0.7315 MB / 0.5072 GB, free: 37.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.3269, allocations: 3.062 kB / 0.5072 GB, free: 37.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005386/0.3275, allocations: 110.3 kB / 0.5073 GB, free: 37.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.109e-06/0.3275, allocations: 2.312 kB / 0.5073 GB, free: 37.93 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.716e-05/0.3275, allocations: 12.67 kB / 0.5074 GB, free: 37.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/0.3275, allocations: 5.5 kB / 0.5074 GB, free: 37.93 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.3275, allocations: 7.969 kB / 0.5074 GB, free: 37.93 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001582/0.3291, allocations: 1.198 MB / 0.5085 GB, free: 37.56 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002188/0.3294, allocations: 213 kB / 0.5087 GB, free: 37.46 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.631e-05/0.3294, allocations: 17.27 kB / 0.5088 GB, free: 37.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004748/0.3299, allocations: 45.69 kB / 0.5088 GB, free: 37.46 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.197e-05/0.33, allocations: 35.53 kB / 0.5088 GB, free: 37.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.922e-05/0.3301, allocations: 16.27 kB / 0.5089 GB, free: 37.46 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005345/0.3306, allocations: 485.6 kB / 0.5093 GB, free: 37.36 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3306, allocations: 0.5625 kB / 0.5093 GB, free: 37.36 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009231/0.3315, allocations: 285.1 kB / 0.5096 GB, free: 37.34 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (PID1.I.y,firstOrder1.y,PID2.I.y,firstOrder2.y,PID3.I.y,firstOrder3.y,PID4.I.y,firstOrder4.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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.0001143/0.3317, allocations: 109.9 kB / 0.5097 GB, free: 37.25 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003472/0.3351, allocations: 1.876 MB / 0.5115 GB, free: 36.43 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.3352, allocations: 1.594 kB / 0.5115 GB, free: 36.43 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004874/0.3356, allocations: 282.9 kB / 0.5118 GB, free: 36.35 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001157/0.3368, allocations: 239 kB / 0.512 GB, free: 36.29 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002239/0.3391, allocations: 1.487 MB / 0.5135 GB, free: 35.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004315/0.3395, allocations: 0.9837 MB / 0.5144 GB, free: 34.8 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003455/0.3399, allocations: 89.58 kB / 0.5145 GB, free: 34.79 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001559/0.34, allocations: 49.69 kB / 0.5146 GB, free: 34.79 MB / 382.1 MB Notification: Performance of SimCode: time 5.01e-07/0.34, allocations: 0 / 0.5146 GB, free: 34.79 MB / 382.1 MB Notification: Performance of Templates: time 0.02156/0.3616, allocations: 12.19 MB / 0.5265 GB, free: 31.08 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.LimPID -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.LimPID_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimPID/LimPID.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches