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.001512/0.001512, allocations: 108.6 kB / 16.45 MB, free: 6.453 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.487/1.487, allocations: 230.6 MB / 249.8 MB, free: 9.207 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.00169/0.00169, allocations: 208.3 kB / 306 MB, free: 4.293 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.04339/0.04339, allocations: 8.912 MB / 371 MB, free: 3.426 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.002523/0.002523, allocations: 90.69 kB / 495.8 MB, free: 9.809 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3102/0.3127, allocations: 55.56 MB / 0.5384 GB, free: 26.41 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.02275/0.3355, allocations: 28.88 MB / 0.5666 GB, free: 5.566 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01753/0.353, allocations: 8.568 MB / 0.575 GB, free: 15.4 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00614/0.3591, allocations: 254.6 kB / 0.5752 GB, free: 15.32 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02197/0.3811, allocations: 8.239 MB / 0.5833 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01256/0.3937, allocations: 2.862 MB / 0.5861 GB, free: 8.473 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00777/0.4014, allocations: 1.892 MB / 0.5879 GB, free: 6.973 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01728/0.4187, allocations: 10.07 MB / 0.5977 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03171/0.4504, allocations: 16.32 MB / 0.6137 GB, free: 0.6719 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01068/0.4611, allocations: 5.478 MB / 0.619 GB, free: 11.18 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0117/0.4728, allocations: 6.14 MB / 0.625 GB, free: 5.016 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00555/0.4784, allocations: 1.539 MB / 0.6265 GB, free: 3.477 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007804/0.4862, allocations: 1.906 MB / 0.6284 GB, free: 1.574 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005933/0.4921, allocations: 2.996 MB / 0.6313 GB, free: 14.57 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01623/0.5083, allocations: 5.86 MB / 0.637 GB, free: 8.688 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03434/0.5427, allocations: 20.69 MB / 0.6572 GB, free: 3.93 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.915e-06/0.5427, allocations: 4 kB / 0.6572 GB, free: 3.926 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.5427, allocations: 0 / 0.6572 GB, free: 3.926 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0006796/0.5434, allocations: 4 kB / 0.6572 GB, free: 3.922 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.04193/0.5853, allocations: 12.09 MB / 0.6691 GB, free: 7.719 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.801e-05/0.5854, allocations: 8.031 kB / 0.6691 GB, free: 7.711 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006075/0.5914, allocations: 1.349 MB / 0.6704 GB, free: 6.352 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03353/0.625, allocations: 5.601 MB / 0.6758 GB, free: 0.7383 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01545/0.6404, allocations: 6.35 MB / 0.682 GB, free: 10.3 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008808/0.6413, allocations: 0.7064 MB / 0.6827 GB, free: 9.598 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003979/0.6453, allocations: 0.9334 MB / 0.6836 GB, free: 8.664 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.499/1.144, allocations: 15.1 MB / 0.6984 GB, free: 102 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003993/1.145, allocations: 22 kB / 0.6984 GB, free: 102 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002906/1.148, allocations: 394 kB / 0.6988 GB, free: 101.7 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005519/1.148, allocations: 0.5144 MB / 0.6993 GB, free: 101.7 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02756/1.176, allocations: 13.77 MB / 0.7127 GB, free: 96.57 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08236/1.258, allocations: 48.1 MB / 0.7597 GB, free: 64.29 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01675/1.275, allocations: 28.44 MB / 0.7875 GB, free: 34.68 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004066/1.279, allocations: 2.641 MB / 0.7901 GB, free: 32.03 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004168/1.279, allocations: 337.4 kB / 0.7904 GB, free: 31.66 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.363e-05/1.279, allocations: 73.48 kB / 0.7905 GB, free: 31.58 MB / 494.1 MB Notification: Performance of pre-optimization done (n=372): time 5.33e-06/1.279, allocations: 0 / 0.7905 GB, free: 31.58 MB / 494.1 MB Notification: Performance of matching and sorting (n=380): time 0.02991/1.309, allocations: 14.9 MB / 0.805 GB, free: 16.99 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.752e-05/1.309, allocations: 94.33 kB / 0.8051 GB, free: 16.89 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005098/1.314, allocations: 3.773 MB / 0.8088 GB, free: 13.18 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006362/1.315, allocations: 85.7 kB / 0.8089 GB, free: 13.09 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001755/1.317, allocations: 4.23 MB / 0.813 GB, free: 9 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001218/1.318, allocations: 1.366 MB / 0.8143 GB, free: 7.648 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001643/1.32, allocations: 1.176 MB / 0.8155 GB, free: 6.461 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 3.865e-05/1.32, allocations: 309.1 kB / 0.8158 GB, free: 6.156 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003414/1.323, allocations: 2.573 MB / 0.8183 GB, free: 3.578 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005384/1.328, allocations: 5.063 MB / 0.8232 GB, free: 13.35 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01305/1.342, allocations: 8.273 MB / 0.8313 GB, free: 3.895 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.48e-05/1.342, allocations: 24 kB / 0.8313 GB, free: 3.871 MB / 0.4982 GB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01961/1.361, allocations: 8.639 MB / 0.8398 GB, free: 11.2 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 8.375e-05/1.361, allocations: 42.5 kB / 0.8398 GB, free: 11.16 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000165/1.361, allocations: 80 kB / 0.8399 GB, free: 11.08 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002751/1.364, allocations: 0.8703 MB / 0.8407 GB, free: 10.21 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005337/1.37, allocations: 1.365 MB / 0.8421 GB, free: 8.84 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01381/1.383, allocations: 9.037 MB / 0.8509 GB, free: 15.52 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004654/1.388, allocations: 327.6 kB / 0.8512 GB, free: 15.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001033/1.389, allocations: 304 kB / 0.8515 GB, free: 14.9 MB / 0.5294 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.007516/1.397, allocations: 3.515 MB / 0.8549 GB, free: 11.38 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001478/1.398, allocations: 437.2 kB / 0.8553 GB, free: 10.95 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01285/1.411, allocations: 5.831 MB / 0.861 GB, free: 5.078 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.95e-05/1.411, allocations: 39.94 kB / 0.8611 GB, free: 5.039 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.93e-05/1.411, allocations: 12 kB / 0.8611 GB, free: 5.027 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.013e-05/1.411, allocations: 27.86 kB / 0.8611 GB, free: 5 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03226/1.443, allocations: 14.47 MB / 0.8752 GB, free: 6.496 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.667e-05/1.443, allocations: 4 kB / 0.8753 GB, free: 6.492 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003097/1.446, allocations: 0.6748 MB / 0.8759 GB, free: 5.816 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002373/1.449, allocations: 0.7212 MB / 0.8766 GB, free: 5.09 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00048/1.449, allocations: 87.97 kB / 0.8767 GB, free: 5.004 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01154/1.461, allocations: 8.065 MB / 0.8846 GB, free: 12.66 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.134e-06/1.461, allocations: 7.938 kB / 0.8846 GB, free: 12.66 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0152/1.476, allocations: 8.515 MB / 0.8929 GB, free: 4.035 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002345/1.478, allocations: 0.9041 MB / 0.8938 GB, free: 3.109 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007293/1.479, allocations: 71.89 kB / 0.8938 GB, free: 3.039 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001972/1.481, allocations: 179.8 kB / 0.894 GB, free: 2.863 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005605/1.482, allocations: 258.8 kB / 0.8943 GB, free: 2.609 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002533/1.482, allocations: 115.9 kB / 0.8944 GB, free: 2.496 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.004272/1.486, allocations: 2.524 MB / 0.8968 GB, free: 15.99 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1e-07/1.486, allocations: 0 / 0.8968 GB, free: 15.99 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.005671/1.492, allocations: 1.562 MB / 0.8984 GB, free: 14.43 MB / 0.5763 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.01479/1.507, allocations: 9.226 MB / 0.9074 GB, free: 5.098 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.241/1.748, allocations: 6.307 MB / 0.9135 GB, free: 196 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 9.347e-06/1.748, allocations: 0 / 0.9135 GB, free: 196 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.0056/1.753, allocations: 2.764 MB / 0.9162 GB, free: 195.7 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005777/1.759, allocations: 0.9617 MB / 0.9172 GB, free: 195.6 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09623/1.855, allocations: 52.69 MB / 0.9686 GB, free: 167.5 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01029/1.865, allocations: 5.969 MB / 0.9745 GB, free: 162.8 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.004931/1.87, allocations: 1.871 MB / 0.9763 GB, free: 161.4 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005111/1.876, allocations: 3.237 MB / 0.9794 GB, free: 158.2 MB / 0.5763 GB Notification: Performance of SimCode: time 2.024e-06/1.876, allocations: 0 / 0.9794 GB, free: 158.2 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2204/2.096, allocations: 121.8 MB / 1.098 GB, free: 36.91 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.86/22.96, allocations: 3.938 kB / 1.098 GB, free: 36.9 MB / 0.5763 GB " [Timeout remaining time 637] (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.284787306998624] Failed to read output from testmodel.py, exit status != 0: 23.106201959992177 23.11482661 22.569353538 Calling exit ...