Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlangeConn.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 2.1.4-main/package.mo", uses=false) Using package EHPTlib with version 2.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-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.TestOneFlangeConn,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestOneFlangeConn",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestOneFlangeConn,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestOneFlangeConn",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.00464/0.00464, allocations: 103.6 kB / 15.74 MB, free: 5.977 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.001083/0.001083, allocations: 193.1 kB / 16.67 MB, free: 5.906 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.261/1.261, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.03723/0.03723, allocations: 8.046 MB / 298.6 MB, free: 6.777 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001132/0.001132, allocations: 63.89 kB / 412.6 MB, free: 22.78 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07105/0.07219, allocations: 51.19 MB / 463.8 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestOneFlangeConn): time 0.004894/0.07712, allocations: 4.145 MB / 467.9 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002115/0.07926, allocations: 1.411 MB / 469.3 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002583/0.07953, allocations: 15.94 kB / 469.3 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003925/0.07993, allocations: 154.8 kB / 469.5 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004645/0.08042, allocations: 202.5 kB / 469.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006148/0.08105, allocations: 381.8 kB / 470.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006909/0.08175, allocations: 0.8611 MB / 470.9 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005892/0.08235, allocations: 499.6 kB / 471.4 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003094/0.08266, allocations: 322.9 kB / 471.7 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003433/0.08302, allocations: 358.4 kB / 472.1 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001056/0.08313, allocations: 100 kB / 472.2 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001627/0.0833, allocations: 124 kB / 472.3 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001834/0.08349, allocations: 207.4 kB / 472.5 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003067/0.08381, allocations: 410 kB / 472.9 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009149/0.08473, allocations: 1.059 MB / 474 MB, free: 9.309 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.08475, allocations: 4 kB / 474 MB, free: 9.305 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.08475, allocations: 0 / 474 MB, free: 9.305 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.907e-06/0.08477, allocations: 0 / 474 MB, free: 9.305 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: 161 * Number of variables: 161 Notification: Performance of Generate backend data structure: time 0.001681/0.08645, allocations: 1.138 MB / 475.1 MB, free: 8.098 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.566e-05/0.0865, allocations: 12.03 kB / 475.1 MB, free: 8.086 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001137/0.08662, allocations: 106.7 kB / 475.2 MB, free: 7.973 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001331/0.08676, allocations: 92.38 kB / 475.3 MB, free: 7.883 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006486/0.08741, allocations: 0.5134 MB / 475.8 MB, free: 7.328 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.343e-05/0.08747, allocations: 53.3 kB / 475.9 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.728e-05/0.08757, allocations: 67.95 kB / 475.9 MB, free: 7.207 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001189/0.08876, allocations: 0.6722 MB / 476.6 MB, free: 6.516 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.16e-05/0.0888, allocations: 0 / 476.6 MB, free: 6.516 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.758e-05/0.08886, allocations: 31.98 kB / 476.6 MB, free: 6.484 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.277e-05/0.08888, allocations: 16 kB / 476.7 MB, free: 6.469 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001081/0.08997, allocations: 488.9 kB / 477.1 MB, free: 5.988 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003411/0.09339, allocations: 2.56 MB / 479.7 MB, free: 3.301 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000934/0.09433, allocations: 428.1 kB / 480.1 MB, free: 2.855 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003977/0.09474, allocations: 169 kB / 480.3 MB, free: 2.688 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.073e-05/0.09478, allocations: 8.234 kB / 480.3 MB, free: 2.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005404/0.09533, allocations: 265.6 kB / 480.5 MB, free: 2.402 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 3.006e-06/0.09534, allocations: 0 / 480.5 MB, free: 2.402 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.001538/0.09689, allocations: 0.678 MB / 481.2 MB, free: 1.684 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.676e-05/0.09697, allocations: 144.5 kB / 481.4 MB, free: 1.512 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005918/0.09757, allocations: 0.5605 MB / 481.9 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.626e-05/0.09761, allocations: 33.7 kB / 482 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002216/0.09784, allocations: 356.7 kB / 482.3 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.001e-05/0.09793, allocations: 111.1 kB / 482.4 MB, free: 448 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001221/0.09806, allocations: 73.69 kB / 482.5 MB, free: 368 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001417/0.0982, allocations: 366.7 kB / 482.8 MB, free: 15.99 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004082/0.09862, allocations: 153.2 kB / 483 MB, free: 15.84 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004583/0.09909, allocations: 258.5 kB / 483.2 MB, free: 15.54 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008843/0.09998, allocations: 0.527 MB / 483.8 MB, free: 14.95 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.09999, allocations: 0 / 483.8 MB, free: 14.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001151/0.1012, allocations: 0.6003 MB / 484.4 MB, free: 14.32 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.243e-05/0.1012, allocations: 99.44 kB / 484.5 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.1012, allocations: 0 / 484.5 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001294/0.1014, allocations: 28.8 kB / 484.5 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000322/0.1017, allocations: 75.97 kB / 484.6 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000901/0.1026, allocations: 1.402 MB / 486 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004148/0.103, allocations: 79.84 kB / 486.1 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.478e-05/0.1031, allocations: 16 kB / 486.1 MB, free: 12.46 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005306/0.1036, allocations: 320.5 kB / 486.4 MB, free: 12.14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004165/0.1041, allocations: 246.8 kB / 486.6 MB, free: 11.86 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007857/0.1048, allocations: 0.5109 MB / 487.1 MB, free: 11.28 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.217e-06/0.1049, allocations: 4 kB / 487.1 MB, free: 11.28 MB / 366.1 MB Notification: Performance of matching and sorting (n=47) (initialization_lambda0): time 0.001013/0.1059, allocations: 0.5651 MB / 487.7 MB, free: 10.68 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.6e-05/0.1059, allocations: 93.09 kB / 487.8 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.1059, allocations: 4 kB / 487.8 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.352e-05/0.106, allocations: 25.17 kB / 487.8 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002937/0.1063, allocations: 79.88 kB / 487.9 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008069/0.1071, allocations: 1.382 MB / 489.3 MB, free: 8.945 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003901/0.1075, allocations: 63.8 kB / 489.3 MB, free: 8.883 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.967e-05/0.1076, allocations: 16 kB / 489.4 MB, free: 8.867 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 (tauRef.count,$PRE.tauRef.count,tauRef.T_start,$PRE.tauRef.T_start,oneFlangeConn.limTau.state,$whenCondition1,oneFlangeConn.constPDC.integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 39 * 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.0001751/0.1078, allocations: 276.4 kB / 489.6 MB, free: 8.578 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.304e-05/0.1078, allocations: 51.67 kB / 489.7 MB, free: 8.527 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001045/0.1089, allocations: 499.9 kB / 490.2 MB, free: 8.016 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.1089, allocations: 4 kB / 490.2 MB, free: 8.012 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.1089, allocations: 11.88 kB / 490.2 MB, free: 8 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.1089, allocations: 0 / 490.2 MB, free: 8 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001629/0.1106, allocations: 1.143 MB / 491.3 MB, free: 6.785 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.1106, allocations: 3.938 kB / 491.3 MB, free: 6.781 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002953/0.1109, allocations: 59.95 kB / 491.4 MB, free: 6.723 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.53e-05/0.111, allocations: 28.84 kB / 491.4 MB, free: 6.691 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.77e-05/0.111, allocations: 8 kB / 491.4 MB, free: 6.684 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007989/0.1118, allocations: 1.379 MB / 492.8 MB, free: 5.164 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.1118, allocations: 3.938 kB / 492.8 MB, free: 5.16 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001437/0.1133, allocations: 0.7666 MB / 493.6 MB, free: 4.359 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001148/0.1134, allocations: 136.7 kB / 493.7 MB, free: 4.207 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.127e-05/0.1135, allocations: 15.94 kB / 493.7 MB, free: 4.191 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003787/0.1139, allocations: 47.95 kB / 493.8 MB, free: 4.145 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.528e-05/0.114, allocations: 27.97 kB / 493.8 MB, free: 4.117 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.513e-05/0.114, allocations: 11.98 kB / 493.8 MB, free: 4.105 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004189/0.1144, allocations: 406.8 kB / 494.2 MB, free: 3.711 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1144, allocations: 0 / 494.2 MB, free: 3.711 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006769/0.1151, allocations: 275.2 kB / 494.5 MB, free: 3.441 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,oneFlangeConn.constPDC.integrator1.y) * Number of discrete variables: 4 ($whenCondition1,oneFlangeConn.limTau.state,tauRef.T_start,tauRef.count) * Number of discrete states: 2 (tauRef.count,oneFlangeConn.limTau.state) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 23 * 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.002345/0.1175, allocations: 1.574 MB / 496 MB, free: 1.957 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001764/0.1192, allocations: 1.174 MB / 497.2 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.1192, allocations: 3.938 kB / 497.2 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005877/0.1198, allocations: 421.3 kB / 497.6 MB, free: 236 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005314/0.1204, allocations: 101.1 kB / 497.7 MB, free: 140 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006996/0.1274, allocations: 5.351 MB / 0.4913 GB, free: 10.6 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004086/0.1278, allocations: 0.8933 MB / 0.4922 GB, free: 9.68 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002158/0.128, allocations: 59.36 kB / 0.4922 GB, free: 9.621 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002734/0.1283, allocations: 215.4 kB / 0.4924 GB, free: 9.41 MB / 382.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1283, allocations: 0 / 0.4924 GB, free: 9.41 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1877/0.316, allocations: 12.85 MB / 0.505 GB, free: 46.55 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.778/10.09, allocations: 8.656 kB / 0.505 GB, free: 46.55 MB / 382.1 MB (rm -f EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlangeConn.pipe ; mkfifo EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlangeConn.pipe ; head -c 1048576 < EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlangeConn.pipe >> ../files/EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlangeConn.sim & python3 -m fmpy simulate --output-file EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlangeConn_res.csv --start-time 0 --stop-time 50 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestOneFlangeConn.fmu > EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlangeConn.pipe 2>&1)