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: "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001218/0.001218, allocations: 117.2 kB / 17.78 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001189/0.001189, allocations: 200.6 kB / 18.73 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.406/1.406, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2341/0.2341, allocations: 46.11 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001498/0.001498, allocations: 75.88 kB / 480.8 MB, free: 4.551 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3493/0.3508, allocations: 62.45 MB / 0.5305 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.00573/0.3566, allocations: 4.022 MB / 0.5344 GB, free: 10.22 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002589/0.3592, allocations: 1.277 MB / 0.5357 GB, free: 9.172 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004453/0.3597, allocations: 23.09 kB / 0.5357 GB, free: 9.164 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003323/0.36, allocations: 114.7 kB / 0.5358 GB, free: 9.059 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005302/0.3606, allocations: 177.6 kB / 0.536 GB, free: 8.906 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007877/0.3614, allocations: 398.5 kB / 0.5364 GB, free: 8.594 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008058/0.3622, allocations: 0.8395 MB / 0.5372 GB, free: 8.074 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004316/0.3627, allocations: 292.2 kB / 0.5375 GB, free: 7.895 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004924/0.3632, allocations: 335 kB / 0.5378 GB, free: 7.68 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003231/0.3635, allocations: 318.9 kB / 0.5381 GB, free: 7.438 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.283e-05/0.3636, allocations: 65.53 kB / 0.5382 GB, free: 7.438 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001289/0.3637, allocations: 76.41 kB / 0.5382 GB, free: 7.43 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001202/0.3639, allocations: 155.3 kB / 0.5384 GB, free: 7.297 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002986/0.3642, allocations: 350.6 kB / 0.5387 GB, free: 7.027 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000855/0.365, allocations: 0.8044 MB / 0.5395 GB, free: 6.406 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.365, allocations: 0 / 0.5395 GB, free: 6.406 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.365, allocations: 0 / 0.5395 GB, free: 6.406 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.463e-05/0.3651, allocations: 0 / 0.5395 GB, free: 6.406 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.001728/0.3668, allocations: 1.091 MB / 0.5406 GB, free: 5.527 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.3668, allocations: 9.844 kB / 0.5406 GB, free: 5.527 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.772e-05/0.3669, allocations: 95.62 kB / 0.5407 GB, free: 5.441 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002312/0.3672, allocations: 97.84 kB / 0.5408 GB, free: 5.395 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007988/0.368, allocations: 0.5471 MB / 0.5413 GB, free: 4.926 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.007e-05/0.3681, allocations: 48.22 kB / 0.5413 GB, free: 4.898 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001025/0.3682, allocations: 63.39 kB / 0.5414 GB, free: 4.875 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001165/0.3693, allocations: 0.6158 MB / 0.542 GB, free: 4.422 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.566e-05/0.3694, allocations: 1.156 kB / 0.542 GB, free: 4.422 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.418e-05/0.3694, allocations: 22.19 kB / 0.542 GB, free: 4.406 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.444e-05/0.3695, allocations: 13.97 kB / 0.542 GB, free: 4.406 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008417/0.3703, allocations: 389.1 kB / 0.5424 GB, free: 4.223 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004164/0.3745, allocations: 2.984 MB / 0.5453 GB, free: 1.637 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001068/0.3756, allocations: 452 kB / 0.5458 GB, free: 1.391 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003636/0.376, allocations: 166.9 kB / 0.5459 GB, free: 1.305 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.223e-05/0.376, allocations: 4.344 kB / 0.5459 GB, free: 1.305 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.028e-05/0.3761, allocations: 41.67 kB / 0.546 GB, free: 1.258 MB / 398.1 MB Notification: Performance of pre-optimization done (n=39): time 3.547e-06/0.3761, allocations: 4 kB / 0.546 GB, free: 1.254 MB / 398.1 MB Notification: Performance of matching and sorting (n=39): time 0.001324/0.3774, allocations: 0.5457 MB / 0.5465 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.537e-05/0.3775, allocations: 137 kB / 0.5466 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005903/0.3781, allocations: 0.552 MB / 0.5472 GB, free: 280 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.055e-05/0.3781, allocations: 37.64 kB / 0.5472 GB, free: 236 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002511/0.3784, allocations: 384.8 kB / 0.5476 GB, free: 15.84 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001183/0.3785, allocations: 162.6 kB / 0.5477 GB, free: 15.68 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001561/0.3787, allocations: 118.3 kB / 0.5478 GB, free: 15.56 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001366/0.3788, allocations: 374.8 kB / 0.5482 GB, free: 15.19 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003915/0.3792, allocations: 187.4 kB / 0.5484 GB, free: 15 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005077/0.3797, allocations: 397.9 kB / 0.5488 GB, free: 14.52 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008987/0.3807, allocations: 0.5756 MB / 0.5493 GB, free: 13.85 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.3807, allocations: 0 / 0.5493 GB, free: 13.85 MB / 414.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001171/0.3818, allocations: 0.6566 MB / 0.55 GB, free: 13.18 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.3819, allocations: 8 kB / 0.55 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.3819, allocations: 7.75 kB / 0.55 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.317e-05/0.3819, allocations: 12 kB / 0.55 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005242/0.3824, allocations: 139.7 kB / 0.5501 GB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.465e-05/0.3825, allocations: 12.47 kB / 0.5501 GB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004071/0.3829, allocations: 75.55 kB / 0.5502 GB, free: 12.94 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.04e-05/0.3829, allocations: 31.98 kB / 0.5502 GB, free: 12.91 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004831/0.3834, allocations: 305.3 kB / 0.5505 GB, free: 12.61 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004576/0.3839, allocations: 386 kB / 0.5509 GB, free: 12.13 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008098/0.3847, allocations: 0.5598 MB / 0.5514 GB, free: 11.48 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.26e-06/0.3847, allocations: 4 kB / 0.5514 GB, free: 11.47 MB / 414.1 MB Notification: Performance of matching and sorting (n=78) (initialization_lambda0): time 0.001059/0.3858, allocations: 0.6371 MB / 0.5521 GB, free: 10.83 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.231e-05/0.3858, allocations: 8 kB / 0.5521 GB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.3858, allocations: 4 kB / 0.5521 GB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.098e-05/0.3858, allocations: 15.94 kB / 0.5521 GB, free: 10.8 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004796/0.3863, allocations: 135.8 kB / 0.5522 GB, free: 10.67 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.028e-05/0.3863, allocations: 8.469 kB / 0.5522 GB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003774/0.3867, allocations: 67.61 kB / 0.5523 GB, free: 10.59 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.575e-05/0.3868, allocations: 35.98 kB / 0.5523 GB, free: 10.56 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.0001634/0.3869, allocations: 220.5 kB / 0.5525 GB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001144/0.3871, allocations: 71.52 kB / 0.5526 GB, free: 10.27 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001304/0.3872, allocations: 74.17 kB / 0.5527 GB, free: 10.19 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.3872, allocations: 4 kB / 0.5527 GB, free: 10.19 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.3872, allocations: 0 / 0.5527 GB, free: 10.19 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.3872, allocations: 7.984 kB / 0.5527 GB, free: 10.18 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007482/0.388, allocations: 0.5674 MB / 0.5532 GB, free: 9.562 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.388, allocations: 0 / 0.5532 GB, free: 9.562 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004922/0.3885, allocations: 91.88 kB / 0.5533 GB, free: 9.473 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.3885, allocations: 3.938 kB / 0.5533 GB, free: 9.469 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.015e-05/0.3886, allocations: 11.94 kB / 0.5533 GB, free: 9.457 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.3886, allocations: 0 / 0.5533 GB, free: 9.457 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/0.3886, allocations: 4 kB / 0.5533 GB, free: 9.453 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00126/0.3898, allocations: 0.786 MB / 0.5541 GB, free: 8.652 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001899/0.39, allocations: 168.7 kB / 0.5543 GB, free: 8.469 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.844e-05/0.3901, allocations: 15.94 kB / 0.5543 GB, free: 8.453 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003401/0.3905, allocations: 23.97 kB / 0.5543 GB, free: 8.43 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.816e-05/0.3906, allocations: 31.95 kB / 0.5543 GB, free: 8.398 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.369e-05/0.3906, allocations: 12 kB / 0.5544 GB, free: 8.387 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004341/0.391, allocations: 379.1 kB / 0.5547 GB, free: 8.02 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.391, allocations: 4 kB / 0.5547 GB, free: 8.016 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008029/0.3918, allocations: 235.5 kB / 0.5549 GB, free: 7.785 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.001511/0.3934, allocations: 1.344 MB / 0.5563 GB, free: 6.414 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001412/0.3948, allocations: 0.729 MB / 0.557 GB, free: 5.688 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.3948, allocations: 0 / 0.557 GB, free: 5.688 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003884/0.3952, allocations: 187.9 kB / 0.5571 GB, free: 5.504 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009768/0.3962, allocations: 179.8 kB / 0.5573 GB, free: 5.34 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007996/0.4042, allocations: 5.722 MB / 0.5629 GB, free: 15.35 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004419/0.4047, allocations: 0.9104 MB / 0.5638 GB, free: 14.41 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003973/0.4051, allocations: 84.81 kB / 0.5639 GB, free: 14.32 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003381/0.4054, allocations: 243.4 kB / 0.5641 GB, free: 14.09 MB / 430.1 MB Notification: Performance of SimCode: time 7.52e-07/0.4054, allocations: 0 / 0.5641 GB, free: 14.09 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.033/0.4384, allocations: 12.8 MB / 0.5766 GB, free: 1.391 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.873/9.311, allocations: 19.72 kB / 0.5766 GB, free: 1.375 MB / 430.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 ModelicaTest_trunk_ModelicaTest_Blocks_UnitDeduction.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/UnitDeduction/UnitDeduction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches