Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.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) 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 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(ModelicaTest.Blocks.UnitDeduction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Asec.y|PI.x|PID.D.x|PID.I.y|PID1.D.x|PID1.I.y|Vsec.y|Wsec.y|derivative.x|firstOrder.y|inertia.phi|inertia.w|integrator.y|limIntegrator.y|secondOrder.y|secondOrder.yd",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction") translateModel(ModelicaTest.Blocks.UnitDeduction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Asec.y|PI.x|PID.D.x|PID.I.y|PID1.D.x|PID1.I.y|Vsec.y|Wsec.y|derivative.x|firstOrder.y|inertia.phi|inertia.w|integrator.y|limIntegrator.y|secondOrder.y|secondOrder.yd",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001646/0.001647, allocations: 196.7 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.241/1.241, allocations: 225.4 MB / 240.1 MB, free: 15.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000834/0.000834, allocations: 87.47 kB / 292.1 MB, free: 5.934 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1726/0.1726, allocations: 45.15 MB / 389.3 MB, free: 11.89 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.508e-05/2.522e-05, allocations: 7.984 kB / 460.4 MB, free: 70.03 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1021, allocations: 63.25 MB / 0.5114 GB, free: 6.809 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.36/0.4621, allocations: 96.69 MB / 0.6058 GB, free: 13.39 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00021/0.4624, allocations: 70.78 kB / 0.6058 GB, free: 13.36 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03845/0.5009, allocations: 14.52 MB / 0.62 GB, free: 1.172 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.5009, allocations: 0 / 0.62 GB, free: 1.172 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.313e-05/0.501, allocations: 27.92 kB / 0.6201 GB, free: 1.145 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 132 * Number of variables: 132 Notification: Performance of Generate backend data structure: time 0.001744/0.5028, allocations: 0.8773 MB / 0.6209 GB, free: 272 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.5028, allocations: 11.97 kB / 0.6209 GB, free: 260 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003894/0.5032, allocations: 102.9 kB / 0.621 GB, free: 156 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001114/0.5043, allocations: 0.5111 MB / 0.6215 GB, free: 15.67 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.277e-05/0.5044, allocations: 44.62 kB / 0.6216 GB, free: 15.65 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001198/0.5045, allocations: 61.22 kB / 0.6216 GB, free: 15.61 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000903/0.5055, allocations: 0.5713 MB / 0.6222 GB, free: 15.14 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.269e-05/0.5055, allocations: 0 / 0.6222 GB, free: 15.14 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.099e-05/0.5055, allocations: 22.12 kB / 0.6222 GB, free: 15.13 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.529e-05/0.5056, allocations: 19.95 kB / 0.6222 GB, free: 15.11 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005713/0.5061, allocations: 336.5 kB / 0.6225 GB, free: 14.89 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003952/0.5101, allocations: 3.028 MB / 0.6255 GB, free: 12.14 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005935/0.5107, allocations: 358.8 kB / 0.6258 GB, free: 11.89 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002057/0.5109, allocations: 138 kB / 0.626 GB, free: 11.8 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.442e-05/0.511, allocations: 27.95 kB / 0.626 GB, free: 11.77 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.694e-05/0.511, allocations: 34.03 kB / 0.626 GB, free: 11.73 MB / 426.7 MB Notification: Performance of pre-optimization done (n=39): time 1.863e-06/0.511, allocations: 3.938 kB / 0.626 GB, free: 11.73 MB / 426.7 MB Notification: Performance of matching and sorting (n=39): time 0.0006459/0.5117, allocations: 356.2 kB / 0.6264 GB, free: 11.46 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.604e-05/0.5118, allocations: 114.7 kB / 0.6265 GB, free: 11.32 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005596/0.5124, allocations: 484.5 kB / 0.6269 GB, free: 10.94 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.812e-05/0.5124, allocations: 32.7 kB / 0.627 GB, free: 10.91 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002018/0.5126, allocations: 379.8 kB / 0.6273 GB, free: 10.65 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001169/0.5127, allocations: 151.2 kB / 0.6275 GB, free: 10.52 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.335e-05/0.5128, allocations: 14.94 kB / 0.6275 GB, free: 10.52 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.5129, allocations: 377.4 kB / 0.6279 GB, free: 10.17 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002445/0.5132, allocations: 140.1 kB / 0.628 GB, free: 10.09 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003744/0.5136, allocations: 366.6 kB / 0.6283 GB, free: 9.707 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003069/0.5139, allocations: 186.8 kB / 0.6285 GB, free: 9.582 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.713e-06/0.5139, allocations: 4 kB / 0.6285 GB, free: 9.578 MB / 426.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.0008487/0.5148, allocations: 0.5741 MB / 0.6291 GB, free: 9.133 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009123/0.5157, allocations: 2.62 MB / 0.6316 GB, free: 6.359 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.391e-05/0.5157, allocations: 8 kB / 0.6316 GB, free: 6.352 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.427e-05/0.5158, allocations: 8 kB / 0.6317 GB, free: 6.344 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005488/0.5163, allocations: 146.3 kB / 0.6318 GB, free: 6.207 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.088e-05/0.5164, allocations: 15.98 kB / 0.6318 GB, free: 6.191 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004489/0.5168, allocations: 75.14 kB / 0.6319 GB, free: 6.125 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.355e-05/0.5169, allocations: 23.69 kB / 0.6319 GB, free: 6.105 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.202e-05/0.5169, allocations: 5.562 kB / 0.6319 GB, free: 6.102 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007922/0.5177, allocations: 0.4915 MB / 0.6324 GB, free: 5.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.5177, allocations: 4 kB / 0.6324 GB, free: 5.746 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.143e-05/0.5177, allocations: 12.84 kB / 0.6324 GB, free: 5.734 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004915/0.5182, allocations: 151.5 kB / 0.6326 GB, free: 5.594 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.599e-05/0.5182, allocations: 16.16 kB / 0.6326 GB, free: 5.578 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003987/0.5186, allocations: 59.08 kB / 0.6326 GB, free: 5.527 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.048e-05/0.5187, allocations: 31.86 kB / 0.6327 GB, free: 5.504 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 7 (Asec.local_reset,Vsec.local_reset,Wsec.local_reset,PID1.I.local_reset,PID.I.local_reset,limIntegrator.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 78 * 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 prepare postOptimizeDAE: time 0.0001448/0.5188, allocations: 140 kB / 0.6328 GB, free: 5.375 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001311/0.519, allocations: 63.16 kB / 0.6328 GB, free: 5.312 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000174/0.5192, allocations: 76.48 kB / 0.6329 GB, free: 5.266 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.814e-06/0.5192, allocations: 7.984 kB / 0.6329 GB, free: 5.258 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.347e-06/0.5192, allocations: 3.953 kB / 0.6329 GB, free: 5.254 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.148e-06/0.5192, allocations: 7.922 kB / 0.6329 GB, free: 5.246 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007955/0.52, allocations: 0.5786 MB / 0.6335 GB, free: 4.758 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-06/0.52, allocations: 4 kB / 0.6335 GB, free: 4.754 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004802/0.5205, allocations: 87.89 kB / 0.6336 GB, free: 4.668 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.133e-06/0.5205, allocations: 8 kB / 0.6336 GB, free: 4.66 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.378e-05/0.5206, allocations: 11.42 kB / 0.6336 GB, free: 4.656 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.1e-06/0.5206, allocations: 4 kB / 0.6336 GB, free: 4.652 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.5206, allocations: 3.938 kB / 0.6336 GB, free: 4.648 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008191/0.5214, allocations: 0.7016 MB / 0.6343 GB, free: 4.082 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000229/0.5217, allocations: 171.8 kB / 0.6345 GB, free: 3.914 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.423e-05/0.5218, allocations: 15.62 kB / 0.6345 GB, free: 3.906 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003705/0.5221, allocations: 31.34 kB / 0.6345 GB, free: 3.879 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.587e-05/0.5222, allocations: 31.84 kB / 0.6345 GB, free: 3.852 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.331e-05/0.5223, allocations: 11.94 kB / 0.6346 GB, free: 3.844 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004398/0.5227, allocations: 371.6 kB / 0.6349 GB, free: 3.562 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5227, allocations: 4 kB / 0.6349 GB, free: 3.559 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007591/0.5235, allocations: 254.1 kB / 0.6352 GB, free: 3.336 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 16 (integrator.y,inertia.phi,inertia.w,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,PI.x,PID.I.y,PID.D.x,PID1.I.y,PID1.D.x,Wsec.y,Vsec.y,Asec.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 39 * 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 0.0001584/0.5236, allocations: 111 kB / 0.6353 GB, free: 3.223 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0009635/0.5246, allocations: 0.6632 MB / 0.6359 GB, free: 2.75 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.5246, allocations: 0 / 0.6359 GB, free: 2.75 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002247/0.5249, allocations: 157 kB / 0.6361 GB, free: 2.645 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007711/0.5256, allocations: 159 kB / 0.6362 GB, free: 2.535 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001602/0.5273, allocations: 1.057 MB / 0.6372 GB, free: 1.551 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000412/0.5277, allocations: 0.9359 MB / 0.6382 GB, free: 0.5859 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0005481/0.5282, allocations: 115.2 kB / 0.6383 GB, free: 480 kB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001048/0.5284, allocations: 35.44 kB / 0.6383 GB, free: 444 kB / 426.7 MB Notification: Performance of SimCode: time 4.3e-07/0.5284, allocations: 4 kB / 0.6383 GB, free: 440 kB / 426.7 MB Notification: Performance of Templates: time 0.01255/0.5409, allocations: 6.997 MB / 0.6451 GB, free: 9.496 MB / 442.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/UnitDeduction/UnitDeduction.csv","../files/ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches