Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.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.403/1.403, allocations: 230.6 MB / 252.7 MB, free: 14.27 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.001511/0.001511, allocations: 208.2 kB / 309.2 MB, free: 3.098 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.03969/0.03969, allocations: 8.916 MB / 374.6 MB, free: 6.586 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_Synchronization3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3",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.002428/0.002428, allocations: 87.88 kB / 0.4892 GB, free: 44.72 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08959/0.09202, allocations: 55.61 MB / 0.5435 GB, free: 5.008 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization3): time 0.01729/0.1093, allocations: 14.31 MB / 0.5575 GB, free: 6.625 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01074/0.1201, allocations: 5.279 MB / 0.5626 GB, free: 1.324 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002616/0.1227, allocations: 115.4 kB / 0.5627 GB, free: 1.211 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2061/0.3288, allocations: 1.212 MB / 0.5639 GB, free: 9.793 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005485/0.3343, allocations: 1.567 MB / 0.5654 GB, free: 9.793 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002643/0.3369, allocations: 1.013 MB / 0.5664 GB, free: 9.785 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006291/0.3432, allocations: 4.745 MB / 0.5711 GB, free: 9.777 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003177/0.3464, allocations: 1.905 MB / 0.5729 GB, free: 9.535 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003501/0.3499, allocations: 2.175 MB / 0.575 GB, free: 9.254 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004784/0.3547, allocations: 2.437 MB / 0.5774 GB, free: 8.828 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001705/0.3564, allocations: 0.5688 MB / 0.578 GB, free: 8.828 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002977/0.3593, allocations: 0.789 MB / 0.5788 GB, free: 8.793 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001251/0.3606, allocations: 1.299 MB / 0.58 GB, free: 7.996 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002946/0.3635, allocations: 1.945 MB / 0.5819 GB, free: 6.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008944/0.3725, allocations: 7.6 MB / 0.5893 GB, free: 3.965 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.3725, allocations: 0 / 0.5893 GB, free: 3.965 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3725, allocations: 0 / 0.5893 GB, free: 3.965 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002343/0.3727, allocations: 9.062 kB / 0.5893 GB, free: 3.957 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: 965 * Number of variables: 965 Notification: Performance of Generate backend data structure: time 0.01372/0.3864, allocations: 5.032 MB / 0.5943 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.3865, allocations: 13.42 kB / 0.5943 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00102/0.3875, allocations: 0.5564 MB / 0.5948 GB, free: 224 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005366/0.3929, allocations: 0.9816 MB / 0.5958 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007004/0.3999, allocations: 2.792 MB / 0.5985 GB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003473/0.4002, allocations: 278.9 kB / 0.5988 GB, free: 13.73 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001348/0.4016, allocations: 374.2 kB / 0.5991 GB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01199/0.4136, allocations: 4.932 MB / 0.6039 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000138/0.4137, allocations: 5.281 kB / 0.6039 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00089/0.4146, allocations: 154.9 kB / 0.6041 GB, free: 10.49 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001609/0.4147, allocations: 156.3 kB / 0.6042 GB, free: 10.47 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008126/0.4229, allocations: 4.044 MB / 0.6082 GB, free: 8.332 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0291/0.452, allocations: 13.81 MB / 0.6217 GB, free: 10.7 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005579/0.4576, allocations: 2.735 MB / 0.6244 GB, free: 8.117 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003928/0.4615, allocations: 1.799 MB / 0.6261 GB, free: 6.332 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00888/0.4704, allocations: 3.701 MB / 0.6297 GB, free: 2.637 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.343e-05/0.4704, allocations: 43.88 kB / 0.6298 GB, free: 2.586 MB / 414.1 MB Notification: Performance of pre-optimization done (n=137): time 4.017e-06/0.4704, allocations: 3.938 kB / 0.6298 GB, free: 2.582 MB / 414.1 MB Notification: Performance of matching and sorting (n=159): time 0.01655/0.487, allocations: 6.236 MB / 0.6359 GB, free: 12.31 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.472e-05/0.487, allocations: 68.72 kB / 0.6359 GB, free: 12.23 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005211/0.4922, allocations: 2.255 MB / 0.6381 GB, free: 9.945 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002924/0.4925, allocations: 53.7 kB / 0.6382 GB, free: 9.887 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001815/0.4944, allocations: 1.793 MB / 0.6399 GB, free: 8.09 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009387/0.4953, allocations: 0.5836 MB / 0.6405 GB, free: 7.512 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001222/0.4965, allocations: 420 kB / 0.6409 GB, free: 7.094 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.4967, allocations: 302.9 kB / 0.6412 GB, free: 6.797 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001724/0.4984, allocations: 0.832 MB / 0.642 GB, free: 5.961 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002476/0.5009, allocations: 1.634 MB / 0.6436 GB, free: 3.973 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004274/0.5051, allocations: 2.613 MB / 0.6462 GB, free: 1.027 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.662e-05/0.5052, allocations: 8 kB / 0.6462 GB, free: 1.02 MB / 430.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.006172/0.5113, allocations: 3.059 MB / 0.6491 GB, free: 13.95 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.035e-05/0.5114, allocations: 16 kB / 0.6492 GB, free: 13.93 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.483e-05/0.5114, allocations: 28.03 kB / 0.6492 GB, free: 13.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009871/0.5124, allocations: 338.3 kB / 0.6495 GB, free: 13.56 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001852/0.5143, allocations: 0.4914 MB / 0.65 GB, free: 13.07 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006806/0.5211, allocations: 5.019 MB / 0.6549 GB, free: 7.84 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002322/0.5234, allocations: 99.88 kB / 0.655 GB, free: 7.742 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003597/0.5237, allocations: 104 kB / 0.6551 GB, free: 7.641 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 111 * 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 (261): * Single equations (assignments): 258 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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): 2 systems {(2,13,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002563/0.5263, allocations: 1.13 MB / 0.6562 GB, free: 6.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006671/0.527, allocations: 262.3 kB / 0.6564 GB, free: 6.242 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004845/0.5318, allocations: 2.314 MB / 0.6587 GB, free: 3.902 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.59e-05/0.5318, allocations: 16.19 kB / 0.6587 GB, free: 3.887 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.515e-05/0.5319, allocations: 4 kB / 0.6587 GB, free: 3.883 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.349e-05/0.5319, allocations: 15.91 kB / 0.6587 GB, free: 3.867 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01157/0.5435, allocations: 5.284 MB / 0.6639 GB, free: 14.54 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-05/0.5435, allocations: 4 kB / 0.6639 GB, free: 14.53 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001235/0.5447, allocations: 271.8 kB / 0.6642 GB, free: 14.27 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00097/0.5457, allocations: 374.2 kB / 0.6645 GB, free: 13.89 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001408/0.5458, allocations: 35.98 kB / 0.6646 GB, free: 13.86 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008062/0.5539, allocations: 7.031 MB / 0.6714 GB, free: 6.496 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.051e-06/0.5539, allocations: 3.938 kB / 0.6714 GB, free: 6.492 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006444/0.5603, allocations: 3.452 MB / 0.6748 GB, free: 2.996 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00154/0.5619, allocations: 438.3 kB / 0.6752 GB, free: 2.566 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007965/0.5627, allocations: 36.06 kB / 0.6752 GB, free: 2.531 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001488/0.5641, allocations: 59.97 kB / 0.6753 GB, free: 2.473 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003373/0.5645, allocations: 129 kB / 0.6754 GB, free: 2.344 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001282/0.5646, allocations: 43.98 kB / 0.6755 GB, free: 2.301 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003349/0.568, allocations: 1.496 MB / 0.6769 GB, free: 0.7891 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.568, allocations: 0 / 0.6769 GB, free: 0.7891 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003248/0.5712, allocations: 0.6523 MB / 0.6776 GB, free: 140 kB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.stator.stray.Phi.re,smee.stator.stray.Phi.im,constantTorque.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 {(2,12,100.0%), (1,8,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006689/0.5779, allocations: 4.062 MB / 0.6815 GB, free: 12.02 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004495/0.5824, allocations: 2.337 MB / 0.6838 GB, free: 9.656 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.5824, allocations: 4 kB / 0.6838 GB, free: 9.652 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002393/0.5848, allocations: 1.379 MB / 0.6852 GB, free: 8.234 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0036/0.5884, allocations: 0.5718 MB / 0.6857 GB, free: 7.668 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05032/0.6387, allocations: 23.78 MB / 0.7089 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003671/0.6424, allocations: 1.987 MB / 0.7109 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002142/0.6445, allocations: 0.5122 MB / 0.7114 GB, free: 12.28 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00234/0.6469, allocations: 1.374 MB / 0.7127 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of SimCode: time 1.001e-06/0.6469, allocations: 0 / 0.7127 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.327/0.9739, allocations: 61.77 MB / 0.7731 GB, free: 176.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.96/14.93, allocations: 5.094 kB / 0.7731 GB, free: 176.7 MB / 0.545 GB " [Timeout remaining time 645] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3_res.csv --start-time 0 --stop-time 0.3 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.000100033 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.76216876320541] Failed to read output from testmodel.py, exit status != 0: 15.084016369190067 15.098961773 14.723344541 Calling exit ...