Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.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.001382/0.001382, allocations: 105.1 kB / 21.22 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] 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.001521/0.001521, allocations: 216.8 kB / 24.52 MB, free: 3.91 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.405/1.405, allocations: 230.6 MB / 258.3 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] 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 Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 47.92 kB / 378.6 MB, free: 2.918 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2314/0.2328, allocations: 53.36 MB / 431.9 MB, free: 6.625 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.02545/0.2582, allocations: 21.46 MB / 453.4 MB, free: 1.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01617/0.2744, allocations: 7.716 MB / 461.1 MB, free: 9.324 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004296/0.2787, allocations: 226.8 kB / 461.3 MB, free: 9.102 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01836/0.2971, allocations: 7.831 MB / 469.1 MB, free: 1.25 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009442/0.3065, allocations: 3.089 MB / 472.2 MB, free: 14.15 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005319/0.3118, allocations: 1.827 MB / 474.1 MB, free: 12.33 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01582/0.3276, allocations: 11.34 MB / 485.4 MB, free: 0.957 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02344/0.3511, allocations: 14.66 MB / 0.4883 GB, free: 2.152 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008837/0.3599, allocations: 6.083 MB / 0.4943 GB, free: 12.05 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01135/0.3713, allocations: 6.573 MB / 0.5007 GB, free: 5.457 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005273/0.3765, allocations: 1.715 MB / 0.5024 GB, free: 3.742 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006411/0.383, allocations: 2.156 MB / 0.5045 GB, free: 1.59 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005222/0.3882, allocations: 3.398 MB / 0.5078 GB, free: 14.18 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01042/0.3986, allocations: 4.926 MB / 0.5126 GB, free: 9.238 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02763/0.4262, allocations: 23.28 MB / 0.5354 GB, free: 1.883 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.115e-06/0.4262, allocations: 4 kB / 0.5354 GB, free: 1.879 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.4262, allocations: 0 / 0.5354 GB, free: 1.879 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000538/0.4268, allocations: 0 / 0.5354 GB, free: 1.879 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.4016/0.8284, allocations: 13.58 MB / 0.5486 GB, free: 88.59 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.8284, allocations: 12.03 kB / 0.5486 GB, free: 88.57 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002487/0.8287, allocations: 301.4 kB / 0.5489 GB, free: 88.28 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005065/0.8337, allocations: 1.62 MB / 0.5505 GB, free: 86.66 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03227/0.866, allocations: 6.266 MB / 0.5566 GB, free: 80.46 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01325/0.8793, allocations: 7.367 MB / 0.5638 GB, free: 73.06 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000458/0.8797, allocations: 0.7252 MB / 0.5645 GB, free: 72.35 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003108/0.8828, allocations: 0.9642 MB / 0.5655 GB, free: 71.39 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03069/0.9135, allocations: 16.4 MB / 0.5815 GB, free: 54.94 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002811/0.9138, allocations: 19.91 kB / 0.5815 GB, free: 54.92 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002027/0.9158, allocations: 403.7 kB / 0.5819 GB, free: 54.53 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003844/0.9162, allocations: 0.5632 MB / 0.5824 GB, free: 53.96 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0257/0.9419, allocations: 15.21 MB / 0.5973 GB, free: 38.74 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07413/1.016, allocations: 47.3 MB / 0.6435 GB, free: 6.664 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01625/1.032, allocations: 8.649 MB / 0.6519 GB, free: 14.78 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00596/1.038, allocations: 3.386 MB / 0.6552 GB, free: 11.38 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004019/1.039, allocations: 128.5 kB / 0.6553 GB, free: 11.26 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.674e-05/1.039, allocations: 82.27 kB / 0.6554 GB, free: 11.17 MB / 478.1 MB Notification: Performance of pre-optimization done (n=473): time 7.894e-06/1.039, allocations: 0 / 0.6554 GB, free: 11.17 MB / 478.1 MB 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: imcQS.is[3].im 2: imcQS.is[3].re 3: imcQS.is[2].im 4: imcQS.is[2].re 5: imcQS.is[1].im 6: imcQS.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: imcQS.rotorCage.omega Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=661): time 0.1943/1.233, allocations: 66.37 MB / 0.7202 GB, free: 8.625 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03742/1.27, allocations: 22.12 MB / 0.7418 GB, free: 1.957 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2246/1.495, allocations: 4.508 MB / 0.7462 GB, free: 182.4 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001105/1.496, allocations: 128.2 kB / 0.7464 GB, free: 182.4 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002949/1.499, allocations: 4.342 MB / 0.7506 GB, free: 181.3 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002004/1.501, allocations: 2.332 MB / 0.7529 GB, free: 179.8 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002171/1.503, allocations: 1.497 MB / 0.7543 GB, free: 179.1 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 3.404e-05/1.503, allocations: 304.9 kB / 0.7546 GB, free: 178.8 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005459/1.509, allocations: 4.361 MB / 0.7589 GB, free: 177 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006444/1.515, allocations: 6.64 MB / 0.7654 GB, free: 172.5 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01271/1.528, allocations: 11.82 MB / 0.7769 GB, free: 165.3 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.447e-05/1.528, allocations: 25.06 kB / 0.7769 GB, free: 165.3 MB / 0.545 GB Notification: Performance of matching and sorting (n=1004) (initialization): time 0.02571/1.554, allocations: 15.17 MB / 0.7917 GB, free: 152.9 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 5.897e-05/1.554, allocations: 43.73 kB / 0.7918 GB, free: 152.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001095/1.554, allocations: 68 kB / 0.7919 GB, free: 152.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01094/1.565, allocations: 4.452 MB / 0.7962 GB, free: 149.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005623/1.57, allocations: 1.546 MB / 0.7977 GB, free: 147.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04261/1.613, allocations: 38.54 MB / 0.8353 GB, free: 108.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005302/1.618, allocations: 419.5 kB / 0.8357 GB, free: 108.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008928/1.619, allocations: 375.9 kB / 0.8361 GB, free: 107.8 MB / 0.545 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,43.9%), (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.005624/1.625, allocations: 4.122 MB / 0.8401 GB, free: 103.7 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001177/1.626, allocations: 0.5395 MB / 0.8407 GB, free: 103.1 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02064/1.647, allocations: 14.38 MB / 0.8547 GB, free: 88.68 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01768/1.664, allocations: 11.25 MB / 0.8657 GB, free: 77.34 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.687e-05/1.664, allocations: 36 kB / 0.8657 GB, free: 77.31 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000117/1.665, allocations: 43.69 kB / 0.8658 GB, free: 77.27 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04638/1.711, allocations: 32.11 MB / 0.8971 GB, free: 44.96 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.61e-05/1.711, allocations: 8 kB / 0.8971 GB, free: 44.96 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003996/1.715, allocations: 0.9868 MB / 0.8981 GB, free: 43.97 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009201/1.724, allocations: 3.833 MB / 0.9018 GB, free: 40.11 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009233/1.725, allocations: 155.9 kB / 0.902 GB, free: 39.96 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03421/1.759, allocations: 30.72 MB / 0.932 GB, free: 8.82 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02726/1.787, allocations: 19.27 MB / 0.9508 GB, free: 5.055 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2348/2.021, allocations: 18.26 MB / 0.9686 GB, free: 174.4 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00315/2.025, allocations: 1.446 MB / 0.97 GB, free: 174.4 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000915/2.025, allocations: 122.1 kB / 0.9702 GB, free: 174.4 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002951/2.028, allocations: 298.9 kB / 0.9704 GB, free: 174.4 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0011/2.03, allocations: 0.5264 MB / 0.971 GB, free: 174.4 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003909/2.03, allocations: 196 kB / 0.9711 GB, free: 174.4 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.003641/2.034, allocations: 3.113 MB / 0.9742 GB, free: 174.2 MB / 0.5607 GB Notification: Performance of sort global known variables: time 8e-08/2.034, allocations: 3.172 kB / 0.9742 GB, free: 174.2 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.00829/2.042, allocations: 2.277 MB / 0.9764 GB, free: 174.2 MB / 0.5607 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 4 ($STATESET1.x,imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,sineVoltageQS.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,43.9%), (1,6,100.0%), (15,50,42.2%), (14,54,41.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02879/2.071, allocations: 19.41 MB / 0.9954 GB, free: 165.7 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01973/2.09, allocations: 12.47 MB / 1.008 GB, free: 154.9 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.261e-05/2.09, allocations: 4 kB / 1.008 GB, free: 154.9 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.01207/2.102, allocations: 6.686 MB / 1.014 GB, free: 149.2 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005747/2.108, allocations: 1.121 MB / 1.015 GB, free: 148.3 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1083/2.216, allocations: 78.2 MB / 1.092 GB, free: 69.27 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006153/2.223, allocations: 6.541 MB / 1.098 GB, free: 62.72 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.0051/2.228, allocations: 2.265 MB / 1.1 GB, free: 60.45 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00472/2.232, allocations: 3.791 MB / 1.104 GB, free: 56.66 MB / 0.5607 GB Notification: Performance of SimCode: time 2.094e-06/2.232, allocations: 0 / 1.104 GB, free: 56.66 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4456/2.678, allocations: 194.4 MB / 1.294 GB, free: 92.52 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 34.03/36.71, allocations: 8.047 kB / 1.294 GB, free: 92.51 MB / 0.5763 GB " [Timeout remaining time 623] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses_fmu --startTime=0 --stopTime=10 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses.fmu > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 89.58780207496602] Failed to read output from testmodel.py, exit status != 0: ['time', 'PIQS.x', 'imcQS.rotorCage.port_p.reference.gamma', 'loadInertiaQS.w', 'powerSensorQS.flange_a.phi'] 37.0211300390074 37.030679212 36.60205254 Calling exit ...