Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 3.0.0-main/package.mo", uses=false) Using package EHPTlib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 3.0.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestTwoFlange2,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestTwoFlange2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestTwoFlange2,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestTwoFlange2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008014/0.008014, allocations: 103.9 kB / 15.74 MB, free: 6.031 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002021/0.002021, allocations: 194.8 kB / 16.67 MB, free: 5.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 3.0.0-main/package.mo): time 0.1599/0.1599, allocations: 8.407 MB / 298.9 MB, free: 2.125 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001826/0.001826, allocations: 59.91 kB / 413.3 MB, free: 9.648 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2497/0.2515, allocations: 51.37 MB / 464.7 MB, free: 17.56 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestTwoFlange2): time 0.005231/0.2568, allocations: 4.43 MB / 469.1 MB, free: 14.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002792/0.2596, allocations: 2.12 MB / 471.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002943/0.2599, allocations: 16.19 kB / 471.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004289/0.2604, allocations: 163.5 kB / 471.4 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005365/0.2609, allocations: 231 kB / 471.6 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007104/0.2616, allocations: 425.4 kB / 472 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008431/0.2625, allocations: 0.961 MB / 473 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006095/0.2631, allocations: 0.5016 MB / 473.5 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003756/0.2635, allocations: 374.4 kB / 473.9 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004767/0.264, allocations: 414.4 kB / 474.3 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001297/0.2641, allocations: 111.2 kB / 474.4 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002291/0.2644, allocations: 157.8 kB / 474.5 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002091/0.2646, allocations: 241.9 kB / 474.8 MB, free: 11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003367/0.2649, allocations: 481.8 kB / 475.2 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001257/0.2662, allocations: 1.238 MB / 476.5 MB, free: 10.13 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.2662, allocations: 0.7969 kB / 476.5 MB, free: 10.13 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2662, allocations: 0 / 476.5 MB, free: 10.13 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.344e-05/0.2662, allocations: 0 / 476.5 MB, free: 10.13 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.001792/0.268, allocations: 1.271 MB / 477.8 MB, free: 9.203 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.2681, allocations: 17.48 kB / 477.8 MB, free: 9.195 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001103/0.2682, allocations: 131.3 kB / 477.9 MB, free: 9.098 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001404/0.2683, allocations: 101.5 kB / 478 MB, free: 9.047 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007189/0.269, allocations: 0.5756 MB / 478.6 MB, free: 8.617 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.706e-05/0.2691, allocations: 57.62 kB / 478.6 MB, free: 8.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001006/0.2692, allocations: 79.86 kB / 478.7 MB, free: 8.562 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001238/0.2705, allocations: 0.7381 MB / 479.4 MB, free: 8.238 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.555e-05/0.2705, allocations: 5.125 kB / 479.4 MB, free: 8.234 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.616e-05/0.2705, allocations: 30.47 kB / 479.5 MB, free: 8.215 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.673e-05/0.2706, allocations: 17.09 kB / 479.5 MB, free: 8.215 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001119/0.2717, allocations: 0.5276 MB / 480 MB, free: 8.031 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003179/0.2749, allocations: 2.727 MB / 482.8 MB, free: 5.863 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009278/0.2758, allocations: 462.5 kB / 483.2 MB, free: 5.566 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003899/0.2762, allocations: 184.3 kB / 483.4 MB, free: 5.473 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.519e-05/0.2763, allocations: 4.656 kB / 483.4 MB, free: 5.473 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005389/0.2768, allocations: 274.6 kB / 483.7 MB, free: 5.285 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 1.703e-06/0.2768, allocations: 1.25 kB / 483.7 MB, free: 5.285 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.001566/0.2784, allocations: 0.7355 MB / 484.4 MB, free: 4.816 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.971e-05/0.2785, allocations: 169.1 kB / 484.6 MB, free: 4.621 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007167/0.2792, allocations: 0.6883 MB / 485.2 MB, free: 4.238 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.366e-05/0.2792, allocations: 38.61 kB / 485.3 MB, free: 4.199 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001993/0.2794, allocations: 391.6 kB / 485.7 MB, free: 3.855 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.119e-05/0.2795, allocations: 123.5 kB / 485.8 MB, free: 3.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000136/0.2796, allocations: 97.36 kB / 485.9 MB, free: 3.688 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.996e-05/0.2797, allocations: 374.7 kB / 486.2 MB, free: 3.328 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004284/0.2802, allocations: 189.6 kB / 486.4 MB, free: 3.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004645/0.2806, allocations: 301 kB / 486.7 MB, free: 2.988 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000892/0.2815, allocations: 0.603 MB / 487.3 MB, free: 2.496 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.2816, allocations: 5.312 kB / 487.3 MB, free: 2.492 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001167/0.2827, allocations: 0.6724 MB / 488 MB, free: 2.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.23e-05/0.2828, allocations: 94.38 kB / 488.1 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.2828, allocations: 8.688 kB / 488.1 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001415/0.2829, allocations: 26.69 kB / 488.1 MB, free: 1.969 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000359/0.2833, allocations: 104.7 kB / 488.2 MB, free: 1.938 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006662/0.284, allocations: 1.382 MB / 489.6 MB, free: 0.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004349/0.2844, allocations: 87.38 kB / 489.7 MB, free: 460 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.301e-05/0.2845, allocations: 24.5 kB / 489.7 MB, free: 452 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006101/0.2851, allocations: 366.6 kB / 490.1 MB, free: 220 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004885/0.2856, allocations: 285.9 kB / 490.4 MB, free: 15.98 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001057/0.2867, allocations: 0.581 MB / 490.9 MB, free: 15.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.016e-06/0.2867, allocations: 1.375 kB / 490.9 MB, free: 15.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.001317/0.288, allocations: 0.6525 MB / 491.6 MB, free: 15.11 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.63e-05/0.2881, allocations: 96.97 kB / 491.7 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.2881, allocations: 3.844 kB / 491.7 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.852e-05/0.2882, allocations: 31.38 kB / 491.7 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003402/0.2885, allocations: 92.36 kB / 491.8 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001061/0.2896, allocations: 1.394 MB / 493.2 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004272/0.29, allocations: 72.41 kB / 493.3 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.887e-05/0.2901, allocations: 23.91 kB / 493.3 MB, free: 13.46 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 7 (tauRef.count,$PRE.tauRef.count,tauRef.T_start,$PRE.tauRef.T_start,twoFlanges.limTau.state,$whenCondition1,twoFlanges.constPDC.integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000241/0.2903, allocations: 270 kB / 493.6 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.492e-05/0.2904, allocations: 69.5 kB / 493.6 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001188/0.2916, allocations: 0.5294 MB / 494.2 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.401e-06/0.2917, allocations: 3.219 kB / 494.2 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.2917, allocations: 1.156 kB / 494.2 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.2917, allocations: 0 / 494.2 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002097/0.2938, allocations: 1.287 MB / 495.5 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.2938, allocations: 0 / 495.5 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000314/0.2941, allocations: 62.14 kB / 495.5 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.686e-05/0.2942, allocations: 22.19 kB / 495.5 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.237e-05/0.2942, allocations: 8.562 kB / 495.5 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001049/0.2953, allocations: 1.392 MB / 496.9 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.2953, allocations: 4.156 kB / 496.9 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001677/0.297, allocations: 0.8322 MB / 497.8 MB, free: 9.832 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001692/0.2972, allocations: 158.3 kB / 497.9 MB, free: 9.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.35e-05/0.2973, allocations: 9.219 kB / 497.9 MB, free: 9.676 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003835/0.2976, allocations: 41.02 kB / 498 MB, free: 9.66 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001121/0.2978, allocations: 34.3 kB / 498 MB, free: 9.641 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.259e-05/0.2978, allocations: 12.5 kB / 498 MB, free: 9.637 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006067/0.2984, allocations: 498.2 kB / 498.5 MB, free: 9.367 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2984, allocations: 0 / 498.5 MB, free: 9.367 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008919/0.2993, allocations: 325.4 kB / 498.8 MB, free: 9.273 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (inertia.w,loadTorque.phi,twoFlanges.constPDC.integrator1.y) * Number of discrete variables: 4 ($whenCondition1,twoFlanges.limTau.state,tauRef.T_start,tauRef.count) * Number of discrete states: 2 (tauRef.count,twoFlanges.limTau.state) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003219/0.3025, allocations: 1.67 MB / 0.4888 GB, free: 7.762 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002201/0.3048, allocations: 1.269 MB / 0.49 GB, free: 6.395 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.3048, allocations: 4 kB / 0.49 GB, free: 6.391 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006906/0.3055, allocations: 449.1 kB / 0.4904 GB, free: 5.914 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000593/0.3061, allocations: 101.9 kB / 0.4905 GB, free: 5.816 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008979/0.3151, allocations: 6.179 MB / 0.4966 GB, free: 15.44 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005737/0.3157, allocations: 0.929 MB / 0.4975 GB, free: 14.48 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002663/0.3159, allocations: 72.38 kB / 0.4975 GB, free: 14.41 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003552/0.3163, allocations: 267.3 kB / 0.4978 GB, free: 14.15 MB / 382.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3163, allocations: 0 / 0.4978 GB, free: 14.15 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0675/0.3838, allocations: 14.8 MB / 0.5123 GB, free: 15.47 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.61/11, allocations: 0 / 0.5123 GB, free: 15.47 MB / 398.1 MB (rm -f EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange2.pipe ; mkfifo EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange2.pipe ; head -c 1048576 < EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange2.pipe >> ../files/EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestTwoFlange2_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestTwoFlange2.fmu > EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange2.pipe 2>&1)