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/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.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/ModelicaServices trunk/package.mo): time 0.001314/0.001313, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001545/0.001545, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.441/1.441, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.221/0.221, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001505/0.001505, allocations: 71.88 kB / 481.3 MB, free: 4.066 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4557/0.4573, allocations: 62.43 MB / 0.531 GB, free: 13.81 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.005691/0.463, allocations: 4.028 MB / 0.5349 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002643/0.4657, allocations: 1.277 MB / 0.5362 GB, free: 9.59 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003441/0.466, allocations: 24.31 kB / 0.5362 GB, free: 9.582 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003216/0.4664, allocations: 121.4 kB / 0.5363 GB, free: 9.469 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000493/0.4669, allocations: 166.2 kB / 0.5365 GB, free: 9.328 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008082/0.4677, allocations: 405.8 kB / 0.5369 GB, free: 9.008 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008881/0.4686, allocations: 0.8442 MB / 0.5377 GB, free: 8.48 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004692/0.4691, allocations: 291.1 kB / 0.538 GB, free: 8.305 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004966/0.4696, allocations: 326.4 kB / 0.5383 GB, free: 8.098 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003437/0.4699, allocations: 322.5 kB / 0.5386 GB, free: 7.852 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.954e-05/0.47, allocations: 65.66 kB / 0.5386 GB, free: 7.852 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001295/0.4702, allocations: 72.11 kB / 0.5387 GB, free: 7.848 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001209/0.4703, allocations: 155.8 kB / 0.5389 GB, free: 7.715 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002942/0.4706, allocations: 359.3 kB / 0.5392 GB, free: 7.438 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008482/0.4715, allocations: 0.8006 MB / 0.54 GB, free: 6.816 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.4715, allocations: 0 / 0.54 GB, free: 6.816 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.4715, allocations: 0 / 0.54 GB, free: 6.816 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.305e-05/0.4715, allocations: 1.156 kB / 0.54 GB, free: 6.816 MB / 398.1 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.001929/0.4734, allocations: 1.057 MB / 0.541 GB, free: 5.973 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.4735, allocations: 14.88 kB / 0.541 GB, free: 5.969 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002613/0.4738, allocations: 97.98 kB / 0.5411 GB, free: 5.922 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008196/0.4746, allocations: 0.5333 MB / 0.5416 GB, free: 5.465 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.435e-05/0.4746, allocations: 45.16 kB / 0.5417 GB, free: 5.441 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.119e-05/0.4747, allocations: 65.88 kB / 0.5417 GB, free: 5.414 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001011/0.4757, allocations: 0.6167 MB / 0.5423 GB, free: 4.961 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.253e-05/0.4758, allocations: 5.406 kB / 0.5424 GB, free: 4.957 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.662e-05/0.4758, allocations: 27.25 kB / 0.5424 GB, free: 4.938 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.296e-05/0.4759, allocations: 13.06 kB / 0.5424 GB, free: 4.938 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007638/0.4766, allocations: 384.4 kB / 0.5428 GB, free: 4.758 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003765/0.4804, allocations: 2.98 MB / 0.5457 GB, free: 2.176 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000912/0.4813, allocations: 436.5 kB / 0.5461 GB, free: 1.945 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000354/0.4817, allocations: 174.7 kB / 0.5463 GB, free: 1.852 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.489e-05/0.4817, allocations: 8.344 kB / 0.5463 GB, free: 1.848 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.651e-05/0.4818, allocations: 38.03 kB / 0.5463 GB, free: 1.805 MB / 398.1 MB Notification: Performance of pre-optimization done (n=39): time 2.044e-06/0.4818, allocations: 0 / 0.5463 GB, free: 1.805 MB / 398.1 MB Notification: Performance of matching and sorting (n=39): time 0.001169/0.483, allocations: 0.5445 MB / 0.5468 GB, free: 1.285 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.553e-05/0.483, allocations: 136.5 kB / 0.547 GB, free: 1.121 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005787/0.4836, allocations: 0.5626 MB / 0.5475 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.7e-05/0.4837, allocations: 33.7 kB / 0.5475 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002342/0.4839, allocations: 372 kB / 0.5479 GB, free: 140 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001145/0.484, allocations: 149.9 kB / 0.548 GB, free: 15.98 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001515/0.4842, allocations: 118.2 kB / 0.5482 GB, free: 15.87 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002002/0.4844, allocations: 382.7 kB / 0.5485 GB, free: 15.48 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004262/0.4848, allocations: 179.4 kB / 0.5487 GB, free: 15.31 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005041/0.4854, allocations: 409.9 kB / 0.5491 GB, free: 14.81 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008526/0.4862, allocations: 0.5714 MB / 0.5496 GB, free: 14.14 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.4862, allocations: 4 kB / 0.5496 GB, free: 14.14 MB / 414.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001113/0.4873, allocations: 0.6567 MB / 0.5503 GB, free: 13.48 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/0.4874, allocations: 8 kB / 0.5503 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.839e-06/0.4874, allocations: 11.94 kB / 0.5503 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.059e-05/0.4874, allocations: 11.94 kB / 0.5503 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004974/0.4879, allocations: 135.8 kB / 0.5504 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.669e-05/0.4879, allocations: 19.98 kB / 0.5505 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003593/0.4883, allocations: 75.61 kB / 0.5505 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.86e-05/0.4884, allocations: 31.98 kB / 0.5506 GB, free: 13.19 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004513/0.4888, allocations: 301.4 kB / 0.5508 GB, free: 12.89 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004527/0.4893, allocations: 385.9 kB / 0.5512 GB, free: 12.41 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008212/0.4901, allocations: 0.5598 MB / 0.5518 GB, free: 11.76 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.858e-06/0.4901, allocations: 0 / 0.5518 GB, free: 11.76 MB / 414.1 MB Notification: Performance of matching and sorting (n=78) (initialization_lambda0): time 0.001139/0.4913, allocations: 0.6253 MB / 0.5524 GB, free: 11.13 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.4913, allocations: 8 kB / 0.5524 GB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.365e-06/0.4913, allocations: 8 kB / 0.5524 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.772e-05/0.4913, allocations: 8 kB / 0.5524 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004681/0.4918, allocations: 139.7 kB / 0.5525 GB, free: 10.97 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.417e-05/0.4918, allocations: 19.92 kB / 0.5525 GB, free: 10.95 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003436/0.4922, allocations: 63.52 kB / 0.5526 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.198e-05/0.4922, allocations: 28.16 kB / 0.5526 GB, free: 10.86 MB / 414.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001578/0.4924, allocations: 220.5 kB / 0.5528 GB, free: 10.64 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001156/0.4925, allocations: 67.16 kB / 0.5529 GB, free: 10.57 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001188/0.4926, allocations: 74.11 kB / 0.553 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/0.4926, allocations: 4 kB / 0.553 GB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.4927, allocations: 0 / 0.553 GB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.878e-06/0.4927, allocations: 7.984 kB / 0.553 GB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007379/0.4934, allocations: 0.5751 MB / 0.5536 GB, free: 9.859 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.4934, allocations: 0 / 0.5536 GB, free: 9.859 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00047/0.4939, allocations: 87.89 kB / 0.5536 GB, free: 9.773 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.4939, allocations: 0 / 0.5536 GB, free: 9.773 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.005e-05/0.494, allocations: 15.88 kB / 0.5537 GB, free: 9.758 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.958e-06/0.494, allocations: 4 kB / 0.5537 GB, free: 9.754 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.614e-06/0.494, allocations: 7.922 kB / 0.5537 GB, free: 9.746 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001221/0.4952, allocations: 0.7701 MB / 0.5544 GB, free: 8.961 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000197/0.4954, allocations: 164.4 kB / 0.5546 GB, free: 8.781 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.751e-05/0.4955, allocations: 19.92 kB / 0.5546 GB, free: 8.762 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003442/0.4958, allocations: 31.98 kB / 0.5546 GB, free: 8.73 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.986e-05/0.4959, allocations: 27.95 kB / 0.5547 GB, free: 8.703 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.175e-05/0.4959, allocations: 8 kB / 0.5547 GB, free: 8.695 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003707/0.4963, allocations: 379.1 kB / 0.555 GB, free: 8.328 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4963, allocations: 3.938 kB / 0.555 GB, free: 8.324 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007135/0.497, allocations: 247.1 kB / 0.5553 GB, free: 8.082 MB / 414.1 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 (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.0001174/0.4972, allocations: 110.7 kB / 0.5554 GB, free: 7.969 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001289/0.4985, allocations: 0.7244 MB / 0.5561 GB, free: 7.246 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.4985, allocations: 4 kB / 0.5561 GB, free: 7.242 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000365/0.4988, allocations: 195.8 kB / 0.5563 GB, free: 7.051 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009105/0.4998, allocations: 178.8 kB / 0.5564 GB, free: 6.887 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002345/0.5021, allocations: 1.395 MB / 0.5578 GB, free: 5.465 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005252/0.5027, allocations: 0.9143 MB / 0.5587 GB, free: 4.523 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002984/0.503, allocations: 72.84 kB / 0.5588 GB, free: 4.449 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001201/0.5031, allocations: 47.42 kB / 0.5588 GB, free: 4.402 MB / 414.1 MB Notification: Performance of SimCode: time 4.31e-07/0.5031, allocations: 0 / 0.5588 GB, free: 4.402 MB / 414.1 MB Notification: Performance of Templates: time 0.01181/0.5149, allocations: 6.581 MB / 0.5652 GB, free: 13.87 MB / 430.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches