Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.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.001257/0.001257, allocations: 102.5 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.461/1.461, 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.001575/0.001575, allocations: 217.6 kB / 306 MB, free: 4.277 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.04194/0.04194, allocations: 8.91 MB / 371 MB, free: 3.426 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.SynchronousMachines.SMEE_VCurve1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1",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.002604/0.002604, allocations: 91.86 kB / 495.8 MB, free: 9.793 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3002/0.3028, allocations: 55.57 MB / 0.5384 GB, free: 26.64 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve1): time 0.02271/0.3255, allocations: 25.58 MB / 0.5634 GB, free: 8.199 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01794/0.3434, allocations: 8.058 MB / 0.5713 GB, free: 2.391 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007161/0.3506, allocations: 200 kB / 0.5714 GB, free: 2.332 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02074/0.3713, allocations: 7.739 MB / 0.579 GB, free: 13.74 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.015/0.3863, allocations: 3.088 MB / 0.582 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007762/0.3941, allocations: 2.051 MB / 0.584 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01662/0.4107, allocations: 9.314 MB / 0.5931 GB, free: 4.617 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02597/0.4367, allocations: 12.82 MB / 0.6056 GB, free: 9.062 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01097/0.4477, allocations: 4.851 MB / 0.6104 GB, free: 4.199 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01098/0.4586, allocations: 5.346 MB / 0.6156 GB, free: 14.84 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004863/0.4635, allocations: 1.355 MB / 0.6169 GB, free: 13.48 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006997/0.4705, allocations: 1.738 MB / 0.6186 GB, free: 11.74 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00569/0.4762, allocations: 2.677 MB / 0.6212 GB, free: 9.059 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01249/0.4887, allocations: 5.09 MB / 0.6262 GB, free: 3.949 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02727/0.516, allocations: 18.22 MB / 0.644 GB, free: 1.668 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/0.516, allocations: 0 / 0.644 GB, free: 1.668 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.835e-06/0.516, allocations: 0 / 0.644 GB, free: 1.668 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005231/0.5165, allocations: 0 / 0.644 GB, free: 1.668 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2183 * Number of variables: 2183 Notification: Performance of Generate backend data structure: time 0.03816/0.5546, allocations: 10.97 MB / 0.6547 GB, free: 6.586 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.755e-05/0.5547, allocations: 12.03 kB / 0.6547 GB, free: 6.574 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005165/0.5599, allocations: 1.268 MB / 0.656 GB, free: 5.297 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03483/0.5947, allocations: 5.664 MB / 0.6615 GB, free: 15.62 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01714/0.6118, allocations: 5.834 MB / 0.6672 GB, free: 9.73 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007444/0.6126, allocations: 0.582 MB / 0.6678 GB, free: 9.148 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003481/0.6161, allocations: 0.7616 MB / 0.6685 GB, free: 8.387 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03503/0.6511, allocations: 12.81 MB / 0.681 GB, free: 11.52 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004224/0.6515, allocations: 11.94 kB / 0.681 GB, free: 11.51 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003194/0.6547, allocations: 328 kB / 0.6813 GB, free: 11.19 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007057/0.6554, allocations: 0.4928 MB / 0.6818 GB, free: 10.7 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5061/1.161, allocations: 12.29 MB / 0.6938 GB, free: 105.9 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07617/1.238, allocations: 45.17 MB / 0.7379 GB, free: 78.6 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02173/1.259, allocations: 24.82 MB / 0.7622 GB, free: 54.92 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005361/1.265, allocations: 2.728 MB / 0.7648 GB, free: 53.5 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005628/1.265, allocations: 343.9 kB / 0.7652 GB, free: 53.18 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004255/1.27, allocations: 2.591 MB / 0.7677 GB, free: 51.56 MB / 494.1 MB Notification: Performance of pre-optimization done (n=391): time 6.192e-06/1.27, allocations: 0 / 0.7677 GB, free: 51.56 MB / 494.1 MB Notification: Performance of matching and sorting (n=397): time 0.0428/1.312, allocations: 18.45 MB / 0.7857 GB, free: 39.99 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001502/1.313, allocations: 351.5 kB / 0.786 GB, free: 39.57 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00584/1.318, allocations: 3.533 MB / 0.7895 GB, free: 36.08 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007267/1.319, allocations: 93.7 kB / 0.7896 GB, free: 35.98 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002019/1.321, allocations: 3.495 MB / 0.793 GB, free: 32.64 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001604/1.323, allocations: 1.42 MB / 0.7944 GB, free: 31.24 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002278/1.325, allocations: 1.093 MB / 0.7954 GB, free: 30.14 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.332e-05/1.325, allocations: 309.1 kB / 0.7957 GB, free: 29.84 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003838/1.329, allocations: 2.556 MB / 0.7982 GB, free: 27.27 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005144/1.334, allocations: 4.519 MB / 0.8026 GB, free: 21.88 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008931/1.343, allocations: 7.467 MB / 0.8099 GB, free: 13.54 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.622e-05/1.343, allocations: 23.94 kB / 0.81 GB, free: 13.51 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01327/1.356, allocations: 8.294 MB / 0.8181 GB, free: 5.195 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.443e-05/1.356, allocations: 53.7 kB / 0.8181 GB, free: 5.137 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.585e-05/1.356, allocations: 60.31 kB / 0.8182 GB, free: 5.078 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002643/1.359, allocations: 0.998 MB / 0.8191 GB, free: 4.078 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00458/1.364, allocations: 1.267 MB / 0.8204 GB, free: 2.809 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0135/1.377, allocations: 8.819 MB / 0.829 GB, free: 9.852 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005241/1.382, allocations: 355.4 kB / 0.8293 GB, free: 9.504 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001162/1.384, allocations: 279.9 kB / 0.8296 GB, free: 9.23 MB / 0.4982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 275 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (664): * Single equations (assignments): 662 * Array equations: 0 * Algorithm blocks: 1 * 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 {(10,48,52.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006633/1.39, allocations: 2.892 MB / 0.8324 GB, free: 6.32 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001294/1.391, allocations: 409.4 kB / 0.8328 GB, free: 5.918 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01436/1.406, allocations: 6.16 MB / 0.8388 GB, free: 15.71 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-05/1.406, allocations: 40 kB / 0.8389 GB, free: 15.67 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.23e-05/1.406, allocations: 16 kB / 0.8389 GB, free: 15.65 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.663e-05/1.406, allocations: 19.92 kB / 0.8389 GB, free: 15.63 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03487/1.441, allocations: 14.63 MB / 0.8532 GB, free: 0.9336 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.812e-05/1.441, allocations: 4.594 kB / 0.8532 GB, free: 0.9297 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003551/1.444, allocations: 0.6943 MB / 0.8539 GB, free: 240 kB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003133/1.448, allocations: 0.8781 MB / 0.8547 GB, free: 15.35 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008418/1.448, allocations: 95.91 kB / 0.8548 GB, free: 15.26 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01317/1.462, allocations: 7.753 MB / 0.8624 GB, free: 7.367 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.995e-06/1.462, allocations: 8.078 kB / 0.8624 GB, free: 7.359 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0165/1.478, allocations: 8.794 MB / 0.871 GB, free: 14.44 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002704/1.481, allocations: 0.9239 MB / 0.8719 GB, free: 13.49 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001062/1.482, allocations: 79.98 kB / 0.872 GB, free: 13.41 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002711/1.485, allocations: 183.8 kB / 0.8721 GB, free: 13.23 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008605/1.485, allocations: 279.1 kB / 0.8724 GB, free: 12.96 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003284/1.486, allocations: 120 kB / 0.8725 GB, free: 12.84 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005183/1.491, allocations: 2.367 MB / 0.8748 GB, free: 10.48 MB / 0.545 GB Notification: Performance of sort global known variables: time 2e-07/1.491, allocations: 0 / 0.8748 GB, free: 10.48 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007344/1.498, allocations: 1.461 MB / 0.8763 GB, free: 9.023 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 3 (smee.inertiaRotor.w,smee.rotorCage.port_p.reference.gamma,constantTorque.phi) * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 1 ($whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (371): * Single equations (assignments): 369 * Array equations: 0 * Algorithm blocks: 1 * 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 {(10,46,50.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01836/1.517, allocations: 9.508 MB / 0.8855 GB, free: 15.39 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01387/1.531, allocations: 6.22 MB / 0.8916 GB, free: 9.141 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.409e-05/1.531, allocations: 5.875 kB / 0.8916 GB, free: 9.137 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.007439/1.538, allocations: 2.887 MB / 0.8944 GB, free: 6.223 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006762/1.545, allocations: 0.8236 MB / 0.8952 GB, free: 5.418 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3633/1.908, allocations: 48.12 MB / 0.9422 GB, free: 181.9 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01089/1.919, allocations: 5.011 MB / 0.9471 GB, free: 180 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.006535/1.925, allocations: 1.598 MB / 0.9487 GB, free: 179.8 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005763/1.931, allocations: 2.771 MB / 0.9514 GB, free: 177.5 MB / 0.5763 GB Notification: Performance of SimCode: time 1.343e-06/1.931, allocations: 1.094 kB / 0.9514 GB, free: 177.5 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1646/2.096, allocations: 113.1 MB / 1.062 GB, free: 78.42 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.77/21.87, allocations: 4 kB / 1.062 GB, free: 78.41 MB / 0.5763 GB " [Timeout remaining time 638] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 24.72398633901321] Failed to read output from testmodel.py, exit status != 0: 22.018143689012504 22.036668223 21.516365126 Calling exit ...