Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_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_cpp_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_cpp_ModelicaTest.Blocks.UnitDeduction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001052/0.001052, allocations: 193.8 kB / 16.09 MB, free: 5.68 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.437/1.437, allocations: 226.5 MB / 243.4 MB, free: 6.465 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007657/0.0007658, allocations: 94.38 kB / 295.5 MB, free: 6.68 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3122/0.3122, allocations: 44.82 MB / 392.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003502/0.0003505, allocations: 8 kB / 465.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.33/0.3304, allocations: 62.96 MB / 0.5159 GB, free: 37.22 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.003479/0.3339, allocations: 3.457 MB / 0.5192 GB, free: 34.72 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002251/0.3362, allocations: 1.189 MB / 0.5204 GB, free: 33.87 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003858/0.3366, allocations: 28.28 kB / 0.5204 GB, free: 33.86 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000255/0.3369, allocations: 75.45 kB / 0.5205 GB, free: 33.81 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004835/0.3373, allocations: 134.4 kB / 0.5206 GB, free: 33.72 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006107/0.338, allocations: 295.2 kB / 0.5209 GB, free: 33.58 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006216/0.3386, allocations: 0.7486 MB / 0.5216 GB, free: 33.21 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003941/0.339, allocations: 271.2 kB / 0.5219 GB, free: 33.05 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003283/0.3393, allocations: 255.1 kB / 0.5221 GB, free: 32.93 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002493/0.3396, allocations: 245.4 kB / 0.5224 GB, free: 32.81 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.037e-05/0.3397, allocations: 27.28 kB / 0.5224 GB, free: 32.8 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.855e-05/0.3398, allocations: 25.47 kB / 0.5224 GB, free: 32.8 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.396e-05/0.3398, allocations: 107.3 kB / 0.5225 GB, free: 32.74 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002123/0.3401, allocations: 306.3 kB / 0.5228 GB, free: 32.52 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004085/0.3405, allocations: 0.5477 MB / 0.5234 GB, free: 32.38 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.3405, allocations: 0 / 0.5234 GB, free: 32.38 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3405, allocations: 0 / 0.5234 GB, free: 32.38 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.748e-06/0.3405, allocations: 0 / 0.5234 GB, free: 32.38 MB / 378.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.001321/0.3418, allocations: 0.9422 MB / 0.5243 GB, free: 31.71 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.728e-05/0.3419, allocations: 10.47 kB / 0.5243 GB, free: 31.71 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002155/0.3421, allocations: 97.36 kB / 0.5244 GB, free: 31.67 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005699/0.3427, allocations: 0.5021 MB / 0.5249 GB, free: 31.29 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.018e-05/0.3427, allocations: 46.28 kB / 0.5249 GB, free: 31.27 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.374e-05/0.3428, allocations: 69.66 kB / 0.525 GB, free: 31.24 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008622/0.3437, allocations: 0.607 MB / 0.5256 GB, free: 30.89 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.275e-05/0.3437, allocations: 2.875 kB / 0.5256 GB, free: 30.89 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.429e-05/0.3438, allocations: 26.44 kB / 0.5256 GB, free: 30.87 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.271e-05/0.3438, allocations: 17.16 kB / 0.5256 GB, free: 30.87 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000659/0.3444, allocations: 405.7 kB / 0.526 GB, free: 30.73 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003152/0.3476, allocations: 3.043 MB / 0.529 GB, free: 28.48 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008327/0.3485, allocations: 466.3 kB / 0.5294 GB, free: 28.3 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000306/0.3488, allocations: 178.9 kB / 0.5296 GB, free: 28.22 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.603e-05/0.3488, allocations: 5.75 kB / 0.5296 GB, free: 28.22 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.556e-05/0.3489, allocations: 37.53 kB / 0.5296 GB, free: 28.18 MB / 378.7 MB Notification: Performance of pre-optimization done (n=39): time 2.414e-06/0.3489, allocations: 0 / 0.5296 GB, free: 28.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=39): time 0.001082/0.35, allocations: 0.5783 MB / 0.5302 GB, free: 27.95 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.005e-05/0.35, allocations: 108 kB / 0.5303 GB, free: 27.82 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004979/0.3505, allocations: 0.5426 MB / 0.5308 GB, free: 27.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.955e-05/0.3505, allocations: 36.27 kB / 0.5309 GB, free: 27.53 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001828/0.3507, allocations: 369.7 kB / 0.5312 GB, free: 27.23 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.538e-05/0.3508, allocations: 158.1 kB / 0.5314 GB, free: 27.11 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.503e-05/0.3509, allocations: 10.81 kB / 0.5314 GB, free: 27.1 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.351, allocations: 381.2 kB / 0.5317 GB, free: 26.75 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003414/0.3513, allocations: 189.2 kB / 0.5319 GB, free: 26.69 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004481/0.3518, allocations: 397.5 kB / 0.5323 GB, free: 26.37 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007758/0.3526, allocations: 0.5933 MB / 0.5329 GB, free: 25.93 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.3526, allocations: 3.062 kB / 0.5329 GB, free: 25.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001024/0.3536, allocations: 0.6579 MB / 0.5335 GB, free: 25.66 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001108/0.3537, allocations: 299.4 kB / 0.5338 GB, free: 25.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/0.3537, allocations: 5.781 kB / 0.5338 GB, free: 25.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.277e-05/0.3538, allocations: 10.06 kB / 0.5338 GB, free: 25.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004921/0.3543, allocations: 139.3 kB / 0.534 GB, free: 25.28 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.637e-05/0.3543, allocations: 21.89 kB / 0.534 GB, free: 25.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003525/0.3547, allocations: 83.22 kB / 0.5341 GB, free: 25.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.946e-05/0.3547, allocations: 28.47 kB / 0.5341 GB, free: 25.22 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.793e-06/0.3547, allocations: 9.875 kB / 0.5341 GB, free: 25.22 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008466/0.3556, allocations: 0.5428 MB / 0.5346 GB, free: 25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/0.3556, allocations: 5.469 kB / 0.5346 GB, free: 25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.916e-06/0.3556, allocations: 9.219 kB / 0.5346 GB, free: 25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004341/0.356, allocations: 139.9 kB / 0.5348 GB, free: 24.99 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.058e-05/0.3561, allocations: 18.44 kB / 0.5348 GB, free: 24.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003297/0.3564, allocations: 68.33 kB / 0.5349 GB, free: 24.94 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.853e-05/0.3565, allocations: 27.53 kB / 0.5349 GB, free: 24.94 MB / 378.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 () * Number of clocked 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.0003236/0.3568, allocations: 275.6 kB / 0.5351 GB, free: 24.69 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001274/0.3569, allocations: 65.44 kB / 0.5352 GB, free: 24.66 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000141/0.3571, allocations: 73.28 kB / 0.5353 GB, free: 24.61 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.735e-06/0.3571, allocations: 9.281 kB / 0.5353 GB, free: 24.6 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.423e-05/0.3571, allocations: 3.938 kB / 0.5353 GB, free: 24.6 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.633e-06/0.3571, allocations: 3.328 kB / 0.5353 GB, free: 24.6 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007888/0.3579, allocations: 0.5712 MB / 0.5359 GB, free: 24.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.566e-06/0.3579, allocations: 0 / 0.5359 GB, free: 24.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004708/0.3584, allocations: 91.75 kB / 0.5359 GB, free: 24.24 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.3584, allocations: 2.719 kB / 0.5359 GB, free: 24.24 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.327e-05/0.3585, allocations: 11.03 kB / 0.536 GB, free: 24.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.3585, allocations: 2.906 kB / 0.536 GB, free: 24.23 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.194e-06/0.3585, allocations: 11.86 kB / 0.536 GB, free: 24.23 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001244/0.3597, allocations: 0.8071 MB / 0.5368 GB, free: 23.8 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001923/0.3599, allocations: 170.8 kB / 0.5369 GB, free: 23.64 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.928e-05/0.36, allocations: 6.625 kB / 0.5369 GB, free: 23.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003104/0.3603, allocations: 39.67 kB / 0.537 GB, free: 23.63 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.258e-05/0.3604, allocations: 31.94 kB / 0.537 GB, free: 23.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.626e-05/0.3605, allocations: 10.84 kB / 0.537 GB, free: 23.62 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003661/0.3608, allocations: 373.3 kB / 0.5374 GB, free: 23.45 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3608, allocations: 0 / 0.5374 GB, free: 23.45 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008041/0.3616, allocations: 239.4 kB / 0.5376 GB, free: 23.39 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 16 (Wsec.y,Vsec.y,Asec.y,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) * 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 (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.0001704/0.3618, allocations: 110.9 kB / 0.5377 GB, free: 23.29 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001386/0.3632, allocations: 0.7494 MB / 0.5384 GB, free: 23.04 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.3632, allocations: 1.125 kB / 0.5384 GB, free: 23.04 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003788/0.3636, allocations: 197.2 kB / 0.5386 GB, free: 22.98 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009832/0.3646, allocations: 169 kB / 0.5388 GB, free: 22.93 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00213/0.3668, allocations: 1.716 MB / 0.5404 GB, free: 21.88 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003594/0.3671, allocations: 0.9086 MB / 0.5413 GB, free: 21.18 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001752/0.3673, allocations: 46.31 kB / 0.5414 GB, free: 21.17 MB / 378.7 MB Notification: Performance of SimCode: time 5.41e-07/0.3673, allocations: 0 / 0.5414 GB, free: 21.17 MB / 378.7 MB Notification: Performance of Templates: time 0.01562/0.3829, allocations: 7.635 MB / 0.5488 GB, free: 19.72 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.UnitDeduction.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.UnitDeduction.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Blocks.UnitDeduction --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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_cpp_ModelicaTest.Blocks.UnitDeduction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches