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.001435/0.001435, allocations: 103 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.555/1.555, allocations: 230.6 MB / 249.8 MB, free: 9.227 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.002176/0.002176, allocations: 212.5 kB / 306 MB, free: 4.297 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.04144/0.04144, allocations: 8.913 MB / 371 MB, free: 3.438 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.00245/0.00245, allocations: 87.88 kB / 495.7 MB, free: 9.824 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3805/0.383, allocations: 55.57 MB / 0.5384 GB, free: 26.62 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_DOL): time 0.01552/0.3985, allocations: 17.42 MB / 0.5554 GB, free: 14.14 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01136/0.4098, allocations: 5.743 MB / 0.561 GB, free: 9.918 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004514/0.4144, allocations: 128.4 kB / 0.5611 GB, free: 9.871 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004566/0.4189, allocations: 1.327 MB / 0.5624 GB, free: 9.18 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/SynchronousMachines/SMEE_DOL.mo:12:3-13:30:writable] Warning: Conditional component 'ir' is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.007011/0.4259, allocations: 1.636 MB / 0.564 GB, free: 8.094 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003629/0.4296, allocations: 1.107 MB / 0.5651 GB, free: 7.395 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008715/0.4383, allocations: 5.067 MB / 0.5701 GB, free: 4.762 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005388/0.4437, allocations: 2.935 MB / 0.5729 GB, free: 3.395 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005415/0.4491, allocations: 2.339 MB / 0.5752 GB, free: 2.242 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006798/0.4559, allocations: 2.818 MB / 0.578 GB, free: 0.875 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002558/0.4584, allocations: 0.6203 MB / 0.5786 GB, free: 0.875 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004514/0.463, allocations: 0.87 MB / 0.5794 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002648/0.4656, allocations: 1.438 MB / 0.5808 GB, free: 15.86 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009164/0.4748, allocations: 2.658 MB / 0.5834 GB, free: 14.09 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01675/0.4915, allocations: 8.195 MB / 0.5914 GB, free: 7.68 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.546e-06/0.4915, allocations: 0 / 0.5914 GB, free: 7.68 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.4915, allocations: 0 / 0.5914 GB, free: 7.68 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000405/0.4919, allocations: 0 / 0.5914 GB, free: 7.68 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: 1052 * Number of variables: 1052 Notification: Performance of Generate backend data structure: time 0.02352/0.5155, allocations: 5.552 MB / 0.5968 GB, free: 2.043 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.569e-05/0.5155, allocations: 12.03 kB / 0.5969 GB, free: 2.031 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002339/0.5178, allocations: 0.5557 MB / 0.5974 GB, free: 1.465 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006924/0.5248, allocations: 1.025 MB / 0.5984 GB, free: 448 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007919/0.5327, allocations: 3.087 MB / 0.6014 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004013/0.5331, allocations: 304.5 kB / 0.6017 GB, free: 13 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001686/0.5348, allocations: 399.9 kB / 0.6021 GB, free: 12.61 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01627/0.551, allocations: 5.229 MB / 0.6072 GB, free: 7.289 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001479/0.5512, allocations: 7.953 kB / 0.6072 GB, free: 7.281 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009853/0.5522, allocations: 172 kB / 0.6074 GB, free: 7.113 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000226/0.5524, allocations: 176 kB / 0.6075 GB, free: 6.938 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01105/0.5635, allocations: 4.47 MB / 0.6119 GB, free: 2.449 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03837/0.6018, allocations: 16.74 MB / 0.6282 GB, free: 1.219 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009147/0.611, allocations: 8.536 MB / 0.6366 GB, free: 7.602 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00449/0.6155, allocations: 1.99 MB / 0.6385 GB, free: 5.613 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01063/0.6261, allocations: 5.804 MB / 0.6442 GB, free: 15.48 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.359e-05/0.6261, allocations: 51.88 kB / 0.6442 GB, free: 15.41 MB / 462.1 MB Notification: Performance of pre-optimization done (n=158): time 2.995e-06/0.6261, allocations: 0 / 0.6442 GB, free: 15.41 MB / 462.1 MB Notification: Performance of matching and sorting (n=161): time 0.01565/0.6418, allocations: 6.386 MB / 0.6505 GB, free: 8.879 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.052e-05/0.6419, allocations: 76.64 kB / 0.6506 GB, free: 8.793 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00466/0.6465, allocations: 2.319 MB / 0.6528 GB, free: 6.449 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000325/0.6468, allocations: 53.7 kB / 0.6529 GB, free: 6.391 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001572/0.6484, allocations: 1.909 MB / 0.6547 GB, free: 4.461 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007375/0.6491, allocations: 0.581 MB / 0.6553 GB, free: 3.875 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008349/0.65, allocations: 399.9 kB / 0.6557 GB, free: 3.477 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.6501, allocations: 301.1 kB / 0.656 GB, free: 3.18 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001767/0.6519, allocations: 0.867 MB / 0.6568 GB, free: 2.309 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002429/0.6543, allocations: 1.571 MB / 0.6583 GB, free: 416 kB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004811/0.6591, allocations: 2.593 MB / 0.6609 GB, free: 13.5 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-05/0.6591, allocations: 4 kB / 0.6609 GB, free: 13.49 MB / 478.1 MB Notification: Performance of matching and sorting (n=276) (initialization): time 0.007683/0.6668, allocations: 3.003 MB / 0.6638 GB, free: 10.46 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.837e-05/0.6669, allocations: 12 kB / 0.6638 GB, free: 10.45 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.544e-05/0.6669, allocations: 24 kB / 0.6639 GB, free: 10.42 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000567/0.6675, allocations: 177.8 kB / 0.664 GB, free: 10.24 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002393/0.6699, allocations: 0.5265 MB / 0.6645 GB, free: 9.715 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003198/0.6731, allocations: 2.427 MB / 0.6669 GB, free: 7.141 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002562/0.6757, allocations: 116 kB / 0.667 GB, free: 7.027 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003516/0.676, allocations: 95.98 kB / 0.6671 GB, free: 6.934 MB / 478.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.003062/0.6791, allocations: 1.188 MB / 0.6683 GB, free: 5.734 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008915/0.68, allocations: 266.3 kB / 0.6685 GB, free: 5.473 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005628/0.6856, allocations: 2.527 MB / 0.671 GB, free: 2.887 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-05/0.6856, allocations: 16 kB / 0.671 GB, free: 2.871 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.53e-05/0.6856, allocations: 8 kB / 0.671 GB, free: 2.863 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.004e-05/0.6857, allocations: 7.969 kB / 0.671 GB, free: 2.855 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0146/0.7003, allocations: 5.921 MB / 0.6768 GB, free: 12.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.206e-05/0.7003, allocations: 4 kB / 0.6768 GB, free: 12.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001448/0.7017, allocations: 283.6 kB / 0.6771 GB, free: 12.52 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001095/0.7028, allocations: 360 kB / 0.6774 GB, free: 12.16 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001692/0.703, allocations: 43.92 kB / 0.6775 GB, free: 12.12 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00851/0.7115, allocations: 7.389 MB / 0.6847 GB, free: 4.328 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.7115, allocations: 0 / 0.6847 GB, free: 4.328 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007129/0.7186, allocations: 3.673 MB / 0.6883 GB, free: 0.5703 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001909/0.7205, allocations: 0.5148 MB / 0.6888 GB, free: 36 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006247/0.7212, allocations: 40.16 kB / 0.6888 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001332/0.7225, allocations: 83.88 kB / 0.6889 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000445/0.7229, allocations: 117.1 kB / 0.689 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001172/0.7231, allocations: 47.98 kB / 0.689 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003412/0.7265, allocations: 1.569 MB / 0.6906 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.01e-07/0.7265, allocations: 384 / 0.6906 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003468/0.7299, allocations: 0.6796 MB / 0.6912 GB, free: 13.48 MB / 0.4981 GB 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.007294/0.7372, allocations: 4.302 MB / 0.6954 GB, free: 9.086 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.004573/0.7418, allocations: 2.246 MB / 0.6976 GB, free: 6.816 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.005e-05/0.7418, allocations: 4 kB / 0.6976 GB, free: 6.812 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002742/0.7446, allocations: 1.417 MB / 0.699 GB, free: 5.355 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00352/0.7481, allocations: 0.6138 MB / 0.6996 GB, free: 4.746 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3223/1.07, allocations: 24.46 MB / 0.7235 GB, free: 127 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002582/1.073, allocations: 2.676 MB / 0.7261 GB, free: 125.9 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002192/1.075, allocations: 0.5521 MB / 0.7267 GB, free: 125.9 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001865/1.077, allocations: 1.493 MB / 0.7281 GB, free: 124.6 MB / 0.4981 GB Notification: Performance of SimCode: time 1.223e-06/1.077, allocations: 0 / 0.7281 GB, free: 124.6 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1073/1.184, allocations: 60.81 MB / 0.7875 GB, free: 77.97 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.84/17.03, allocations: 11.86 kB / 0.7875 GB, free: 77.96 MB / 0.4981 GB " [Timeout remaining time 643] (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: 20.751079762005247] Failed to read output from testmodel.py, exit status != 0: 17.149861243000487 17.166073797 16.670989095 Calling exit ...