Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.FirstSteps.Electrical2.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/Modelica 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/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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(HanserModelica.FirstSteps.Electrical2,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.FirstSteps.Electrical2,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical2",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.008015/0.008015, allocations: 101.3 kB / 15.73 MB, free: 6.004 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.434/1.434, allocations: 222.9 MB / 239.4 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001372/0.001372, allocations: 184.5 kB / 289.7 MB, free: 2.262 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03455/0.03455, allocations: 8.798 MB / 348.7 MB, free: 4.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001485, allocations: 75.88 kB / 463.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.1282, allocations: 51.57 MB / 0.5029 GB, free: 10.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical2): time 0.001847/0.1301, allocations: 0.4969 MB / 0.5034 GB, free: 9.664 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001788/0.1303, allocations: 27.91 kB / 0.5034 GB, free: 9.637 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.701e-05/0.1303, allocations: 0 / 0.5034 GB, free: 9.637 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.891e-05/0.1304, allocations: 0 / 0.5034 GB, free: 9.637 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.64e-05/0.1304, allocations: 3.938 kB / 0.5034 GB, free: 9.633 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001123/0.1305, allocations: 7.984 kB / 0.5034 GB, free: 9.625 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.77e-05/0.1306, allocations: 11.94 kB / 0.5034 GB, free: 9.613 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.145e-05/0.1307, allocations: 4 kB / 0.5034 GB, free: 9.609 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.994e-05/0.1307, allocations: 11.92 kB / 0.5034 GB, free: 9.598 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.923e-05/0.1307, allocations: 7.984 kB / 0.5035 GB, free: 9.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.306e-05/0.1308, allocations: 0 / 0.5035 GB, free: 9.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.736e-06/0.1308, allocations: 0 / 0.5035 GB, free: 9.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.537e-05/0.1308, allocations: 11.94 kB / 0.5035 GB, free: 9.578 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.148e-05/0.1308, allocations: 0 / 0.5035 GB, free: 9.578 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.196e-05/0.1309, allocations: 20.14 kB / 0.5035 GB, free: 9.559 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1309, allocations: 0 / 0.5035 GB, free: 9.559 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1309, allocations: 4 kB / 0.5035 GB, free: 9.555 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.1309, allocations: 0 / 0.5035 GB, free: 9.555 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003774/0.1313, allocations: 323.5 kB / 0.5038 GB, free: 9.188 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/0.1314, allocations: 11.97 kB / 0.5038 GB, free: 9.176 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.119e-05/0.1314, allocations: 34.75 kB / 0.5038 GB, free: 9.133 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.552e-05/0.1314, allocations: 8.938 kB / 0.5039 GB, free: 9.125 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001404/0.1316, allocations: 164.3 kB / 0.504 GB, free: 8.926 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.995e-06/0.1316, allocations: 384 / 0.504 GB, free: 8.926 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.497e-05/0.1316, allocations: 4.375 kB / 0.504 GB, free: 8.922 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001006/0.1317, allocations: 38.25 kB / 0.504 GB, free: 8.879 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.1317, allocations: 3.938 kB / 0.5041 GB, free: 8.875 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.345e-06/0.1318, allocations: 3.938 kB / 0.5041 GB, free: 8.871 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.1318, allocations: 0 / 0.5041 GB, free: 8.871 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.816e-05/0.1318, allocations: 7.984 kB / 0.5041 GB, free: 8.863 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001907/0.132, allocations: 157.6 kB / 0.5042 GB, free: 8.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.962e-05/0.1321, allocations: 38.59 kB / 0.5043 GB, free: 8.613 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.249e-05/0.1321, allocations: 16.86 kB / 0.5043 GB, free: 8.594 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.764e-06/0.1322, allocations: 0 / 0.5043 GB, free: 8.594 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.508e-05/0.1322, allocations: 38.64 kB / 0.5043 GB, free: 8.547 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.1322, allocations: 0 / 0.5043 GB, free: 8.547 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001617/0.1324, allocations: 49.58 kB / 0.5044 GB, free: 8.492 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.713e-05/0.1324, allocations: 59.39 kB / 0.5044 GB, free: 8.422 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.484e-05/0.1325, allocations: 101.8 kB / 0.5045 GB, free: 8.312 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.713e-05/0.1325, allocations: 29.7 kB / 0.5045 GB, free: 8.277 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.802e-05/0.1326, allocations: 80.14 kB / 0.5046 GB, free: 8.195 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.386e-05/0.1326, allocations: 19.83 kB / 0.5046 GB, free: 8.176 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.862e-05/0.1327, allocations: 17.7 kB / 0.5046 GB, free: 8.152 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.1328, allocations: 314.8 kB / 0.5049 GB, free: 7.836 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.173e-05/0.1328, allocations: 4 kB / 0.5049 GB, free: 7.832 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.257e-05/0.1328, allocations: 8 kB / 0.505 GB, free: 7.824 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.18e-05/0.1329, allocations: 20.84 kB / 0.505 GB, free: 7.801 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.1329, allocations: 0 / 0.505 GB, free: 7.801 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.563e-05/0.133, allocations: 49.64 kB / 0.505 GB, free: 7.746 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.133, allocations: 15.92 kB / 0.505 GB, free: 7.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.133, allocations: 0 / 0.505 GB, free: 7.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.905e-05/0.133, allocations: 0 / 0.505 GB, free: 7.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001035/0.1331, allocations: 8 kB / 0.505 GB, free: 7.723 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.1331, allocations: 0 / 0.505 GB, free: 7.723 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.754e-05/0.1332, allocations: 0 / 0.505 GB, free: 7.723 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.138e-06/0.1332, allocations: 4 kB / 0.5051 GB, free: 7.719 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (4): * Single equations (assignments): 4 * 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 8.72e-05/0.1333, allocations: 117.7 kB / 0.5052 GB, free: 7.594 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.177e-05/0.1333, allocations: 3.938 kB / 0.5052 GB, free: 7.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.673e-05/0.1333, allocations: 11.48 kB / 0.5052 GB, free: 7.574 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.1333, allocations: 0 / 0.5052 GB, free: 7.574 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.748e-06/0.1333, allocations: 0 / 0.5052 GB, free: 7.574 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.1333, allocations: 0 / 0.5052 GB, free: 7.574 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001193/0.1335, allocations: 157.7 kB / 0.5053 GB, free: 7.371 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.1335, allocations: 0 / 0.5053 GB, free: 7.371 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.334e-05/0.1336, allocations: 12 kB / 0.5053 GB, free: 7.359 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.55e-06/0.1336, allocations: 3.938 kB / 0.5053 GB, free: 7.355 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.925e-06/0.1336, allocations: 3.938 kB / 0.5053 GB, free: 7.352 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.1336, allocations: 0 / 0.5053 GB, free: 7.352 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.1336, allocations: 0 / 0.5053 GB, free: 7.352 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000146/0.1337, allocations: 81.53 kB / 0.5054 GB, free: 7.254 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.853e-05/0.1338, allocations: 81.14 kB / 0.5055 GB, free: 7.156 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.789e-05/0.1338, allocations: 11.95 kB / 0.5055 GB, free: 7.145 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.792e-05/0.1338, allocations: 4.062 kB / 0.5055 GB, free: 7.141 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.839e-05/0.1339, allocations: 0 / 0.5055 GB, free: 7.141 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.395e-06/0.1339, allocations: 3.938 kB / 0.5055 GB, free: 7.137 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.893e-05/0.1339, allocations: 79.28 kB / 0.5056 GB, free: 7.059 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1339, allocations: 0 / 0.5056 GB, free: 7.059 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001855/0.1341, allocations: 8 kB / 0.5056 GB, free: 7.051 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (i) * 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 (3): * Single equations (assignments): 3 * 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.0004117/0.1345, allocations: 0.6124 MB / 0.5062 GB, free: 6.406 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.569e-05/0.1346, allocations: 19.98 kB / 0.5062 GB, free: 6.387 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1347, allocations: 0 / 0.5062 GB, free: 6.387 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.494e-05/0.1347, allocations: 7.938 kB / 0.5062 GB, free: 6.379 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001512/0.1348, allocations: 7.812 kB / 0.5062 GB, free: 6.375 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001131/0.136, allocations: 1.175 MB / 0.5074 GB, free: 5.117 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002976/0.1363, allocations: 0.6844 MB / 0.5081 GB, free: 4.406 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.853e-05/0.1363, allocations: 0 / 0.5081 GB, free: 4.406 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.902e-05/0.1363, allocations: 7.438 kB / 0.5081 GB, free: 4.398 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1363, allocations: 0 / 0.5081 GB, free: 4.398 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02089/0.1572, allocations: 1.109 MB / 0.5091 GB, free: 3.352 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.56/7.717, allocations: 12.05 kB / 0.5092 GB, free: 3.34 MB / 350.1 MB (rm -f HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe ; mkfifo HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe >> ../files/HanserModelica_HanserModelica.FirstSteps.Electrical2.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.FirstSteps.Electrical2_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 HanserModelica_HanserModelica_FirstSteps_Electrical2.fmu > HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe 2>&1)