Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.FirstSteps.Electrical1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001468/0.001468, allocations: 103 kB / 16.45 MB, free: 6.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.449/1.449, allocations: 230.6 MB / 249.8 MB, free: 9.211 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001592/0.001592, allocations: 216.9 kB / 306 MB, free: 4.289 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo): time 0.07369/0.07369, allocations: 8.899 MB / 371 MB, free: 3.43 MB / 302.1 MB " [Timeout remaining time 180] Using package HanserModelica with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HanserModelica.FirstSteps.Electrical1,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.FirstSteps.Electrical1,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: HanserModelica requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: HanserModelica requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002463/0.002463, allocations: 84.02 kB / 495.7 MB, free: 4.918 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1132, allocations: 55.6 MB / 0.5384 GB, free: 6.484 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical1): time 0.001591/0.1148, allocations: 477.1 kB / 0.5388 GB, free: 6.016 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001303/0.1149, allocations: 23.89 kB / 0.5389 GB, free: 5.992 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.329e-05/0.1149, allocations: 4 kB / 0.5389 GB, free: 5.988 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.749e-05/0.1149, allocations: 0 / 0.5389 GB, free: 5.988 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.383e-05/0.115, allocations: 7.938 kB / 0.5389 GB, free: 5.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001045/0.1151, allocations: 0 / 0.5389 GB, free: 5.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.117e-05/0.1151, allocations: 11.98 kB / 0.5389 GB, free: 5.969 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.76e-05/0.1152, allocations: 4 kB / 0.5389 GB, free: 5.965 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.013e-05/0.1152, allocations: 7.922 kB / 0.5389 GB, free: 5.957 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.495e-05/0.1152, allocations: 4 kB / 0.5389 GB, free: 5.953 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.203e-05/0.1152, allocations: 0 / 0.5389 GB, free: 5.953 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.632e-06/0.1153, allocations: 0 / 0.5389 GB, free: 5.953 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.605e-05/0.1153, allocations: 3.984 kB / 0.5389 GB, free: 5.949 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.288e-05/0.1153, allocations: 11.94 kB / 0.5389 GB, free: 5.938 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 5.317e-05/0.1153, allocations: 3.938 kB / 0.5389 GB, free: 5.934 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.1154, allocations: 4 kB / 0.5389 GB, free: 5.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.1154, allocations: 0 / 0.5389 GB, free: 5.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.558e-06/0.1154, allocations: 0 / 0.5389 GB, free: 5.93 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.0003905/0.1157, allocations: 323.8 kB / 0.5392 GB, free: 5.562 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.1158, allocations: 12.03 kB / 0.5392 GB, free: 5.551 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.917e-05/0.1158, allocations: 34.69 kB / 0.5393 GB, free: 5.508 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.098e-05/0.1158, allocations: 4.891 kB / 0.5393 GB, free: 5.504 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001759/0.116, allocations: 172.2 kB / 0.5394 GB, free: 5.297 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.421e-05/0.116, allocations: 4.375 kB / 0.5394 GB, free: 5.293 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.704e-05/0.1161, allocations: 8.359 kB / 0.5394 GB, free: 5.285 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.669e-05/0.1161, allocations: 34.27 kB / 0.5395 GB, free: 5.246 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.1162, allocations: 3.938 kB / 0.5395 GB, free: 5.242 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.945e-06/0.1162, allocations: 3.984 kB / 0.5395 GB, free: 5.238 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-06/0.1162, allocations: 0 / 0.5395 GB, free: 5.238 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.517e-05/0.1162, allocations: 8 kB / 0.5395 GB, free: 5.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002398/0.1164, allocations: 157.7 kB / 0.5396 GB, free: 5.027 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.666e-05/0.1165, allocations: 42.52 kB / 0.5397 GB, free: 4.977 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.838e-05/0.1166, allocations: 12.94 kB / 0.5397 GB, free: 4.961 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.063e-05/0.1166, allocations: 0 / 0.5397 GB, free: 4.961 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.492e-05/0.1166, allocations: 34.56 kB / 0.5397 GB, free: 4.918 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 8.82e-07/0.1166, allocations: 0 / 0.5397 GB, free: 4.918 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001492/0.1167, allocations: 49.62 kB / 0.5398 GB, free: 4.863 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.673e-05/0.1168, allocations: 59.34 kB / 0.5398 GB, free: 4.793 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001054/0.1169, allocations: 93.86 kB / 0.5399 GB, free: 4.691 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.709e-05/0.1169, allocations: 29.7 kB / 0.54 GB, free: 4.656 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.462e-05/0.117, allocations: 88.12 kB / 0.54 GB, free: 4.566 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.472e-05/0.117, allocations: 11.89 kB / 0.54 GB, free: 4.555 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.569e-05/0.117, allocations: 17.72 kB / 0.5401 GB, free: 4.531 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001918/0.1172, allocations: 314.8 kB / 0.5404 GB, free: 4.215 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.75e-05/0.1172, allocations: 7.984 kB / 0.5404 GB, free: 4.207 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.526e-05/0.1172, allocations: 8 kB / 0.5404 GB, free: 4.199 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.785e-05/0.1173, allocations: 16.86 kB / 0.5404 GB, free: 4.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.1173, allocations: 4 kB / 0.5404 GB, free: 4.176 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.41e-05/0.1174, allocations: 50.09 kB / 0.5404 GB, free: 4.121 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.1174, allocations: 14.91 kB / 0.5405 GB, free: 4.109 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.1174, allocations: 0 / 0.5405 GB, free: 4.109 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.168e-05/0.1174, allocations: 0 / 0.5405 GB, free: 4.109 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.363e-05/0.1175, allocations: 8 kB / 0.5405 GB, free: 4.102 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.1175, allocations: 0 / 0.5405 GB, free: 4.102 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.447e-05/0.1175, allocations: 0 / 0.5405 GB, free: 4.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.911e-06/0.1175, allocations: 3.984 kB / 0.5405 GB, free: 4.098 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.798e-05/0.1176, allocations: 117.8 kB / 0.5406 GB, free: 3.973 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.281e-05/0.1176, allocations: 11.92 kB / 0.5406 GB, free: 3.961 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.045e-05/0.1176, allocations: 3.5 kB / 0.5406 GB, free: 3.949 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.1176, allocations: 0 / 0.5406 GB, free: 3.949 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.1176, allocations: 4 kB / 0.5406 GB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.1176, allocations: 0 / 0.5406 GB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001238/0.1178, allocations: 157.6 kB / 0.5408 GB, free: 3.742 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.1178, allocations: 0 / 0.5408 GB, free: 3.742 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.308e-05/0.1178, allocations: 8 kB / 0.5408 GB, free: 3.734 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.1178, allocations: 3.938 kB / 0.5408 GB, free: 3.73 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.292e-06/0.1178, allocations: 4 kB / 0.5408 GB, free: 3.727 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.1178, allocations: 3.984 kB / 0.5408 GB, free: 3.723 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.564e-06/0.1178, allocations: 3.984 kB / 0.5408 GB, free: 3.719 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000137/0.118, allocations: 77.06 kB / 0.5409 GB, free: 3.625 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.106e-05/0.118, allocations: 77.11 kB / 0.5409 GB, free: 3.531 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.342e-05/0.118, allocations: 7.969 kB / 0.5409 GB, free: 3.523 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.659e-05/0.1181, allocations: 0 / 0.5409 GB, free: 3.523 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.023e-05/0.1181, allocations: 0 / 0.5409 GB, free: 3.523 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.228e-06/0.1181, allocations: 8.062 kB / 0.5409 GB, free: 3.516 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.367e-05/0.1181, allocations: 87.27 kB / 0.541 GB, free: 3.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1181, allocations: 0 / 0.541 GB, free: 3.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001823/0.1183, allocations: 4 kB / 0.541 GB, free: 3.426 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.0004241/0.1187, allocations: 0.6085 MB / 0.5416 GB, free: 2.785 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.004e-05/0.1188, allocations: 23.98 kB / 0.5416 GB, free: 2.762 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1188, allocations: 0 / 0.5416 GB, free: 2.762 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.297e-05/0.1188, allocations: 8 kB / 0.5417 GB, free: 2.754 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001308/0.119, allocations: 0 / 0.5417 GB, free: 2.754 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001019/0.12, allocations: 1.115 MB / 0.5427 GB, free: 1.559 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004227/0.1204, allocations: 0.6845 MB / 0.5434 GB, free: 0.8477 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.689e-05/0.1204, allocations: 0 / 0.5434 GB, free: 0.8477 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.136e-05/0.1204, allocations: 7.438 kB / 0.5434 GB, free: 0.8398 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1204, allocations: 0 / 0.5434 GB, free: 0.8398 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02544/0.1459, allocations: 1.099 MB / 0.5445 GB, free: 15.81 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.924/8.07, allocations: 1.766 kB / 0.5445 GB, free: 15.81 MB / 366.1 MB " [Timeout remaining time 652] (rm -f HanserModelica_HanserModelica.FirstSteps.Electrical1.pipe ; mkfifo HanserModelica_HanserModelica.FirstSteps.Electrical1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.FirstSteps.Electrical1.pipe >> ../files/HanserModelica_HanserModelica.FirstSteps.Electrical1.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.FirstSteps.Electrical1_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_Electrical1.fmu > HanserModelica_HanserModelica.FirstSteps.Electrical1.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.976367088995175] Failed to read output from testmodel.py, exit status != 0: 8.140312803006964 8.159609481 8.04143023 Calling exit ...