Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.002154/0.002154, allocations: 110.3 kB / 19.16 MB, free: 3.875 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.002491/0.002491, allocations: 201.7 kB / 22.11 MB, free: 0.9336 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.391/1.391, allocations: 207.6 MB / 232.5 MB, free: 3.938 MB / 174.1 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_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_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 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.001621/0.001621, allocations: 54.75 kB / 343.1 MB, free: 9.969 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08461/0.08623, allocations: 49.12 MB / 392.2 MB, free: 8.684 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.02676/0.113, allocations: 25.07 MB / 417.2 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0151/0.1281, allocations: 7.755 MB / 425 MB, free: 7.719 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004638/0.1327, allocations: 183.1 kB / 425.2 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0187/0.1514, allocations: 8.452 MB / 433.6 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009669/0.1611, allocations: 3.086 MB / 436.7 MB, free: 11.95 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005161/0.1663, allocations: 1.817 MB / 438.5 MB, free: 10.13 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01634/0.1826, allocations: 11.21 MB / 449.7 MB, free: 14.88 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2276/0.4102, allocations: 17.43 MB / 467.2 MB, free: 13.5 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009209/0.4194, allocations: 6.099 MB / 473.3 MB, free: 13.11 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01098/0.4303, allocations: 6.604 MB / 479.9 MB, free: 12.09 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00533/0.4357, allocations: 1.727 MB / 481.6 MB, free: 12.09 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007661/0.4433, allocations: 2.119 MB / 483.7 MB, free: 12.09 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006736/0.4501, allocations: 3.472 MB / 487.2 MB, free: 11.71 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01314/0.4632, allocations: 6.435 MB / 493.6 MB, free: 9.211 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02679/0.49, allocations: 23.19 MB / 0.5047 GB, free: 10.96 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.486e-06/0.49, allocations: 0 / 0.5047 GB, free: 10.96 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.49, allocations: 2.5 kB / 0.5047 GB, free: 10.96 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0008157/0.4908, allocations: 0 / 0.5047 GB, free: 10.96 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2742 * Number of variables: 2742 Notification: Performance of Generate backend data structure: time 0.04303/0.5339, allocations: 13.8 MB / 0.5182 GB, free: 14.16 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/0.5339, allocations: 12.03 kB / 0.5182 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0003447/0.5343, allocations: 313.5 kB / 0.5185 GB, free: 13.84 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005978/0.5402, allocations: 1.657 MB / 0.5201 GB, free: 12.18 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04082/0.5811, allocations: 7.313 MB / 0.5273 GB, free: 4.953 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01628/0.5973, allocations: 6.536 MB / 0.5336 GB, free: 14.65 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000927/0.5983, allocations: 0.7432 MB / 0.5344 GB, free: 13.92 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004307/0.6026, allocations: 0.9715 MB / 0.5353 GB, free: 12.96 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04383/0.6464, allocations: 16.66 MB / 0.5516 GB, free: 12.25 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005572/0.647, allocations: 23.89 kB / 0.5516 GB, free: 12.23 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004042/0.651, allocations: 414.1 kB / 0.552 GB, free: 11.84 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007734/0.6518, allocations: 0.591 MB / 0.5526 GB, free: 11.24 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03545/0.6872, allocations: 15.85 MB / 0.5681 GB, free: 11.38 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09963/0.7869, allocations: 53.56 MB / 0.6204 GB, free: 5.613 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02485/0.8117, allocations: 22.35 MB / 0.6422 GB, free: 13.04 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006896/0.8186, allocations: 3.548 MB / 0.6457 GB, free: 9.484 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2549/1.074, allocations: 11.87 MB / 0.6573 GB, free: 148.7 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.058e-05/1.074, allocations: 78.2 kB / 0.6573 GB, free: 148.7 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=383): time 6.212e-06/1.074, allocations: 0 / 0.6573 GB, free: 148.7 MB / 0.5294 GB Warning: Function $DER$Modelica$PElectrical$PQuasiStationary$PMultiPhase$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=571): time 0.1685/1.242, allocations: 62.86 MB / 0.7187 GB, free: 125.6 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0277/1.27, allocations: 23.18 MB / 0.7414 GB, free: 101.9 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005356/1.275, allocations: 4.769 MB / 0.746 GB, free: 97.09 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0009688/1.276, allocations: 117.7 kB / 0.7461 GB, free: 96.97 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001596/1.278, allocations: 4.638 MB / 0.7506 GB, free: 92.33 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001481/1.279, allocations: 2.026 MB / 0.7526 GB, free: 90.33 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0019/1.281, allocations: 1.486 MB / 0.7541 GB, free: 88.84 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 3.442e-05/1.281, allocations: 305.1 kB / 0.7544 GB, free: 88.54 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005052/1.286, allocations: 4.184 MB / 0.7585 GB, free: 84.35 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005974/1.292, allocations: 6.664 MB / 0.765 GB, free: 76.63 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01157/1.304, allocations: 11.57 MB / 0.7763 GB, free: 64.23 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.457e-05/1.304, allocations: 23.38 kB / 0.7763 GB, free: 64.21 MB / 0.5294 GB Notification: Performance of matching and sorting (n=973) (initialization): time 0.02416/1.328, allocations: 14.9 MB / 0.7908 GB, free: 49.82 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 5.3e-05/1.328, allocations: 39.98 kB / 0.7909 GB, free: 49.78 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.621e-05/1.328, allocations: 80 kB / 0.791 GB, free: 49.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01037/1.338, allocations: 4.473 MB / 0.7953 GB, free: 45.22 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005004/1.343, allocations: 1.468 MB / 0.7968 GB, free: 43.86 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04383/1.387, allocations: 39.73 MB / 0.8356 GB, free: 3.59 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005825/1.393, allocations: 439.5 kB / 0.836 GB, free: 3.16 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001099/1.394, allocations: 379.6 kB / 0.8363 GB, free: 2.793 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 355 * 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 (758): * Single equations (assignments): 751 * 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,40.8%), (1,6,100.0%), (14,54,41.3%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006132/1.4, allocations: 4.135 MB / 0.8404 GB, free: 14.75 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001334/1.402, allocations: 0.5356 MB / 0.8409 GB, free: 14.21 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02451/1.426, allocations: 12.2 MB / 0.8528 GB, free: 2.02 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.2027/1.629, allocations: 10.55 MB / 0.8631 GB, free: 182.1 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.775e-05/1.629, allocations: 36.28 kB / 0.8632 GB, free: 182.1 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001239/1.629, allocations: 28.17 kB / 0.8632 GB, free: 182.1 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04834/1.677, allocations: 31.43 MB / 0.8939 GB, free: 170.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.731e-05/1.677, allocations: 3.594 kB / 0.8939 GB, free: 170.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003536/1.681, allocations: 0.8385 MB / 0.8947 GB, free: 170.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009779/1.691, allocations: 3.846 MB / 0.8984 GB, free: 169.5 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009402/1.692, allocations: 130.7 kB / 0.8986 GB, free: 169.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03703/1.729, allocations: 31.68 MB / 0.9295 GB, free: 148.6 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02448/1.753, allocations: 20.21 MB / 0.9492 GB, free: 128 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02545/1.779, allocations: 17.01 MB / 0.9658 GB, free: 111.1 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003167/1.782, allocations: 1.404 MB / 0.9672 GB, free: 109.7 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001257/1.783, allocations: 107.9 kB / 0.9673 GB, free: 109.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003557/1.787, allocations: 295.7 kB / 0.9676 GB, free: 109.4 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001171/1.788, allocations: 441.5 kB / 0.968 GB, free: 108.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000348/1.788, allocations: 168 kB / 0.9682 GB, free: 108.8 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004068/1.792, allocations: 3.233 MB / 0.9713 GB, free: 105.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 8e-08/1.792, allocations: 4 kB / 0.9713 GB, free: 105.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007704/1.8, allocations: 2.245 MB / 0.9735 GB, free: 103.3 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * 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 (424): * Single equations (assignments): 418 * 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.4%), (1,6,100.0%), (15,50,42.2%), (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.02593/1.826, allocations: 18.1 MB / 0.9912 GB, free: 84.95 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01819/1.844, allocations: 12.07 MB / 1.003 GB, free: 72.77 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.915e-06/1.844, allocations: 0 / 1.003 GB, free: 72.77 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.01119/1.855, allocations: 6.357 MB / 1.009 GB, free: 66.36 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005132/1.86, allocations: 1.094 MB / 1.01 GB, free: 65.26 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.306/2.166, allocations: 77.57 MB / 1.086 GB, free: 183.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007458/2.174, allocations: 7.025 MB / 1.093 GB, free: 182.1 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005448/2.179, allocations: 2.241 MB / 1.095 GB, free: 182.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005497/2.185, allocations: 3.781 MB / 1.099 GB, free: 180.4 MB / 0.545 GB Notification: Performance of SimCode: time 1.293e-06/2.185, allocations: 0 / 1.099 GB, free: 180.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4403/2.625, allocations: 184.6 MB / 1.279 GB, free: 149.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 29.35/31.98, allocations: 5.438 kB / 1.279 GB, free: 149.7 MB / 0.545 GB " [Timeout remaining time 628] (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses_fmu --startTime=0 --stopTime=10 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 85.07657922699582] 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'] 32.259562725026626 32.277784157 31.783772807 Calling exit ...