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.001289/0.001289, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.379/1.379, allocations: 230.6 MB / 252.7 MB, free: 8.062 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.001613/0.001613, allocations: 214.1 kB / 309.2 MB, free: 2.938 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.03971/0.03971, allocations: 8.903 MB / 374.6 MB, free: 1.719 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.002415/0.002415, allocations: 87.38 kB / 0.4892 GB, free: 4.426 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09929/0.1017, allocations: 55.61 MB / 0.5435 GB, free: 4.852 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.02985/0.1316, allocations: 24.75 MB / 0.5676 GB, free: 11.98 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01644/0.148, allocations: 8.225 MB / 0.5757 GB, free: 3.73 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004793/0.1528, allocations: 254.7 kB / 0.5759 GB, free: 3.48 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01846/0.1713, allocations: 7.612 MB / 0.5833 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009612/0.1809, allocations: 2.851 MB / 0.5861 GB, free: 8.992 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005357/0.1862, allocations: 1.854 MB / 0.5879 GB, free: 7.141 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01304/0.1993, allocations: 10.13 MB / 0.5978 GB, free: 12.97 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02436/0.2236, allocations: 13.88 MB / 0.6114 GB, free: 14.95 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008559/0.2322, allocations: 5.506 MB / 0.6168 GB, free: 9.434 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01003/0.2422, allocations: 5.874 MB / 0.6225 GB, free: 3.539 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003833/0.246, allocations: 1.539 MB / 0.624 GB, free: 2 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005834/0.2519, allocations: 1.882 MB / 0.6258 GB, free: 120 kB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004929/0.2568, allocations: 3.004 MB / 0.6288 GB, free: 13.1 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009814/0.2666, allocations: 4.549 MB / 0.6332 GB, free: 8.535 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02571/0.2923, allocations: 20.78 MB / 0.6535 GB, free: 3.688 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/0.2923, allocations: 0 / 0.6535 GB, free: 3.688 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.2923, allocations: 3.938 kB / 0.6535 GB, free: 3.684 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004908/0.2928, allocations: 0 / 0.6535 GB, free: 3.684 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.2332/0.526, allocations: 12 MB / 0.6652 GB, free: 92.74 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.5261, allocations: 11.61 kB / 0.6652 GB, free: 92.74 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003494/0.5296, allocations: 1.342 MB / 0.6666 GB, free: 91.79 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02816/0.5577, allocations: 5.604 MB / 0.672 GB, free: 89.25 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01324/0.571, allocations: 6.387 MB / 0.6783 GB, free: 83.39 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005608/0.5715, allocations: 0.7057 MB / 0.679 GB, free: 82.69 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003161/0.5747, allocations: 0.9328 MB / 0.6799 GB, free: 81.77 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.029/0.6037, allocations: 15.26 MB / 0.6948 GB, free: 66.42 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003959/0.6041, allocations: 19.89 kB / 0.6948 GB, free: 66.4 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002253/0.6063, allocations: 387.7 kB / 0.6952 GB, free: 66.03 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003629/0.6067, allocations: 0.5116 MB / 0.6957 GB, free: 65.51 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02158/0.6283, allocations: 13.72 MB / 0.7091 GB, free: 51.77 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06132/0.6896, allocations: 42.68 MB / 0.7507 GB, free: 8.688 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01164/0.7012, allocations: 8.171 MB / 0.7587 GB, free: 1.73 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003609/0.7049, allocations: 2.633 MB / 0.7613 GB, free: 15.1 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003147/0.7052, allocations: 90.84 kB / 0.7614 GB, free: 15.01 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.171e-05/0.7052, allocations: 73.48 kB / 0.7615 GB, free: 14.93 MB / 478.1 MB Notification: Performance of pre-optimization done (n=372): time 6.912e-06/0.7053, allocations: 0 / 0.7615 GB, free: 14.93 MB / 478.1 MB Notification: Performance of matching and sorting (n=380): time 0.0319/0.7371, allocations: 14.61 MB / 0.7757 GB, free: 268 kB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.306e-05/0.7372, allocations: 90.39 kB / 0.7758 GB, free: 164 kB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006295/0.7435, allocations: 3.909 MB / 0.7796 GB, free: 12.26 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007087/0.7442, allocations: 89.64 kB / 0.7797 GB, free: 12.17 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003521/0.7478, allocations: 4.227 MB / 0.7838 GB, free: 7.902 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001787/0.7495, allocations: 1.375 MB / 0.7852 GB, free: 6.516 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001978/0.7515, allocations: 1.176 MB / 0.7863 GB, free: 5.328 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.7517, allocations: 305.1 kB / 0.7866 GB, free: 5.027 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004112/0.7558, allocations: 2.573 MB / 0.7891 GB, free: 2.449 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006266/0.762, allocations: 5.087 MB / 0.7941 GB, free: 12.19 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01137/0.7734, allocations: 8.257 MB / 0.8022 GB, free: 2.75 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.971e-05/0.7735, allocations: 24 kB / 0.8022 GB, free: 2.727 MB / 0.4981 GB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01512/0.7886, allocations: 8.612 MB / 0.8106 GB, free: 10.08 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 6.805e-05/0.7887, allocations: 44.53 kB / 0.8106 GB, free: 10.04 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001304/0.7888, allocations: 84 kB / 0.8107 GB, free: 9.957 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002313/0.7911, allocations: 0.8584 MB / 0.8116 GB, free: 9.09 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004686/0.7958, allocations: 1.365 MB / 0.8129 GB, free: 7.723 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01262/0.8084, allocations: 8.625 MB / 0.8213 GB, free: 14.85 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004172/0.8126, allocations: 335.6 kB / 0.8216 GB, free: 14.52 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006499/0.8132, allocations: 308 kB / 0.8219 GB, free: 14.22 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.0058/0.819, allocations: 3.513 MB / 0.8254 GB, free: 10.7 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001012/0.8201, allocations: 437.2 kB / 0.8258 GB, free: 10.27 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01014/0.8302, allocations: 5.819 MB / 0.8315 GB, free: 4.41 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.463e-05/0.8302, allocations: 43.94 kB / 0.8315 GB, free: 4.367 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-05/0.8302, allocations: 8 kB / 0.8315 GB, free: 4.359 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.37e-05/0.8303, allocations: 23.92 kB / 0.8315 GB, free: 4.336 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02725/0.8575, allocations: 13.85 MB / 0.845 GB, free: 6.367 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.559e-05/0.8575, allocations: 4 kB / 0.8451 GB, free: 6.363 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002665/0.8602, allocations: 0.667 MB / 0.8457 GB, free: 5.695 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002059/0.8623, allocations: 0.7176 MB / 0.8464 GB, free: 4.973 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002433/0.8625, allocations: 83.97 kB / 0.8465 GB, free: 4.891 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01055/0.8731, allocations: 7.676 MB / 0.854 GB, free: 12.99 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.8731, allocations: 4 kB / 0.854 GB, free: 12.98 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01383/0.8869, allocations: 8.496 MB / 0.8623 GB, free: 4.383 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002907/0.8898, allocations: 0.8444 MB / 0.8631 GB, free: 3.535 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000627/0.8904, allocations: 71.98 kB / 0.8632 GB, free: 3.465 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00182/0.8922, allocations: 179.8 kB / 0.8633 GB, free: 3.289 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005141/0.8928, allocations: 266.5 kB / 0.8636 GB, free: 3.027 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002267/0.893, allocations: 112 kB / 0.8637 GB, free: 2.918 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00401/0.897, allocations: 2.524 MB / 0.8662 GB, free: 420 kB / 0.5606 GB Notification: Performance of sort global known variables: time 9e-08/0.897, allocations: 0 / 0.8662 GB, free: 420 kB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005835/0.9028, allocations: 1.562 MB / 0.8677 GB, free: 14.84 MB / 0.5762 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.01472/0.9176, allocations: 9.2 MB / 0.8767 GB, free: 5.535 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.4147/1.332, allocations: 6.3 MB / 0.8828 GB, free: 206.9 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.051e-05/1.332, allocations: 1 kB / 0.8828 GB, free: 206.9 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.004966/1.337, allocations: 2.759 MB / 0.8855 GB, free: 206.6 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004926/1.342, allocations: 0.9693 MB / 0.8865 GB, free: 206.5 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07407/1.416, allocations: 52.71 MB / 0.9379 GB, free: 166.9 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006079/1.422, allocations: 5.517 MB / 0.9433 GB, free: 161.3 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.004246/1.427, allocations: 1.87 MB / 0.9452 GB, free: 159.5 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003653/1.43, allocations: 3.233 MB / 0.9483 GB, free: 156.2 MB / 0.5763 GB Notification: Performance of SimCode: time 1.022e-06/1.43, allocations: 0 / 0.9483 GB, free: 156.2 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1699/1.6, allocations: 124.1 MB / 1.07 GB, free: 32.89 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.85/18.45, allocations: 9.266 kB / 1.07 GB, free: 32.89 MB / 0.5763 GB " [Timeout remaining time 641] (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: 21.720964656677097] Failed to read output from testmodel.py, exit status != 0: 18.630214598029852 18.648307205 18.3519743 Calling exit ...