Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.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.001403/0.001403, allocations: 101.2 kB / 16.45 MB, free: 6.5 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.498/1.498, allocations: 230.6 MB / 249.8 MB, free: 9.223 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.001731/0.001731, allocations: 213.7 kB / 306 MB, free: 4.309 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.04094/0.04094, allocations: 8.909 MB / 371 MB, free: 3.445 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_Synchronization1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1",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.002456/0.002456, allocations: 87.88 kB / 495.8 MB, free: 9.812 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.348/0.3504, allocations: 55.56 MB / 0.5384 GB, free: 26.63 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization1): time 0.01495/0.3654, allocations: 16.51 MB / 0.5545 GB, free: 14.79 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01211/0.3775, allocations: 5.59 MB / 0.56 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004144/0.3816, allocations: 116.6 kB / 0.5601 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004409/0.386, allocations: 1.272 MB / 0.5613 GB, free: 9.98 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/SynchronousMachines/SMEE_Synchronization1.mo:18:3-19:30:writable] Warning: Conditional component 'ir' is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.00631/0.3924, allocations: 1.583 MB / 0.5629 GB, free: 8.934 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003315/0.3957, allocations: 1.027 MB / 0.5639 GB, free: 8.285 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009675/0.4053, allocations: 4.744 MB / 0.5685 GB, free: 5.82 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004623/0.41, allocations: 2.455 MB / 0.5709 GB, free: 4.664 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004652/0.4146, allocations: 2.178 MB / 0.573 GB, free: 3.586 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005732/0.4203, allocations: 2.596 MB / 0.5756 GB, free: 2.324 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002296/0.4226, allocations: 0.571 MB / 0.5761 GB, free: 2.324 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004013/0.4267, allocations: 0.8037 MB / 0.5769 GB, free: 2.242 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001865/0.4285, allocations: 1.303 MB / 0.5782 GB, free: 1.398 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004989/0.4335, allocations: 2.448 MB / 0.5806 GB, free: 15.76 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01394/0.4474, allocations: 7.569 MB / 0.588 GB, free: 10.41 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.4475, allocations: 5.375 kB / 0.588 GB, free: 10.4 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4475, allocations: 0 / 0.588 GB, free: 10.4 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003599/0.4478, allocations: 0 / 0.588 GB, free: 10.4 MB / 398.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.02113/0.4689, allocations: 5.128 MB / 0.593 GB, free: 6.043 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.252e-05/0.469, allocations: 8.031 kB / 0.593 GB, free: 6.035 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001242/0.4702, allocations: 0.5609 MB / 0.5935 GB, free: 5.465 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005844/0.4761, allocations: 0.978 MB / 0.5945 GB, free: 4.484 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008284/0.4844, allocations: 2.885 MB / 0.5973 GB, free: 1.547 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000328/0.4847, allocations: 275.8 kB / 0.5976 GB, free: 1.277 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001406/0.4861, allocations: 371.9 kB / 0.5979 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01155/0.4977, allocations: 4.776 MB / 0.6026 GB, free: 12.09 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.059e-05/0.4977, allocations: 11.95 kB / 0.6026 GB, free: 12.08 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000386/0.4981, allocations: 152 kB / 0.6027 GB, free: 11.93 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001732/0.4983, allocations: 155.3 kB / 0.6029 GB, free: 11.78 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008712/0.507, allocations: 4.05 MB / 0.6069 GB, free: 7.727 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02996/0.537, allocations: 15.95 MB / 0.6224 GB, free: 7.211 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007443/0.5444, allocations: 7.045 MB / 0.6293 GB, free: 15.23 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003944/0.5484, allocations: 1.822 MB / 0.6311 GB, free: 13.41 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008941/0.5573, allocations: 4.715 MB / 0.6357 GB, free: 8.496 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.634e-05/0.5573, allocations: 43.88 kB / 0.6357 GB, free: 8.441 MB / 446.1 MB Notification: Performance of pre-optimization done (n=137): time 2.896e-06/0.5573, allocations: 4 kB / 0.6357 GB, free: 8.438 MB / 446.1 MB Notification: Performance of matching and sorting (n=159): time 0.01619/0.5735, allocations: 6.701 MB / 0.6423 GB, free: 1.586 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.434e-05/0.5736, allocations: 72.7 kB / 0.6423 GB, free: 1.504 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003979/0.5776, allocations: 2.213 MB / 0.6445 GB, free: 15.26 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001796/0.5778, allocations: 49.7 kB / 0.6446 GB, free: 15.2 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00148/0.5792, allocations: 1.795 MB / 0.6463 GB, free: 13.39 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005799/0.5798, allocations: 0.5733 MB / 0.6469 GB, free: 12.81 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006761/0.5805, allocations: 412 kB / 0.6473 GB, free: 12.4 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.5806, allocations: 309.1 kB / 0.6476 GB, free: 12.1 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001497/0.5821, allocations: 0.836 MB / 0.6484 GB, free: 11.26 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002084/0.5842, allocations: 1.605 MB / 0.6499 GB, free: 9.301 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003784/0.588, allocations: 2.612 MB / 0.6525 GB, free: 6.348 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.334e-05/0.588, allocations: 8 kB / 0.6525 GB, free: 6.34 MB / 462.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.005792/0.5938, allocations: 3.129 MB / 0.6556 GB, free: 3.176 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.486e-05/0.5938, allocations: 12 kB / 0.6556 GB, free: 3.164 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.948e-05/0.5939, allocations: 31.98 kB / 0.6556 GB, free: 3.133 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009974/0.5949, allocations: 350.5 kB / 0.6559 GB, free: 2.781 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001838/0.5967, allocations: 0.4953 MB / 0.6564 GB, free: 2.285 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006222/0.6029, allocations: 5.281 MB / 0.6616 GB, free: 12.73 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002342/0.6053, allocations: 96.02 kB / 0.6617 GB, free: 12.63 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002859/0.6056, allocations: 108 kB / 0.6618 GB, free: 12.53 MB / 478.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.002393/0.608, allocations: 1.13 MB / 0.6629 GB, free: 11.39 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007258/0.6087, allocations: 258.4 kB / 0.6631 GB, free: 11.13 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004972/0.6136, allocations: 2.472 MB / 0.6655 GB, free: 8.602 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.746e-05/0.6137, allocations: 16 kB / 0.6655 GB, free: 8.586 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.195e-05/0.6137, allocations: 4 kB / 0.6655 GB, free: 8.582 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.815e-05/0.6137, allocations: 11.91 kB / 0.6656 GB, free: 8.57 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01142/0.6251, allocations: 5.824 MB / 0.6712 GB, free: 2.613 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.857e-06/0.6251, allocations: 4 kB / 0.6713 GB, free: 2.609 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001242/0.6264, allocations: 263.7 kB / 0.6715 GB, free: 2.352 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001036/0.6274, allocations: 375 kB / 0.6719 GB, free: 1.977 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00011/0.6275, allocations: 39.98 kB / 0.6719 GB, free: 1.938 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00933/0.6368, allocations: 7.412 MB / 0.6791 GB, free: 10.11 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.113e-06/0.6369, allocations: 7.969 kB / 0.6791 GB, free: 10.1 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007531/0.6444, allocations: 3.592 MB / 0.6827 GB, free: 6.422 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001599/0.646, allocations: 0.5071 MB / 0.6831 GB, free: 5.895 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004018/0.6464, allocations: 36 kB / 0.6832 GB, free: 5.859 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001127/0.6475, allocations: 59.95 kB / 0.6832 GB, free: 5.801 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003246/0.6478, allocations: 121.1 kB / 0.6834 GB, free: 5.684 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001002/0.6479, allocations: 39.98 kB / 0.6834 GB, free: 5.645 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002787/0.6507, allocations: 1.492 MB / 0.6848 GB, free: 4.137 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.6507, allocations: 0 / 0.6848 GB, free: 4.137 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003619/0.6543, allocations: 0.6601 MB / 0.6855 GB, free: 3.477 MB / 494.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.007015/0.6614, allocations: 4.213 MB / 0.6896 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.004855/0.6662, allocations: 2.409 MB / 0.692 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.374e-06/0.6662, allocations: 5 kB / 0.692 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002424/0.6686, allocations: 1.366 MB / 0.6933 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003224/0.6719, allocations: 0.5803 MB / 0.6939 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.305/0.9769, allocations: 23.94 MB / 0.7172 GB, free: 132.7 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002245/0.9791, allocations: 2.527 MB / 0.7197 GB, free: 131.6 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001856/0.981, allocations: 0.5143 MB / 0.7202 GB, free: 131.6 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001568/0.9826, allocations: 1.368 MB / 0.7215 GB, free: 130.5 MB / 0.4981 GB Notification: Performance of SimCode: time 1.433e-06/0.9826, allocations: 0 / 0.7215 GB, free: 130.5 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1166/1.099, allocations: 59.06 MB / 0.7792 GB, free: 89.56 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.22/16.31, allocations: 4.062 kB / 0.7792 GB, free: 89.55 MB / 0.4981 GB " [Timeout remaining time 644] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1_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_Synchronization1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 19.422659586009104] Failed to read output from testmodel.py, exit status != 0: 16.436754761001794 16.452678866 16.002229255 Calling exit ...