Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange3.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.TestOneFlange.TestOneFlange3,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestOneFlange_TestOneFlange3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange3,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestOneFlange_TestOneFlange3",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.005598/0.005598, allocations: 98.03 kB / 15.73 MB, free: 6.012 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.001397/0.001397, allocations: 196.1 kB / 16.68 MB, free: 5.93 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.403/1.403, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 3.0.0-main/package.mo): time 0.0423/0.0423, allocations: 8.418 MB / 298.9 MB, free: 6.406 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002683/0.002683, allocations: 67.89 kB / 413.3 MB, free: 22.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1061, allocations: 51.36 MB / 464.7 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange3): time 0.007481/0.1136, allocations: 5.163 MB / 469.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003804/0.1174, allocations: 2.094 MB / 471.9 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006705/0.1182, allocations: 15.94 kB / 472 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006405/0.1188, allocations: 198.6 kB / 472.1 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009755/0.1198, allocations: 238.3 kB / 472.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009444/0.1208, allocations: 369.7 kB / 472.7 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001323/0.1221, allocations: 0.9626 MB / 473.7 MB, free: 9.723 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007076/0.1229, allocations: 482.9 kB / 474.2 MB, free: 9.223 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005497/0.1234, allocations: 374.7 kB / 474.5 MB, free: 8.855 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006184/0.124, allocations: 418.2 kB / 474.9 MB, free: 8.445 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001503/0.1242, allocations: 108 kB / 475.1 MB, free: 8.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003027/0.1245, allocations: 168 kB / 475.2 MB, free: 8.176 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002086/0.1247, allocations: 207.3 kB / 475.4 MB, free: 7.973 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004296/0.1252, allocations: 437.9 kB / 475.8 MB, free: 7.543 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001424/0.1266, allocations: 1.136 MB / 477 MB, free: 6.402 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.672e-06/0.1266, allocations: 4 kB / 477 MB, free: 6.398 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.1266, allocations: 4 kB / 477 MB, free: 6.395 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.987e-05/0.1267, allocations: 0 / 477 MB, free: 6.395 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.002325/0.129, allocations: 1.218 MB / 478.2 MB, free: 5.105 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.925e-05/0.1291, allocations: 15.89 kB / 478.2 MB, free: 5.09 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001483/0.1292, allocations: 110.7 kB / 478.3 MB, free: 4.973 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001976/0.1294, allocations: 92.38 kB / 478.4 MB, free: 4.883 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009166/0.1303, allocations: 0.5174 MB / 478.9 MB, free: 4.324 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001447/0.1305, allocations: 87.12 kB / 479 MB, free: 4.234 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001256/0.1306, allocations: 68 kB / 479.1 MB, free: 4.168 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001539/0.1322, allocations: 0.7082 MB / 479.8 MB, free: 3.438 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.692e-05/0.1322, allocations: 3.953 kB / 479.8 MB, free: 3.434 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.243e-05/0.1323, allocations: 31.98 kB / 479.8 MB, free: 3.402 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.809e-05/0.1323, allocations: 16 kB / 479.9 MB, free: 3.387 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001385/0.1337, allocations: 0.5282 MB / 480.4 MB, free: 2.859 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004168/0.1379, allocations: 2.581 MB / 483 MB, free: 156 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001144/0.1391, allocations: 468.1 kB / 483.4 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004876/0.1396, allocations: 197 kB / 483.6 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.426e-05/0.1396, allocations: 12.19 kB / 483.6 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006489/0.1403, allocations: 277.3 kB / 483.9 MB, free: 15.17 MB / 366.1 MB Notification: Performance of pre-optimization done (n=36): time 3.106e-06/0.1403, allocations: 4 kB / 483.9 MB, free: 15.17 MB / 366.1 MB Notification: Performance of matching and sorting (n=36): time 0.001913/0.1422, allocations: 0.7566 MB / 484.7 MB, free: 14.37 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000124/0.1424, allocations: 174.1 kB / 484.8 MB, free: 14.16 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008125/0.1432, allocations: 0.5849 MB / 485.4 MB, free: 13.57 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.248e-05/0.1433, allocations: 33.7 kB / 485.4 MB, free: 13.53 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003232/0.1436, allocations: 360.8 kB / 485.8 MB, free: 13.18 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001438/0.1437, allocations: 134.9 kB / 485.9 MB, free: 13.04 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001679/0.1439, allocations: 94.2 kB / 486 MB, free: 12.95 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002022/0.1441, allocations: 378.7 kB / 486.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004948/0.1446, allocations: 187 kB / 486.6 MB, free: 12.38 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005734/0.1452, allocations: 308.1 kB / 486.9 MB, free: 12.03 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001096/0.1463, allocations: 0.5921 MB / 487.5 MB, free: 11.36 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.1463, allocations: 8 kB / 487.5 MB, free: 11.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001453/0.1478, allocations: 0.6843 MB / 488.2 MB, free: 10.64 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.135e-05/0.1479, allocations: 97.09 kB / 488.2 MB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.1479, allocations: 4 kB / 488.3 MB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001594/0.1481, allocations: 20.86 kB / 488.3 MB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000409/0.1485, allocations: 103.9 kB / 488.4 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001237/0.1497, allocations: 1.39 MB / 489.8 MB, free: 8.863 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005447/0.1503, allocations: 91.67 kB / 489.9 MB, free: 8.773 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.976e-05/0.1504, allocations: 27.98 kB / 489.9 MB, free: 8.746 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006991/0.1511, allocations: 345.2 kB / 490.2 MB, free: 8.402 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005416/0.1516, allocations: 296.1 kB / 490.5 MB, free: 8.066 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001007/0.1526, allocations: 0.5787 MB / 491.1 MB, free: 7.41 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.515e-06/0.1527, allocations: 0 / 491.1 MB, free: 7.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.001327/0.154, allocations: 0.6624 MB / 491.7 MB, free: 6.719 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.818e-05/0.1541, allocations: 91.45 kB / 491.8 MB, free: 6.613 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.1541, allocations: 4 kB / 491.8 MB, free: 6.609 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001043/0.1542, allocations: 28.84 kB / 491.9 MB, free: 6.578 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003753/0.1546, allocations: 95.81 kB / 492 MB, free: 6.484 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001124/0.1557, allocations: 1.383 MB / 493.3 MB, free: 4.961 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005046/0.1562, allocations: 71.89 kB / 493.4 MB, free: 4.891 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.13e-05/0.1563, allocations: 27.98 kB / 493.4 MB, free: 4.863 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: 8 (oneFlange.limTau.state,oneFlange.limitingTorque,tauRef.count,$PRE.tauRef.count,tauRef.T_start,$PRE.tauRef.T_start,$whenCondition1,oneFlange.pDC.integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 52 * 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.0002575/0.1566, allocations: 268.2 kB / 493.7 MB, free: 4.582 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.839e-05/0.1567, allocations: 67.52 kB / 493.8 MB, free: 4.516 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001296/0.158, allocations: 0.5458 MB / 494.3 MB, free: 3.941 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.062e-06/0.158, allocations: 7.938 kB / 494.3 MB, free: 3.934 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.297e-06/0.158, allocations: 0 / 494.3 MB, free: 3.934 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.317e-06/0.158, allocations: 7.938 kB / 494.3 MB, free: 3.926 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002189/0.1602, allocations: 1.249 MB / 495.6 MB, free: 2.605 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.1602, allocations: 4 kB / 495.6 MB, free: 2.602 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003551/0.1606, allocations: 71.83 kB / 495.7 MB, free: 2.531 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.205e-05/0.1607, allocations: 24.84 kB / 495.7 MB, free: 2.504 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.746e-05/0.1607, allocations: 8 kB / 495.7 MB, free: 2.496 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00117/0.1619, allocations: 1.379 MB / 497.1 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.1619, allocations: 0 / 497.1 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001854/0.1638, allocations: 0.8559 MB / 497.9 MB, free: 92 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002765/0.1641, allocations: 176.7 kB / 498.1 MB, free: 15.9 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.456e-05/0.1642, allocations: 12 kB / 498.1 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000413/0.1646, allocations: 47.89 kB / 498.2 MB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001334/0.1647, allocations: 39.95 kB / 498.2 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.171e-05/0.1648, allocations: 8 kB / 498.2 MB, free: 15.79 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005598/0.1653, allocations: 418.8 kB / 498.6 MB, free: 15.39 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1654, allocations: 4 kB / 498.6 MB, free: 15.38 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009344/0.1663, allocations: 299.2 kB / 498.9 MB, free: 15.09 MB / 382.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,oneFlange.pDC.integrator1.y) * Number of discrete variables: 5 ($whenCondition1,tauRef.T_start,tauRef.count,oneFlange.limitingTorque,oneFlange.limTau.state) * Number of discrete states: 2 (tauRef.count,oneFlange.limTau.state) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 29 * 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.003448/0.1698, allocations: 1.703 MB / 0.4889 GB, free: 13.49 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002414/0.1722, allocations: 1.276 MB / 0.4901 GB, free: 12.12 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.077e-06/0.1722, allocations: 0 / 0.4901 GB, free: 12.12 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007721/0.173, allocations: 446.4 kB / 0.4905 GB, free: 11.64 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006437/0.1737, allocations: 94.14 kB / 0.4906 GB, free: 11.56 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00891/0.1826, allocations: 5.439 MB / 0.4959 GB, free: 5.914 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006274/0.1833, allocations: 0.9211 MB / 0.4968 GB, free: 4.965 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003224/0.1836, allocations: 64.22 kB / 0.4969 GB, free: 4.902 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003551/0.184, allocations: 239.4 kB / 0.4971 GB, free: 4.668 MB / 382.1 MB Notification: Performance of SimCode: time 1.062e-06/0.184, allocations: 4 kB / 0.4971 GB, free: 4.664 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2384/0.4223, allocations: 13.83 MB / 0.5106 GB, free: 44.44 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.68/11.11, allocations: 13.39 kB / 0.5107 GB, free: 44.44 MB / 382.1 MB (rm -f EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange3.pipe ; mkfifo EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange3.pipe ; head -c 1048576 < EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange3.pipe >> ../files/EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestOneFlange_TestOneFlange3_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestOneFlange_TestOneFlange3.fmu > EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange3.pipe 2>&1)