Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Blocks.UnitDeduction.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo): time 0.01112/0.01112, allocations: 104.1 kB / 15.05 MB, free: 6.035 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo): time 0.001135/0.001135, allocations: 169.6 kB / 15.93 MB, free: 5.965 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo): time 1.638/1.638, allocations: 170.9 MB / 187.5 MB, free: 1.008 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo): time 0.2527/0.2527, allocations: 38.1 MB / 265.1 MB, free: 3.969 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005196/0.0005199, allocations: 8 kB / 323.6 MB, free: 29.66 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08866/0.08923, allocations: 48.72 MB / 372.3 MB, free: 12.86 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.005447/0.09474, allocations: 3.1 MB / 375.4 MB, free: 9.742 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003003/0.09779, allocations: 1.049 MB / 376.4 MB, free: 8.691 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004985/0.09834, allocations: 15.94 kB / 376.5 MB, free: 8.676 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001446/0.0985, allocations: 51.5 kB / 376.5 MB, free: 8.625 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007563/0.09927, allocations: 171.4 kB / 376.7 MB, free: 8.457 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001302/0.1006, allocations: 319.5 kB / 377 MB, free: 8.145 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001284/0.1019, allocations: 0.5078 MB / 377.5 MB, free: 7.637 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005072/0.1024, allocations: 203.6 kB / 377.7 MB, free: 7.434 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005967/0.103, allocations: 266.8 kB / 377.9 MB, free: 7.172 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003877/0.1034, allocations: 230.7 kB / 378.2 MB, free: 6.945 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 7.494e-05/0.1035, allocations: 24 kB / 378.2 MB, free: 6.922 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.117e-05/0.1036, allocations: 20 kB / 378.2 MB, free: 6.902 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001264/0.1038, allocations: 95.53 kB / 378.3 MB, free: 6.809 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001437/0.1039, allocations: 125.3 kB / 378.4 MB, free: 6.68 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007355/0.1047, allocations: 0.4912 MB / 378.9 MB, free: 6.188 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1047, allocations: 0 / 378.9 MB, free: 6.188 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.1047, allocations: 0 / 378.9 MB, free: 6.188 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.758e-06/0.1047, allocations: 0 / 378.9 MB, free: 6.188 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.002236/0.107, allocations: 0.8722 MB / 379.8 MB, free: 5.262 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.033e-05/0.107, allocations: 12.03 kB / 379.8 MB, free: 5.25 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001275/0.1072, allocations: 86.45 kB / 379.9 MB, free: 5.156 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001609/0.1073, allocations: 75.16 kB / 380 MB, free: 5.082 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008592/0.1082, allocations: 446.6 kB / 380.4 MB, free: 4.605 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.62e-05/0.1083, allocations: 41 kB / 380.4 MB, free: 4.566 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001202/0.1084, allocations: 51.98 kB / 380.5 MB, free: 4.516 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00136/0.1098, allocations: 486.2 kB / 381 MB, free: 4.023 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.644e-05/0.1098, allocations: 0 / 381 MB, free: 4.023 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.038e-05/0.1099, allocations: 20 kB / 381 MB, free: 4.004 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.888e-05/0.1099, allocations: 15.98 kB / 381 MB, free: 3.988 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001222/0.1112, allocations: 354.2 kB / 381.3 MB, free: 3.641 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005378/0.1166, allocations: 1.768 MB / 383.1 MB, free: 1.785 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001749/0.1184, allocations: 477.3 kB / 383.6 MB, free: 1.301 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.21e-05/0.1185, allocations: 4 kB / 383.6 MB, free: 1.297 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.645e-05/0.1185, allocations: 34.56 kB / 383.6 MB, free: 1.254 MB / 282.7 MB Notification: Performance of pre-optimization done (n=38): time 3.366e-06/0.1185, allocations: 0 / 383.6 MB, free: 1.254 MB / 282.7 MB Notification: Performance of matching and sorting (n=38): time 0.002133/0.1207, allocations: 0.5567 MB / 384.2 MB, free: 0.6914 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.859e-05/0.1208, allocations: 106.8 kB / 384.3 MB, free: 0.5625 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007628/0.1215, allocations: 450.9 kB / 384.7 MB, free: 112 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.896e-05/0.1216, allocations: 33.7 kB / 384.8 MB, free: 72 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00033/0.122, allocations: 316.5 kB / 385.1 MB, free: 15.76 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001951/0.1222, allocations: 149.8 kB / 385.2 MB, free: 15.61 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.72e-05/0.1222, allocations: 12 kB / 385.2 MB, free: 15.6 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001864/0.1224, allocations: 370.8 kB / 385.6 MB, free: 15.23 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006856/0.1231, allocations: 165 kB / 385.7 MB, free: 15.07 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007732/0.1239, allocations: 304.1 kB / 386 MB, free: 14.71 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007645/0.1247, allocations: 204.7 kB / 386.2 MB, free: 14.52 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.261e-06/0.1247, allocations: 0 / 386.2 MB, free: 14.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001854/0.1266, allocations: 0.555 MB / 386.8 MB, free: 13.95 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.077e-05/0.1267, allocations: 10.34 kB / 386.8 MB, free: 13.95 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/0.1267, allocations: 4 kB / 386.8 MB, free: 13.94 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.805e-05/0.1267, allocations: 11.95 kB / 386.8 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009512/0.1277, allocations: 123.8 kB / 386.9 MB, free: 13.81 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.228e-05/0.1277, allocations: 11.92 kB / 387 MB, free: 13.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006284/0.1284, allocations: 67.61 kB / 387 MB, free: 13.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.523e-05/0.1284, allocations: 20 kB / 387 MB, free: 13.71 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 63 * 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.0003404/0.1288, allocations: 174.6 kB / 387.2 MB, free: 13.53 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001565/0.129, allocations: 55.34 kB / 387.3 MB, free: 13.48 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001692/0.1291, allocations: 65.16 kB / 387.3 MB, free: 13.41 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.848e-06/0.1292, allocations: 15.89 kB / 387.3 MB, free: 13.39 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.728e-06/0.1292, allocations: 4 kB / 387.3 MB, free: 13.39 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.328e-06/0.1292, allocations: 3.984 kB / 387.4 MB, free: 13.39 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001093/0.1303, allocations: 0.5284 MB / 387.9 MB, free: 12.81 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.1303, allocations: 0 / 387.9 MB, free: 12.81 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001023/0.1314, allocations: 91.89 kB / 388 MB, free: 12.72 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.746e-06/0.1314, allocations: 0 / 388 MB, free: 12.72 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.227e-05/0.1314, allocations: 11.98 kB / 388 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.601e-06/0.1315, allocations: 4 kB / 388 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.362e-06/0.1315, allocations: 7.953 kB / 388 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002291/0.1338, allocations: 0.7938 MB / 388.8 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003134/0.1341, allocations: 168.4 kB / 389 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001073/0.1343, allocations: 8 kB / 389 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005942/0.1349, allocations: 39.94 kB / 389 MB, free: 11.65 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001252/0.135, allocations: 27.95 kB / 389 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.507e-05/0.1351, allocations: 15.98 kB / 389 MB, free: 11.61 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000564/0.1356, allocations: 310.8 kB / 389.3 MB, free: 11.3 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.1357, allocations: 0 / 389.3 MB, free: 11.3 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007212/0.1364, allocations: 115.7 kB / 389.5 MB, free: 11.19 MB / 298.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 (38): * Single equations (assignments): 38 * 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.002556/0.139, allocations: 1.423 MB / 390.9 MB, free: 9.742 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001537/0.1405, allocations: 420.7 kB / 391.3 MB, free: 9.332 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.1406, allocations: 4.062 kB / 391.3 MB, free: 9.328 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006759/0.1413, allocations: 199.8 kB / 391.5 MB, free: 9.133 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00128/0.1425, allocations: 145.1 kB / 391.6 MB, free: 8.996 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009741/0.1523, allocations: 5.848 MB / 397.5 MB, free: 3.012 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000585/0.153, allocations: 0.8978 MB / 398.4 MB, free: 2.09 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004129/0.1534, allocations: 52.25 kB / 398.4 MB, free: 2.035 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004323/0.1538, allocations: 203.4 kB / 398.6 MB, free: 1.836 MB / 298.7 MB Notification: Performance of SimCode: time 1.122e-06/0.1538, allocations: 0 / 398.6 MB, free: 1.836 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04098/0.1948, allocations: 10.18 MB / 408.8 MB, free: 7.773 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002665/0.1952, allocations: 164.2 kB / 409 MB, free: 7.535 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.842/3.037, allocations: 0 / 409 MB, free: 7.535 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Blocks.UnitDeduction_res.mat does not exist to compare? outputFormat=mat