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.001062/0.001062, allocations: 118.2 kB / 17.79 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001137/0.001137, allocations: 197.2 kB / 18.73 MB, free: 4.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.541/1.541, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3098/0.3098, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001807/0.001807, allocations: 79.86 kB / 480.8 MB, free: 4.551 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3683/0.3701, allocations: 62.44 MB / 0.5305 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.005472/0.3756, allocations: 4.036 MB / 0.5345 GB, free: 10.22 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002515/0.3782, allocations: 1.273 MB / 0.5357 GB, free: 9.176 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003331/0.3785, allocations: 24.38 kB / 0.5357 GB, free: 9.168 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002797/0.3788, allocations: 117.5 kB / 0.5358 GB, free: 9.059 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000463/0.3793, allocations: 173.9 kB / 0.536 GB, free: 8.91 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007821/0.3801, allocations: 406.5 kB / 0.5364 GB, free: 8.59 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009028/0.381, allocations: 0.8427 MB / 0.5372 GB, free: 8.066 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004568/0.3815, allocations: 285.8 kB / 0.5375 GB, free: 7.895 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004723/0.382, allocations: 331.6 kB / 0.5378 GB, free: 7.684 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003269/0.3823, allocations: 318.5 kB / 0.5381 GB, free: 7.441 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.572e-05/0.3824, allocations: 63.97 kB / 0.5382 GB, free: 7.441 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001406/0.3826, allocations: 81.55 kB / 0.5382 GB, free: 7.43 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001421/0.3827, allocations: 151.9 kB / 0.5384 GB, free: 7.301 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002908/0.383, allocations: 358.2 kB / 0.5387 GB, free: 7.023 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008793/0.3839, allocations: 0.7994 MB / 0.5395 GB, free: 6.406 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.3839, allocations: 3.938 kB / 0.5395 GB, free: 6.402 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.3839, allocations: 1.031 kB / 0.5395 GB, free: 6.402 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.131e-05/0.3839, allocations: 0 / 0.5395 GB, free: 6.402 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.001679/0.3856, allocations: 1.083 MB / 0.5406 GB, free: 5.531 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/0.3856, allocations: 10.75 kB / 0.5406 GB, free: 5.531 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001001/0.3858, allocations: 98.86 kB / 0.5407 GB, free: 5.441 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002178/0.386, allocations: 102.4 kB / 0.5408 GB, free: 5.391 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007816/0.3868, allocations: 0.5421 MB / 0.5413 GB, free: 4.926 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.851e-05/0.3868, allocations: 49.31 kB / 0.5414 GB, free: 4.898 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.658e-05/0.3869, allocations: 66.14 kB / 0.5414 GB, free: 4.871 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009904/0.3879, allocations: 0.6126 MB / 0.542 GB, free: 4.422 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.552e-05/0.388, allocations: 5.156 kB / 0.542 GB, free: 4.418 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.565e-05/0.388, allocations: 22.12 kB / 0.542 GB, free: 4.402 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.618e-05/0.388, allocations: 13.47 kB / 0.5421 GB, free: 4.402 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007746/0.3888, allocations: 393.1 kB / 0.5424 GB, free: 4.215 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004156/0.393, allocations: 2.985 MB / 0.5453 GB, free: 1.629 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009888/0.394, allocations: 439.7 kB / 0.5458 GB, free: 1.395 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003674/0.3944, allocations: 171.5 kB / 0.5459 GB, free: 1.305 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.729e-05/0.3944, allocations: 3.125 kB / 0.5459 GB, free: 1.305 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.986e-05/0.3945, allocations: 42 kB / 0.546 GB, free: 1.258 MB / 398.1 MB Notification: Performance of pre-optimization done (n=39): time 1.973e-06/0.3945, allocations: 4 kB / 0.546 GB, free: 1.254 MB / 398.1 MB Notification: Performance of matching and sorting (n=39): time 0.001262/0.3957, allocations: 0.5495 MB / 0.5465 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.924e-05/0.3958, allocations: 141.9 kB / 0.5466 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006133/0.3965, allocations: 0.5539 MB / 0.5472 GB, free: 280 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.614e-05/0.3965, allocations: 33.7 kB / 0.5472 GB, free: 240 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002999/0.3968, allocations: 380.9 kB / 0.5476 GB, free: 15.85 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001315/0.3969, allocations: 154.7 kB / 0.5477 GB, free: 15.7 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001658/0.3971, allocations: 122.3 kB / 0.5478 GB, free: 15.57 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001791/0.3973, allocations: 378.8 kB / 0.5482 GB, free: 15.2 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004117/0.3977, allocations: 183.4 kB / 0.5484 GB, free: 15.02 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005555/0.3983, allocations: 401.9 kB / 0.5488 GB, free: 14.52 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009671/0.3993, allocations: 0.5675 MB / 0.5493 GB, free: 13.86 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.922e-06/0.3993, allocations: 4 kB / 0.5493 GB, free: 13.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001207/0.4005, allocations: 0.6568 MB / 0.55 GB, free: 13.2 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.4005, allocations: 8 kB / 0.55 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.286e-05/0.4005, allocations: 11.94 kB / 0.55 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.235e-05/0.4006, allocations: 8 kB / 0.55 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005188/0.4011, allocations: 140.3 kB / 0.5501 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.885e-05/0.4011, allocations: 23.98 kB / 0.5501 GB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003883/0.4015, allocations: 71.55 kB / 0.5502 GB, free: 12.94 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.219e-05/0.4016, allocations: 28 kB / 0.5502 GB, free: 12.91 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004976/0.4021, allocations: 305.4 kB / 0.5505 GB, free: 12.61 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00049/0.4026, allocations: 389.9 kB / 0.5509 GB, free: 12.13 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000782/0.4034, allocations: 0.552 MB / 0.5514 GB, free: 11.48 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.615e-06/0.4034, allocations: 4 kB / 0.5515 GB, free: 11.48 MB / 414.1 MB Notification: Performance of matching and sorting (n=78) (initialization_lambda0): time 0.001016/0.4044, allocations: 0.6293 MB / 0.5521 GB, free: 10.84 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.15e-05/0.4044, allocations: 8 kB / 0.5521 GB, free: 10.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.4044, allocations: 8 kB / 0.5521 GB, free: 10.83 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.148e-05/0.4045, allocations: 11.94 kB / 0.5521 GB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004646/0.4049, allocations: 136.2 kB / 0.5522 GB, free: 10.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.455e-05/0.4049, allocations: 19.92 kB / 0.5522 GB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003528/0.4053, allocations: 63.61 kB / 0.5523 GB, free: 10.6 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.869e-05/0.4054, allocations: 28 kB / 0.5523 GB, free: 10.57 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.0002359/0.4056, allocations: 226.7 kB / 0.5525 GB, free: 10.35 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001163/0.4057, allocations: 67.58 kB / 0.5526 GB, free: 10.28 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001442/0.4059, allocations: 74.11 kB / 0.5527 GB, free: 10.21 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.394e-06/0.4059, allocations: 7.984 kB / 0.5527 GB, free: 10.2 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.211e-05/0.4059, allocations: 4 kB / 0.5527 GB, free: 10.2 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.766e-06/0.4059, allocations: 4 kB / 0.5527 GB, free: 10.19 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007701/0.4067, allocations: 0.579 MB / 0.5533 GB, free: 9.562 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.4067, allocations: 4 kB / 0.5533 GB, free: 9.559 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004832/0.4072, allocations: 83.89 kB / 0.5533 GB, free: 9.477 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.472e-06/0.4072, allocations: 0 / 0.5533 GB, free: 9.477 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.526e-05/0.4072, allocations: 19.86 kB / 0.5534 GB, free: 9.457 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.967e-06/0.4073, allocations: 7.938 kB / 0.5534 GB, free: 9.449 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.4073, allocations: 0 / 0.5534 GB, free: 9.449 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001201/0.4085, allocations: 0.7821 MB / 0.5541 GB, free: 8.652 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001778/0.4087, allocations: 172.7 kB / 0.5543 GB, free: 8.465 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.249e-05/0.4087, allocations: 15.94 kB / 0.5543 GB, free: 8.449 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003332/0.4091, allocations: 23.98 kB / 0.5543 GB, free: 8.426 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.298e-05/0.4092, allocations: 27.95 kB / 0.5544 GB, free: 8.398 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.601e-05/0.4092, allocations: 12 kB / 0.5544 GB, free: 8.387 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004166/0.4096, allocations: 383.1 kB / 0.5547 GB, free: 8.016 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4096, allocations: 0 / 0.5547 GB, free: 8.016 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009143/0.4106, allocations: 235.5 kB / 0.555 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.00173/0.4123, allocations: 1.338 MB / 0.5563 GB, free: 6.418 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001595/0.4139, allocations: 0.7208 MB / 0.557 GB, free: 5.699 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.4139, allocations: 0 / 0.557 GB, free: 5.699 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003524/0.4143, allocations: 196.2 kB / 0.5572 GB, free: 5.508 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009215/0.4152, allocations: 174.6 kB / 0.5573 GB, free: 5.348 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007359/0.4226, allocations: 5.732 MB / 0.5629 GB, free: 15.35 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004893/0.4231, allocations: 0.9104 MB / 0.5638 GB, free: 14.41 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003359/0.4234, allocations: 76.84 kB / 0.5639 GB, free: 14.34 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003149/0.4238, allocations: 243.4 kB / 0.5641 GB, free: 14.1 MB / 430.1 MB Notification: Performance of SimCode: time 1.022e-06/0.4238, allocations: 0 / 0.5641 GB, free: 14.1 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03601/0.4598, allocations: 12.81 MB / 0.5766 GB, free: 1.398 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.717/9.177, allocations: 7.844 kB / 0.5766 GB, free: 1.391 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