Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.UnitDeduction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001131/0.001131, allocations: 105 kB / 19.74 MB, free: 2.562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001188/0.001188, allocations: 216.8 kB / 22.92 MB, free: 5.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.318/1.318, allocations: 230.2 MB / 256.1 MB, free: 8.633 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2062/0.2062, allocations: 46.89 MB / 359.3 MB, free: 4.973 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002126/0.002126, allocations: 83.86 kB / 0.494 GB, free: 9.105 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2616/0.2637, allocations: 65.98 MB / 0.5584 GB, free: 5.195 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.00553/0.2692, allocations: 4.086 MB / 0.5624 GB, free: 1.082 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002202/0.2714, allocations: 1.286 MB / 0.5637 GB, free: 15.79 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002625/0.2717, allocations: 23.88 kB / 0.5637 GB, free: 15.77 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002714/0.272, allocations: 118.6 kB / 0.5638 GB, free: 15.65 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004405/0.2724, allocations: 170.5 kB / 0.564 GB, free: 15.48 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007357/0.2731, allocations: 414.6 kB / 0.5644 GB, free: 15.08 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008189/0.274, allocations: 0.8385 MB / 0.5652 GB, free: 14.24 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003446/0.2743, allocations: 213.1 kB / 0.5654 GB, free: 14.02 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004147/0.2747, allocations: 334.6 kB / 0.5657 GB, free: 13.69 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003324/0.2751, allocations: 322.2 kB / 0.566 GB, free: 13.38 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 8.876e-05/0.2751, allocations: 68 kB / 0.5661 GB, free: 13.31 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001122/0.2753, allocations: 75.94 kB / 0.5661 GB, free: 13.23 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001156/0.2754, allocations: 147.4 kB / 0.5663 GB, free: 13.09 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002781/0.2757, allocations: 357.8 kB / 0.5666 GB, free: 12.74 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008014/0.2765, allocations: 0.801 MB / 0.5674 GB, free: 11.93 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.2765, allocations: 3.938 kB / 0.5674 GB, free: 11.93 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.2765, allocations: 0 / 0.5674 GB, free: 11.93 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.837e-06/0.2765, allocations: 4 kB / 0.5674 GB, free: 11.93 MB / 414.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.001615/0.2781, allocations: 1.078 MB / 0.5685 GB, free: 10.8 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.276e-05/0.2781, allocations: 12.03 kB / 0.5685 GB, free: 10.79 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001034/0.2782, allocations: 98.64 kB / 0.5686 GB, free: 10.68 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002119/0.2784, allocations: 100.4 kB / 0.5687 GB, free: 10.58 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007386/0.2792, allocations: 0.5467 MB / 0.5692 GB, free: 9.992 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.475e-05/0.2792, allocations: 49.44 kB / 0.5692 GB, free: 9.941 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.782e-05/0.2793, allocations: 63.95 kB / 0.5693 GB, free: 9.879 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009367/0.2802, allocations: 0.616 MB / 0.5699 GB, free: 9.203 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.339e-05/0.2803, allocations: 11.91 kB / 0.5699 GB, free: 9.191 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.942e-05/0.2803, allocations: 24 kB / 0.5699 GB, free: 9.168 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.234e-05/0.2803, allocations: 12 kB / 0.57 GB, free: 9.156 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000757/0.2811, allocations: 378.2 kB / 0.5703 GB, free: 8.785 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003681/0.2848, allocations: 2.99 MB / 0.5732 GB, free: 5.652 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009324/0.2857, allocations: 421.8 kB / 0.5736 GB, free: 5.219 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003394/0.286, allocations: 161.6 kB / 0.5738 GB, free: 5.055 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.734e-05/0.2861, allocations: 8 kB / 0.5738 GB, free: 5.047 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.064e-05/0.2861, allocations: 42.59 kB / 0.5738 GB, free: 4.996 MB / 414.1 MB Notification: Performance of pre-optimization done (n=39): time 1.754e-06/0.2861, allocations: 3.938 kB / 0.5738 GB, free: 4.992 MB / 414.1 MB Notification: Performance of matching and sorting (n=39): time 0.001194/0.2873, allocations: 0.5521 MB / 0.5744 GB, free: 4.434 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.377e-05/0.2874, allocations: 136.5 kB / 0.5745 GB, free: 4.27 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005865/0.2879, allocations: 0.551 MB / 0.575 GB, free: 3.707 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.384e-05/0.288, allocations: 37.7 kB / 0.5751 GB, free: 3.664 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002687/0.2882, allocations: 376.7 kB / 0.5754 GB, free: 3.289 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001183/0.2884, allocations: 166.6 kB / 0.5756 GB, free: 3.125 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001713/0.2885, allocations: 118.3 kB / 0.5757 GB, free: 3.004 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001683/0.2887, allocations: 374.8 kB / 0.5761 GB, free: 2.629 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003893/0.2891, allocations: 179.4 kB / 0.5762 GB, free: 2.453 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005492/0.2896, allocations: 405.9 kB / 0.5766 GB, free: 1.957 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009136/0.2906, allocations: 0.5675 MB / 0.5772 GB, free: 1.297 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.099e-06/0.2906, allocations: 8 kB / 0.5772 GB, free: 1.289 MB / 414.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001163/0.2917, allocations: 0.6447 MB / 0.5778 GB, free: 0.6367 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/0.2917, allocations: 8.719 kB / 0.5778 GB, free: 0.6289 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/0.2918, allocations: 11.94 kB / 0.5778 GB, free: 0.6172 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.803e-05/0.2918, allocations: 12 kB / 0.5779 GB, free: 0.6055 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000503/0.2923, allocations: 143.7 kB / 0.578 GB, free: 476 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.531e-05/0.2923, allocations: 11.94 kB / 0.578 GB, free: 464 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003744/0.2927, allocations: 75.55 kB / 0.5781 GB, free: 388 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.346e-05/0.2927, allocations: 24 kB / 0.5781 GB, free: 364 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004958/0.2932, allocations: 309.4 kB / 0.5784 GB, free: 52 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005219/0.2937, allocations: 389.9 kB / 0.5788 GB, free: 15.57 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008608/0.2946, allocations: 0.5563 MB / 0.5793 GB, free: 14.93 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.618e-06/0.2946, allocations: 4 kB / 0.5793 GB, free: 14.92 MB / 430.1 MB Notification: Performance of matching and sorting (n=78) (initialization_lambda0): time 0.001086/0.2957, allocations: 0.629 MB / 0.5799 GB, free: 14.29 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.198e-05/0.2957, allocations: 8.781 kB / 0.5799 GB, free: 14.28 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.2957, allocations: 12 kB / 0.5799 GB, free: 14.27 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.178e-05/0.2957, allocations: 15.94 kB / 0.58 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004592/0.2962, allocations: 135.8 kB / 0.5801 GB, free: 14.12 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.407e-05/0.2962, allocations: 15.94 kB / 0.5801 GB, free: 14.1 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003565/0.2965, allocations: 63.61 kB / 0.5802 GB, free: 14.04 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.745e-05/0.2966, allocations: 28 kB / 0.5802 GB, free: 14.01 MB / 430.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.2967, allocations: 220.6 kB / 0.5804 GB, free: 13.79 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001094/0.2969, allocations: 71.58 kB / 0.5805 GB, free: 13.72 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001334/0.297, allocations: 74.11 kB / 0.5805 GB, free: 13.64 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.297, allocations: 11.92 kB / 0.5806 GB, free: 13.63 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.297, allocations: 0 / 0.5806 GB, free: 13.63 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.297, allocations: 0 / 0.5806 GB, free: 13.63 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007429/0.2977, allocations: 0.5752 MB / 0.5811 GB, free: 13.01 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.2977, allocations: 4 kB / 0.5811 GB, free: 13 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004684/0.2982, allocations: 87.88 kB / 0.5812 GB, free: 12.92 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.2982, allocations: 0 / 0.5812 GB, free: 12.92 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.99e-05/0.2982, allocations: 23.81 kB / 0.5812 GB, free: 12.89 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.927e-06/0.2983, allocations: 4 kB / 0.5812 GB, free: 12.89 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2983, allocations: 0 / 0.5812 GB, free: 12.89 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001266/0.2995, allocations: 0.7821 MB / 0.582 GB, free: 12.09 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001936/0.2997, allocations: 172.7 kB / 0.5822 GB, free: 11.91 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.104e-05/0.2998, allocations: 11.94 kB / 0.5822 GB, free: 11.89 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000336/0.3001, allocations: 35.97 kB / 0.5822 GB, free: 11.86 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.649e-05/0.3002, allocations: 23.97 kB / 0.5822 GB, free: 11.84 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.259e-05/0.3002, allocations: 11.98 kB / 0.5822 GB, free: 11.82 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004287/0.3006, allocations: 383.1 kB / 0.5826 GB, free: 11.45 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3006, allocations: 0 / 0.5826 GB, free: 11.45 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007179/0.3014, allocations: 235.5 kB / 0.5828 GB, free: 11.22 MB / 430.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.001683/0.303, allocations: 1.334 MB / 0.5841 GB, free: 9.863 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001349/0.3044, allocations: 0.6818 MB / 0.5848 GB, free: 9.184 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3044, allocations: 0 / 0.5848 GB, free: 9.184 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003725/0.3048, allocations: 179.8 kB / 0.585 GB, free: 9.008 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008987/0.3057, allocations: 186.9 kB / 0.5851 GB, free: 8.836 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00791/0.3136, allocations: 5.714 MB / 0.5907 GB, free: 2.852 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004972/0.3141, allocations: 0.9142 MB / 0.5916 GB, free: 1.91 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003114/0.3144, allocations: 76.84 kB / 0.5917 GB, free: 1.832 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003129/0.3147, allocations: 247.3 kB / 0.5919 GB, free: 1.59 MB / 430.1 MB Notification: Performance of SimCode: time 8.72e-07/0.3147, allocations: 4 kB / 0.5919 GB, free: 1.586 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03641/0.3511, allocations: 12.87 MB / 0.6045 GB, free: 4.824 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.993/8.344, allocations: 10.48 kB / 0.6045 GB, free: 4.82 MB / 446.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.UnitDeduction.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_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.000201839 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_UnitDeduction.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.904933366997284]