Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.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.001327/0.001327, 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.387/1.387, 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.001526/0.001526, allocations: 204.7 kB / 309.2 MB, free: 3.121 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.04058/0.04058, allocations: 8.918 MB / 374.6 MB, free: 6.582 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_Synchronization2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2",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.00266/0.00266, allocations: 93.73 kB / 0.4892 GB, free: 44.72 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0827/0.08536, allocations: 55.6 MB / 0.5435 GB, free: 5.016 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.01846/0.1038, allocations: 14.32 MB / 0.5575 GB, free: 6.633 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01147/0.1153, allocations: 5.279 MB / 0.5626 GB, free: 1.332 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003409/0.1187, allocations: 115.4 kB / 0.5627 GB, free: 1.219 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004281/0.123, allocations: 1.204 MB / 0.5639 GB, free: 4 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2062/0.3292, allocations: 1.579 MB / 0.5654 GB, free: 9.777 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002587/0.3318, allocations: 1.003 MB / 0.5664 GB, free: 9.77 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005563/0.3374, allocations: 4.74 MB / 0.5711 GB, free: 9.766 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003402/0.3408, allocations: 1.91 MB / 0.5729 GB, free: 9.52 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004061/0.3448, allocations: 2.177 MB / 0.575 GB, free: 9.238 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005728/0.3506, allocations: 2.44 MB / 0.5774 GB, free: 8.812 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001781/0.3523, allocations: 0.5692 MB / 0.578 GB, free: 8.812 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002838/0.3552, allocations: 0.7782 MB / 0.5787 GB, free: 8.801 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001245/0.3564, allocations: 1.3 MB / 0.58 GB, free: 8.004 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00295/0.3594, allocations: 1.948 MB / 0.5819 GB, free: 6.914 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009302/0.3687, allocations: 7.602 MB / 0.5893 GB, free: 3.984 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.421e-06/0.3687, allocations: 0 / 0.5893 GB, free: 3.984 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3687, allocations: 4 kB / 0.5893 GB, free: 3.98 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001982/0.3689, allocations: 0 / 0.5893 GB, free: 3.98 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.01389/0.3828, allocations: 5.038 MB / 0.5943 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.753e-05/0.3828, allocations: 13.89 kB / 0.5943 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009253/0.3837, allocations: 0.5581 MB / 0.5948 GB, free: 240 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005282/0.389, allocations: 0.982 MB / 0.5958 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007437/0.3965, allocations: 2.794 MB / 0.5985 GB, free: 13.88 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002852/0.3967, allocations: 277.8 kB / 0.5988 GB, free: 13.75 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001156/0.3979, allocations: 366.4 kB / 0.5991 GB, free: 13.63 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01013/0.408, allocations: 4.937 MB / 0.6039 GB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.012e-05/0.4081, allocations: 10.33 kB / 0.604 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003804/0.4085, allocations: 151.4 kB / 0.6041 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001501/0.4087, allocations: 156.2 kB / 0.6042 GB, free: 10.48 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007504/0.4162, allocations: 4.043 MB / 0.6082 GB, free: 8.348 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03011/0.4463, allocations: 13.82 MB / 0.6217 GB, free: 10.72 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005704/0.452, allocations: 2.734 MB / 0.6244 GB, free: 8.141 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004092/0.4561, allocations: 1.809 MB / 0.6261 GB, free: 6.348 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00939/0.4655, allocations: 3.695 MB / 0.6297 GB, free: 2.656 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.623e-05/0.4655, allocations: 47.88 kB / 0.6298 GB, free: 2.602 MB / 414.1 MB Notification: Performance of pre-optimization done (n=137): time 4.008e-06/0.4655, allocations: 0 / 0.6298 GB, free: 2.602 MB / 414.1 MB Notification: Performance of matching and sorting (n=159): time 0.01481/0.4803, allocations: 6.234 MB / 0.6359 GB, free: 12.34 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.471e-05/0.4804, allocations: 64.72 kB / 0.6359 GB, free: 12.26 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004311/0.4847, allocations: 2.255 MB / 0.6381 GB, free: 9.977 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002055/0.4849, allocations: 57.7 kB / 0.6382 GB, free: 9.914 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001591/0.4865, allocations: 1.792 MB / 0.6399 GB, free: 8.117 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006189/0.4871, allocations: 0.5813 MB / 0.6405 GB, free: 7.543 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007601/0.4879, allocations: 408.1 kB / 0.6409 GB, free: 7.137 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.488, allocations: 305.1 kB / 0.6412 GB, free: 6.836 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001556/0.4895, allocations: 0.8399 MB / 0.642 GB, free: 5.992 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002162/0.4917, allocations: 1.636 MB / 0.6436 GB, free: 4.004 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003841/0.4955, allocations: 2.616 MB / 0.6462 GB, free: 1.055 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.68e-05/0.4956, allocations: 8 kB / 0.6462 GB, free: 1.047 MB / 430.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.005883/0.5015, allocations: 3.049 MB / 0.6491 GB, free: 13.98 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.986e-05/0.5015, allocations: 20.09 kB / 0.6492 GB, free: 13.96 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.949e-05/0.5015, allocations: 24 kB / 0.6492 GB, free: 13.94 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009642/0.5025, allocations: 342.3 kB / 0.6495 GB, free: 13.59 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001883/0.5044, allocations: 0.4953 MB / 0.65 GB, free: 13.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006038/0.5104, allocations: 5.012 MB / 0.6549 GB, free: 7.871 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002245/0.5127, allocations: 99.88 kB / 0.655 GB, free: 7.773 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003508/0.513, allocations: 107.9 kB / 0.6551 GB, free: 7.668 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.002497/0.5155, allocations: 1.13 MB / 0.6562 GB, free: 6.527 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007187/0.5162, allocations: 258.3 kB / 0.6564 GB, free: 6.273 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004995/0.5212, allocations: 2.324 MB / 0.6587 GB, free: 3.926 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.028e-05/0.5212, allocations: 16 kB / 0.6587 GB, free: 3.91 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.618e-05/0.5213, allocations: 4 kB / 0.6587 GB, free: 3.906 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.964e-05/0.5213, allocations: 7.969 kB / 0.6587 GB, free: 3.898 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01168/0.533, allocations: 5.283 MB / 0.6639 GB, free: 14.57 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.334e-05/0.533, allocations: 8 kB / 0.6639 GB, free: 14.56 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001239/0.5342, allocations: 271.8 kB / 0.6642 GB, free: 14.29 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009765/0.5352, allocations: 370.3 kB / 0.6645 GB, free: 13.92 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001566/0.5353, allocations: 39.98 kB / 0.6646 GB, free: 13.88 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00776/0.5431, allocations: 7.024 MB / 0.6714 GB, free: 6.535 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.414e-06/0.5431, allocations: 7.969 kB / 0.6714 GB, free: 6.527 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006105/0.5492, allocations: 3.451 MB / 0.6748 GB, free: 3.031 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001481/0.5507, allocations: 438.3 kB / 0.6752 GB, free: 2.602 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006657/0.5514, allocations: 39.98 kB / 0.6752 GB, free: 2.562 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001365/0.5527, allocations: 63.97 kB / 0.6753 GB, free: 2.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003021/0.553, allocations: 117.1 kB / 0.6754 GB, free: 2.383 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001169/0.5532, allocations: 55.97 kB / 0.6755 GB, free: 2.328 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002822/0.556, allocations: 1.492 MB / 0.6769 GB, free: 0.8203 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.556, allocations: 4 kB / 0.6769 GB, free: 0.8164 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002777/0.5587, allocations: 0.6523 MB / 0.6776 GB, free: 168 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.006428/0.5652, allocations: 4.059 MB / 0.6815 GB, free: 12.05 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004418/0.5696, allocations: 2.34 MB / 0.6838 GB, free: 9.684 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.112e-06/0.5696, allocations: 1.938 kB / 0.6838 GB, free: 9.684 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002319/0.5719, allocations: 1.374 MB / 0.6852 GB, free: 8.27 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003371/0.5753, allocations: 0.587 MB / 0.6857 GB, free: 7.688 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0456/0.6209, allocations: 23.76 MB / 0.7089 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00312/0.624, allocations: 1.987 MB / 0.7109 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001926/0.6259, allocations: 0.5122 MB / 0.7114 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002209/0.6281, allocations: 1.366 MB / 0.7127 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of SimCode: time 1.653e-06/0.6281, allocations: 0 / 0.7127 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3202/0.9483, allocations: 61.79 MB / 0.7731 GB, free: 176.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.05/14.99, allocations: 1.375 kB / 0.7731 GB, free: 176.7 MB / 0.545 GB " [Timeout remaining time 645] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2_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_Synchronization2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.748904745094478] Failed to read output from testmodel.py, exit status != 0: 15.139587345998734 15.154075865 14.782318402 Calling exit ...