Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.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.001281/0.001281, allocations: 113.4 kB / 19.73 MB, free: 2.227 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.579/1.579, allocations: 230.6 MB / 253.4 MB, free: 14.63 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.001659/0.001659, allocations: 219.6 kB / 310 MB, free: 3.035 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.04221/0.04221, allocations: 8.913 MB / 375.4 MB, free: 6.789 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.InductionMachines.IMC_withLosses,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_withLosses",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_withLosses,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_withLosses",fmuType="cs",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.002412/0.002412, allocations: 83.89 kB / 0.49 GB, free: 44.89 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1052, allocations: 55.61 MB / 0.5443 GB, free: 5.18 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_withLosses): time 0.3068/0.412, allocations: 25.08 MB / 0.5688 GB, free: 9.473 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01911/0.4311, allocations: 8.287 MB / 0.5769 GB, free: 9.316 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00759/0.4387, allocations: 216.7 kB / 0.5771 GB, free: 9.262 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02369/0.4624, allocations: 8.507 MB / 0.5854 GB, free: 6.844 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01633/0.4787, allocations: 3.152 MB / 0.5885 GB, free: 5.461 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008092/0.4868, allocations: 1.886 MB / 0.5903 GB, free: 4.316 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01867/0.5055, allocations: 11.34 MB / 0.6014 GB, free: 14.35 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03676/0.5422, allocations: 14.67 MB / 0.6157 GB, free: 4.734 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01484/0.5571, allocations: 6.074 MB / 0.6216 GB, free: 15.87 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01668/0.5737, allocations: 6.573 MB / 0.6281 GB, free: 9.277 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006865/0.5806, allocations: 1.719 MB / 0.6297 GB, free: 7.559 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01094/0.5915, allocations: 2.16 MB / 0.6319 GB, free: 5.398 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008544/0.6001, allocations: 3.41 MB / 0.6352 GB, free: 1.98 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01658/0.6167, allocations: 6.358 MB / 0.6414 GB, free: 11.6 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03686/0.6535, allocations: 23.2 MB / 0.664 GB, free: 4.324 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.6535, allocations: 0 / 0.664 GB, free: 4.324 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.6535, allocations: 0 / 0.664 GB, free: 4.324 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0008269/0.6544, allocations: 0 / 0.664 GB, free: 4.324 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2685 * Number of variables: 2685 Notification: Performance of Generate backend data structure: time 0.05723/0.7116, allocations: 13.58 MB / 0.6773 GB, free: 6.652 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.824e-05/0.7117, allocations: 19.98 kB / 0.6773 GB, free: 6.633 MB / 462.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0005451/0.7122, allocations: 305.4 kB / 0.6776 GB, free: 6.328 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01083/0.7231, allocations: 1.613 MB / 0.6792 GB, free: 4.703 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03834/0.7614, allocations: 6.267 MB / 0.6853 GB, free: 14.43 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02048/0.7819, allocations: 7.386 MB / 0.6925 GB, free: 6.957 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001041/0.7829, allocations: 0.7265 MB / 0.6932 GB, free: 6.23 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005237/0.7882, allocations: 0.9607 MB / 0.6942 GB, free: 5.27 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05332/0.8415, allocations: 16.24 MB / 0.71 GB, free: 4.973 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005951/0.8421, allocations: 27.84 kB / 0.7101 GB, free: 4.945 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005012/0.8471, allocations: 404 kB / 0.7104 GB, free: 4.551 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000841/0.8479, allocations: 0.5671 MB / 0.711 GB, free: 3.98 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04198/0.8899, allocations: 15.2 MB / 0.7258 GB, free: 4.758 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1195/1.009, allocations: 51.59 MB / 0.7762 GB, free: 116 kB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2904/1.3, allocations: 8.701 MB / 0.7847 GB, free: 162.7 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00626/1.306, allocations: 3.393 MB / 0.788 GB, free: 162 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005084/1.307, allocations: 154.3 kB / 0.7882 GB, free: 162 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.785e-05/1.307, allocations: 84.98 kB / 0.7883 GB, free: 162 MB / 0.545 GB Notification: Performance of pre-optimization done (n=473): time 6.552e-06/1.307, allocations: 0 / 0.7883 GB, free: 162 MB / 0.545 GB Warning: Function $DER$Modelica$PElectrical$PQuasiStatic$PPolyphase$PFunctions$PquasiRMS has not the expected inputs. Expected inputs are record Complex Real re; Real im; end Complex;[:]. Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: imc.is[3].im 2: imc.is[3].re 3: imc.is[2].im 4: imc.is[2].re 5: imc.is[1].im 6: imc.is[1].re Please use -d=bltdump for more information. Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: imc.rotorCage.omega Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=661): time 0.1889/1.495, allocations: 66.38 MB / 0.8531 GB, free: 122.2 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03023/1.526, allocations: 22.47 MB / 0.875 GB, free: 99.23 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005882/1.532, allocations: 4.514 MB / 0.8794 GB, free: 94.7 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001122/1.533, allocations: 133.7 kB / 0.8796 GB, free: 94.56 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001815/1.535, allocations: 4.344 MB / 0.8838 GB, free: 90.21 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002502/1.537, allocations: 2.318 MB / 0.8861 GB, free: 87.92 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002574/1.54, allocations: 1.506 MB / 0.8875 GB, free: 86.41 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 6.306e-05/1.54, allocations: 309.2 kB / 0.8878 GB, free: 86.11 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005925/1.546, allocations: 4.353 MB / 0.8921 GB, free: 81.75 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008593/1.554, allocations: 6.618 MB / 0.8985 GB, free: 74.18 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01605/1.57, allocations: 11.82 MB / 0.9101 GB, free: 61.34 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000113/1.57, allocations: 20 kB / 0.9101 GB, free: 61.32 MB / 0.545 GB Notification: Performance of matching and sorting (n=1004) (initialization): time 0.02941/1.6, allocations: 15.19 MB / 0.9249 GB, free: 46.07 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.069e-05/1.6, allocations: 36 kB / 0.925 GB, free: 46.03 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001215/1.6, allocations: 68 kB / 0.925 GB, free: 45.96 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01149/1.611, allocations: 4.465 MB / 0.9294 GB, free: 41.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006109/1.618, allocations: 1.54 MB / 0.9309 GB, free: 39.95 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.048/1.666, allocations: 39.18 MB / 0.9692 GB, free: 244 kB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006898/1.672, allocations: 431.5 kB / 0.9696 GB, free: 15.82 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001957/1.674, allocations: 371.9 kB / 0.9699 GB, free: 15.45 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 313 * 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 (789): * Single equations (assignments): 782 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(14,54,45.9%), (1,6,100.0%), (14,54,42.3%), (1,6,100.0%), (14,54,40.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.009709/1.684, allocations: 4.111 MB / 0.9739 GB, free: 11.33 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001812/1.686, allocations: 0.5434 MB / 0.9745 GB, free: 10.78 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02951/1.715, allocations: 14.37 MB / 0.9885 GB, free: 12.29 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02549/1.741, allocations: 11.25 MB / 0.9995 GB, free: 0.9492 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001062/1.741, allocations: 32 kB / 0.9995 GB, free: 0.918 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002079/1.741, allocations: 31.88 kB / 0.9996 GB, free: 0.8867 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4149/2.156, allocations: 33.4 MB / 1.032 GB, free: 165.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001246/2.156, allocations: 9.188 kB / 1.032 GB, free: 165.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005116/2.161, allocations: 0.9926 MB / 1.033 GB, free: 165.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01253/2.174, allocations: 3.816 MB / 1.037 GB, free: 165 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001866/2.176, allocations: 155.1 kB / 1.037 GB, free: 164.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04667/2.222, allocations: 31.28 MB / 1.068 GB, free: 147.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02759/2.25, allocations: 19.56 MB / 1.087 GB, free: 133.7 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03636/2.286, allocations: 18.26 MB / 1.105 GB, free: 115.5 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005087/2.291, allocations: 1.449 MB / 1.106 GB, free: 114.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002258/2.294, allocations: 124 kB / 1.106 GB, free: 114 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004882/2.299, allocations: 303.4 kB / 1.106 GB, free: 113.7 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002456/2.301, allocations: 0.524 MB / 1.107 GB, free: 113.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001174/2.302, allocations: 195.9 kB / 1.107 GB, free: 112.9 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.006607/2.309, allocations: 3.115 MB / 1.11 GB, free: 109.8 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/2.309, allocations: 7.781 kB / 1.11 GB, free: 109.8 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.01289/2.322, allocations: 2.279 MB / 1.112 GB, free: 107.6 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 4 ($STATESET1.x,imc.inertiaRotor.w,imc.rotorCage.port_p.reference.gamma,sineVoltage.plug_p.reference.gamma) * 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 (508): * Single equations (assignments): 502 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(14,42,44.9%), (1,6,100.0%), (15,50,41.8%), (14,54,42.3%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.03536/2.357, allocations: 19.39 MB / 1.131 GB, free: 88.09 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.02621/2.383, allocations: 12.49 MB / 1.143 GB, free: 75.5 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.764e-05/2.383, allocations: 4 kB / 1.143 GB, free: 75.49 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.01534/2.399, allocations: 6.69 MB / 1.15 GB, free: 68.75 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008189/2.407, allocations: 1.113 MB / 1.151 GB, free: 67.67 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1816/2.588, allocations: 78.18 MB / 1.227 GB, free: 2.793 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3161/2.905, allocations: 6.971 MB / 1.234 GB, free: 192.2 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.007658/2.912, allocations: 2.257 MB / 1.236 GB, free: 192.2 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008333/2.921, allocations: 3.786 MB / 1.24 GB, free: 192.2 MB / 0.5919 GB Notification: Performance of SimCode: time 1.823e-06/2.921, allocations: 0 / 1.24 GB, free: 192.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2941/3.215, allocations: 192.5 MB / 1.428 GB, free: 36.52 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 34.48/37.7, allocations: 12 kB / 1.428 GB, free: 36.5 MB / 0.5919 GB " [Timeout remaining time 622] (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_InductionMachines_IMC_withLosses_fmu --startTime=0 --stopTime=10 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_InductionMachines_IMC_withLosses.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_withLosses.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 87.49859596393071] Failed to read output from testmodel.py, exit status != 0: 38.01879015099257 38.030799395 37.374365637 Calling exit ...