Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.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.001361/0.001361, allocations: 106.6 kB / 18.94 MB, free: 2.957 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.496/1.496, allocations: 230.6 MB / 252.6 MB, free: 8.316 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.002581/0.002581, allocations: 207.7 kB / 309.2 MB, free: 3.16 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.043/0.043, allocations: 8.918 MB / 374.6 MB, free: 1.906 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.SMPM_CurrentSource,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource",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.002576/0.002576, allocations: 87.81 kB / 0.4892 GB, free: 7.328 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2911/0.2937, allocations: 55.6 MB / 0.5435 GB, free: 26.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.02278/0.3165, allocations: 28.94 MB / 0.5718 GB, free: 5.945 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01665/0.3331, allocations: 8.592 MB / 0.5802 GB, free: 15.76 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006717/0.3398, allocations: 255.9 kB / 0.5804 GB, free: 15.68 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02315/0.363, allocations: 8.271 MB / 0.5885 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01041/0.3734, allocations: 2.928 MB / 0.5914 GB, free: 8.297 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006792/0.3802, allocations: 1.936 MB / 0.5933 GB, free: 6.762 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01744/0.3976, allocations: 10.15 MB / 0.6032 GB, free: 15.95 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04122/0.4389, allocations: 14.04 MB / 0.6169 GB, free: 1.777 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01406/0.4529, allocations: 5.506 MB / 0.6223 GB, free: 12.25 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01612/0.469, allocations: 6.156 MB / 0.6283 GB, free: 6.078 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005397/0.4744, allocations: 1.543 MB / 0.6298 GB, free: 4.535 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007318/0.4818, allocations: 1.917 MB / 0.6317 GB, free: 2.621 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006137/0.4879, allocations: 2.993 MB / 0.6346 GB, free: 15.62 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01367/0.5016, allocations: 5.864 MB / 0.6403 GB, free: 9.734 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03304/0.5346, allocations: 20.68 MB / 0.6605 GB, free: 4.98 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.436e-06/0.5346, allocations: 4 kB / 0.6605 GB, free: 4.977 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.534e-06/0.5346, allocations: 0 / 0.6605 GB, free: 4.977 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0006322/0.5352, allocations: 0 / 0.6605 GB, free: 4.977 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2602 * Number of variables: 2602 Notification: Performance of Generate backend data structure: time 0.03505/0.5703, allocations: 12.02 MB / 0.6722 GB, free: 8.863 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.886e-05/0.5703, allocations: 8.031 kB / 0.6723 GB, free: 8.855 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005026/0.5754, allocations: 1.345 MB / 0.6736 GB, free: 7.5 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03204/0.6074, allocations: 5.605 MB / 0.679 GB, free: 1.883 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01556/0.623, allocations: 6.391 MB / 0.6853 GB, free: 11.4 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007781/0.6237, allocations: 0.7103 MB / 0.686 GB, free: 10.69 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003312/0.6271, allocations: 0.9256 MB / 0.6869 GB, free: 9.762 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4516/1.079, allocations: 15.1 MB / 0.7016 GB, free: 102.2 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003324/1.079, allocations: 18.86 kB / 0.7016 GB, free: 102.2 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002176/1.081, allocations: 392.9 kB / 0.702 GB, free: 101.9 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000532/1.082, allocations: 0.515 MB / 0.7025 GB, free: 101.8 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02735/1.109, allocations: 13.78 MB / 0.716 GB, free: 96.73 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07932/1.188, allocations: 46.54 MB / 0.7614 GB, free: 66.37 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01298/1.201, allocations: 8.261 MB / 0.7695 GB, free: 61.97 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00392/1.205, allocations: 2.645 MB / 0.7721 GB, free: 59.33 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004653/1.206, allocations: 110.8 kB / 0.7722 GB, free: 59.24 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.671e-05/1.206, allocations: 69.48 kB / 0.7723 GB, free: 59.16 MB / 494.1 MB Notification: Performance of pre-optimization done (n=372): time 9.839e-06/1.206, allocations: 3.938 kB / 0.7723 GB, free: 59.16 MB / 494.1 MB Notification: Performance of matching and sorting (n=380): time 0.03036/1.236, allocations: 14.66 MB / 0.7866 GB, free: 44.85 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.821e-05/1.236, allocations: 106.2 kB / 0.7867 GB, free: 44.73 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00514/1.241, allocations: 3.769 MB / 0.7904 GB, free: 41.03 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004455/1.242, allocations: 85.7 kB / 0.7904 GB, free: 40.94 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001639/1.243, allocations: 4.228 MB / 0.7946 GB, free: 36.85 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009957/1.244, allocations: 1.374 MB / 0.7959 GB, free: 35.5 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001438/1.246, allocations: 1.172 MB / 0.7971 GB, free: 34.31 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.153e-05/1.246, allocations: 305.1 kB / 0.7973 GB, free: 34.01 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003393/1.249, allocations: 2.577 MB / 0.7999 GB, free: 31.43 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004366/1.254, allocations: 5.062 MB / 0.8048 GB, free: 25.2 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008341/1.262, allocations: 8.269 MB / 0.8129 GB, free: 15.75 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.331e-05/1.262, allocations: 24 kB / 0.8129 GB, free: 15.73 MB / 494.1 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01316/1.275, allocations: 8.647 MB / 0.8213 GB, free: 7.047 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001036/1.275, allocations: 40 kB / 0.8214 GB, free: 7.008 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001291/1.275, allocations: 80 kB / 0.8215 GB, free: 6.93 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002274/1.278, allocations: 0.8666 MB / 0.8223 GB, free: 6.059 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004626/1.282, allocations: 1.369 MB / 0.8236 GB, free: 4.688 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01157/1.294, allocations: 8.829 MB / 0.8323 GB, free: 11.63 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004095/1.298, allocations: 335.5 kB / 0.8326 GB, free: 11.3 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008311/1.299, allocations: 308 kB / 0.8329 GB, free: 11 MB / 0.4982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 376 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (720): * Single equations (assignments): 718 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (8,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006351/1.305, allocations: 3.509 MB / 0.8363 GB, free: 7.48 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001138/1.306, allocations: 437.2 kB / 0.8367 GB, free: 7.051 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01134/1.318, allocations: 5.838 MB / 0.8424 GB, free: 1.176 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-05/1.318, allocations: 43.94 kB / 0.8425 GB, free: 1.133 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.586e-05/1.318, allocations: 8 kB / 0.8425 GB, free: 1.125 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-05/1.318, allocations: 15.94 kB / 0.8425 GB, free: 1.109 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0293/1.347, allocations: 14.5 MB / 0.8566 GB, free: 2.582 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.79e-05/1.347, allocations: 4 kB / 0.8567 GB, free: 2.578 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002837/1.35, allocations: 0.667 MB / 0.8573 GB, free: 1.91 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002229/1.352, allocations: 0.7289 MB / 0.858 GB, free: 1.176 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003312/1.352, allocations: 83.97 kB / 0.8581 GB, free: 1.094 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01144/1.364, allocations: 7.851 MB / 0.8658 GB, free: 9.023 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.773e-06/1.364, allocations: 7.938 kB / 0.8658 GB, free: 9.016 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01472/1.379, allocations: 8.508 MB / 0.8741 GB, free: 412 kB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002826/1.381, allocations: 0.8529 MB / 0.8749 GB, free: 15.55 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008417/1.382, allocations: 68 kB / 0.875 GB, free: 15.48 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002126/1.384, allocations: 179.9 kB / 0.8751 GB, free: 15.31 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005943/1.385, allocations: 266.5 kB / 0.8754 GB, free: 15.05 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002829/1.385, allocations: 115.9 kB / 0.8755 GB, free: 14.93 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005105/1.39, allocations: 2.528 MB / 0.878 GB, free: 12.42 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.3e-07/1.39, allocations: 0 / 0.878 GB, free: 12.42 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007008/1.397, allocations: 1.562 MB / 0.8795 GB, free: 10.86 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 2 (smpm.inertiaRotor.w,quadraticTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (362): * Single equations (assignments): 360 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01555/1.413, allocations: 9.226 MB / 0.8885 GB, free: 1.523 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01204/1.425, allocations: 6.322 MB / 0.8947 GB, free: 11.17 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 8.265e-06/1.425, allocations: 0 / 0.8947 GB, free: 11.17 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.00579/1.431, allocations: 2.762 MB / 0.8974 GB, free: 8.379 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00642/1.437, allocations: 0.9657 MB / 0.8983 GB, free: 7.441 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3036/1.741, allocations: 52.81 MB / 0.9499 GB, free: 175.6 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008384/1.749, allocations: 5.978 MB / 0.9557 GB, free: 173.3 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.004609/1.754, allocations: 1.869 MB / 0.9576 GB, free: 173.2 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004247/1.758, allocations: 3.234 MB / 0.9607 GB, free: 170.5 MB / 0.5763 GB Notification: Performance of SimCode: time 1.102e-06/1.758, allocations: 0 / 0.9607 GB, free: 170.5 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1781/1.936, allocations: 127.1 MB / 1.085 GB, free: 54.27 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.64/23.58, allocations: 11.86 kB / 1.085 GB, free: 54.25 MB / 0.5763 GB " [Timeout remaining time 636] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 26.991144774998247] Failed to read output from testmodel.py, exit status != 0: 23.75935184300033 23.778749061 23.239935576 Calling exit ...