Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.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.001346/0.001346, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.428/1.428, allocations: 230.6 MB / 252.7 MB, free: 14.26 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.001802/0.001802, allocations: 209.9 kB / 309.2 MB, free: 3.109 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.04244/0.04244, allocations: 8.919 MB / 374.6 MB, free: 6.562 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_DOL,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_DOL,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL",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.002666/0.002666, allocations: 91.86 kB / 0.4892 GB, free: 44.73 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08025/0.08292, allocations: 55.6 MB / 0.5435 GB, free: 5.027 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_DOL): time 0.01919/0.1021, allocations: 15.11 MB / 0.5582 GB, free: 5.848 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01094/0.113, allocations: 5.442 MB / 0.5635 GB, free: 392 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0026/0.1156, allocations: 123.3 kB / 0.5636 GB, free: 268 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.202/0.3177, allocations: 1.262 MB / 0.5649 GB, free: 9.531 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004893/0.3226, allocations: 1.624 MB / 0.5665 GB, free: 9.52 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002769/0.3253, allocations: 1.082 MB / 0.5675 GB, free: 9.508 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005866/0.3312, allocations: 5.071 MB / 0.5725 GB, free: 9.195 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003727/0.3349, allocations: 2.211 MB / 0.5746 GB, free: 8.863 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004008/0.3389, allocations: 2.35 MB / 0.5769 GB, free: 8.473 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005578/0.3445, allocations: 2.647 MB / 0.5795 GB, free: 7.434 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002032/0.3465, allocations: 0.6179 MB / 0.5801 GB, free: 7.434 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003365/0.3499, allocations: 0.8412 MB / 0.5809 GB, free: 7.371 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002061/0.352, allocations: 1.44 MB / 0.5823 GB, free: 6.469 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004524/0.3565, allocations: 2.113 MB / 0.5844 GB, free: 5.254 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01042/0.3669, allocations: 8.226 MB / 0.5924 GB, free: 1.141 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.005e-06/0.3669, allocations: 0 / 0.5924 GB, free: 1.141 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.3669, allocations: 4 kB / 0.5924 GB, free: 1.137 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002656/0.3672, allocations: 0 / 0.5924 GB, free: 1.137 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1052 * Number of variables: 1052 Notification: Performance of Generate backend data structure: time 0.01748/0.3847, allocations: 5.468 MB / 0.5978 GB, free: 13.51 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.758e-05/0.3847, allocations: 16.86 kB / 0.5978 GB, free: 13.5 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001451/0.3862, allocations: 0.5513 MB / 0.5983 GB, free: 13.09 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006182/0.3924, allocations: 1.021 MB / 0.5993 GB, free: 12.6 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00811/0.4005, allocations: 2.997 MB / 0.6023 GB, free: 10.56 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003398/0.4008, allocations: 303.8 kB / 0.6025 GB, free: 10.42 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001292/0.4021, allocations: 401.8 kB / 0.6029 GB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01272/0.4148, allocations: 5.376 MB / 0.6082 GB, free: 7 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001047/0.4149, allocations: 4 kB / 0.6082 GB, free: 6.996 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004751/0.4154, allocations: 168.9 kB / 0.6083 GB, free: 6.867 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001537/0.4155, allocations: 171.5 kB / 0.6085 GB, free: 6.844 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009582/0.4251, allocations: 4.463 MB / 0.6129 GB, free: 3.164 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03212/0.4572, allocations: 14.95 MB / 0.6275 GB, free: 3.938 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006108/0.4634, allocations: 3.239 MB / 0.6306 GB, free: 0.9375 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004249/0.4676, allocations: 1.99 MB / 0.6326 GB, free: 14.96 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009862/0.4775, allocations: 4.213 MB / 0.6367 GB, free: 10.77 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.344e-05/0.4775, allocations: 55.81 kB / 0.6367 GB, free: 10.7 MB / 430.1 MB Notification: Performance of pre-optimization done (n=158): time 4.759e-06/0.4775, allocations: 0 / 0.6367 GB, free: 10.7 MB / 430.1 MB Notification: Performance of matching and sorting (n=161): time 0.01355/0.4911, allocations: 5.927 MB / 0.6425 GB, free: 4.75 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.638e-05/0.4911, allocations: 72.72 kB / 0.6426 GB, free: 4.664 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00381/0.4949, allocations: 2.354 MB / 0.6449 GB, free: 2.285 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002239/0.4952, allocations: 53.7 kB / 0.6449 GB, free: 2.227 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001493/0.4967, allocations: 1.911 MB / 0.6468 GB, free: 312 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005988/0.4973, allocations: 0.5793 MB / 0.6474 GB, free: 15.73 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006293/0.4979, allocations: 399.9 kB / 0.6478 GB, free: 15.34 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.498, allocations: 305.1 kB / 0.648 GB, free: 15.04 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001502/0.4995, allocations: 0.8592 MB / 0.6489 GB, free: 14.17 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002122/0.5016, allocations: 1.61 MB / 0.6505 GB, free: 12.23 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003924/0.5056, allocations: 2.586 MB / 0.653 GB, free: 9.332 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.717e-05/0.5056, allocations: 4 kB / 0.653 GB, free: 9.328 MB / 446.1 MB Notification: Performance of matching and sorting (n=276) (initialization): time 0.005417/0.511, allocations: 2.919 MB / 0.6558 GB, free: 6.391 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.474e-05/0.511, allocations: 12 kB / 0.6559 GB, free: 6.379 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.375e-05/0.5111, allocations: 24.53 kB / 0.6559 GB, free: 6.355 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004471/0.5115, allocations: 181.5 kB / 0.656 GB, free: 6.172 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001969/0.5135, allocations: 0.5382 MB / 0.6566 GB, free: 5.633 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002649/0.5161, allocations: 2.3 MB / 0.6588 GB, free: 3.227 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002256/0.5184, allocations: 111.9 kB / 0.6589 GB, free: 3.117 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002687/0.5187, allocations: 104 kB / 0.659 GB, free: 3.016 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 103 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (267): * Single equations (assignments): 265 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002683/0.5213, allocations: 1.196 MB / 0.6602 GB, free: 1.809 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006356/0.522, allocations: 262.3 kB / 0.6604 GB, free: 1.551 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004715/0.5267, allocations: 2.365 MB / 0.6628 GB, free: 15.16 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.072e-05/0.5267, allocations: 19.94 kB / 0.6628 GB, free: 15.14 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.21e-05/0.5267, allocations: 8 kB / 0.6628 GB, free: 15.14 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.774e-05/0.5267, allocations: 11.97 kB / 0.6628 GB, free: 15.12 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01128/0.538, allocations: 5.407 MB / 0.6681 GB, free: 9.672 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.732e-06/0.538, allocations: 0 / 0.6681 GB, free: 9.672 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001249/0.5393, allocations: 279.6 kB / 0.6683 GB, free: 9.398 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009084/0.5402, allocations: 354.4 kB / 0.6687 GB, free: 9.043 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001352/0.5403, allocations: 43.97 kB / 0.6687 GB, free: 9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007531/0.5478, allocations: 7.002 MB / 0.6756 GB, free: 1.664 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.5478, allocations: 0 / 0.6756 GB, free: 1.664 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006236/0.5541, allocations: 3.529 MB / 0.679 GB, free: 14.08 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001542/0.5556, allocations: 446.2 kB / 0.6794 GB, free: 13.64 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004735/0.5561, allocations: 32 kB / 0.6795 GB, free: 13.61 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001257/0.5574, allocations: 83.92 kB / 0.6795 GB, free: 13.53 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002964/0.5577, allocations: 129 kB / 0.6797 GB, free: 13.41 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001087/0.5578, allocations: 47.98 kB / 0.6797 GB, free: 13.36 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002674/0.5604, allocations: 1.565 MB / 0.6812 GB, free: 11.78 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5604, allocations: 0 / 0.6812 GB, free: 11.78 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002748/0.5632, allocations: 0.6796 MB / 0.6819 GB, free: 11.1 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smee.excitation.electroMagneticConverter.Phi.re,mechanicalSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (130): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,8,100.0%), (1,8,100.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006759/0.5699, allocations: 4.159 MB / 0.686 GB, free: 6.895 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004087/0.574, allocations: 2.167 MB / 0.6881 GB, free: 4.719 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.169e-06/0.574, allocations: 4.281 kB / 0.6881 GB, free: 4.715 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002473/0.5765, allocations: 1.417 MB / 0.6895 GB, free: 3.258 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003231/0.5797, allocations: 0.6086 MB / 0.6901 GB, free: 2.652 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04469/0.6244, allocations: 24.33 MB / 0.7138 GB, free: 9.445 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002972/0.6274, allocations: 2.143 MB / 0.7159 GB, free: 7.273 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001997/0.6294, allocations: 0.5554 MB / 0.7165 GB, free: 6.711 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002466/0.6319, allocations: 1.491 MB / 0.7179 GB, free: 5.219 MB / 0.4981 GB Notification: Performance of SimCode: time 1.283e-06/0.6319, allocations: 0 / 0.7179 GB, free: 5.219 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3239/0.9557, allocations: 63.65 MB / 0.7801 GB, free: 182.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.99/14.94, allocations: 7.031 kB / 0.7801 GB, free: 182.7 MB / 0.545 GB " [Timeout remaining time 645] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL_res.csv --start-time 0 --stop-time 2.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 18.343889581039548] Failed to read output from testmodel.py, exit status != 0: 15.093091434799135 15.115129873 14.743803016 Calling exit ...