Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00133/0.00133, allocations: 118.3 kB / 18.49 MB, free: 4.559 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001305/0.001305, allocations: 214.3 kB / 21.46 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.521/1.521, allocations: 230.4 MB / 254.7 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_trunk_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_trunk_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.001846/0.001846, allocations: 63.89 kB / 373.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1132, allocations: 53.37 MB / 427.1 MB, free: 4.547 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.2485/0.3617, allocations: 24.99 MB / 452.1 MB, free: 11.74 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02021/0.3819, allocations: 8.083 MB / 460.2 MB, free: 6.02 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008456/0.3904, allocations: 216.8 kB / 460.4 MB, free: 5.949 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02114/0.4115, allocations: 8.461 MB / 468.9 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01243/0.424, allocations: 3.076 MB / 471.9 MB, free: 14.38 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006377/0.4303, allocations: 1.835 MB / 473.8 MB, free: 12.93 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01745/0.4478, allocations: 11.21 MB / 485 MB, free: 6.059 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03198/0.4798, allocations: 17.42 MB / 0.4906 GB, free: 5.223 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01172/0.4915, allocations: 6.016 MB / 0.4965 GB, free: 15.19 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01183/0.5033, allocations: 6.553 MB / 0.5029 GB, free: 8.617 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004622/0.5079, allocations: 1.715 MB / 0.5046 GB, free: 6.902 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00678/0.5147, allocations: 2.144 MB / 0.5067 GB, free: 4.758 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004792/0.5195, allocations: 3.406 MB / 0.51 GB, free: 1.344 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01218/0.5317, allocations: 6.358 MB / 0.5162 GB, free: 10.96 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03356/0.5652, allocations: 23.19 MB / 0.5389 GB, free: 3.699 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.5652, allocations: 0 / 0.5389 GB, free: 3.699 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.5652, allocations: 7.938 kB / 0.5389 GB, free: 3.691 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006186/0.5659, allocations: 3.984 kB / 0.5389 GB, free: 3.688 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.04098/0.6068, allocations: 13.64 MB / 0.5522 GB, free: 5.934 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.684e-05/0.6069, allocations: 12.03 kB / 0.5522 GB, free: 5.922 MB / 462.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0003656/0.6073, allocations: 305.4 kB / 0.5525 GB, free: 5.621 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005657/0.6129, allocations: 1.624 MB / 0.5541 GB, free: 3.984 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03666/0.6496, allocations: 6.264 MB / 0.5602 GB, free: 13.71 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01626/0.6658, allocations: 7.309 MB / 0.5673 GB, free: 6.32 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007958/0.6666, allocations: 0.7226 MB / 0.568 GB, free: 5.598 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003861/0.6705, allocations: 0.9647 MB / 0.569 GB, free: 4.633 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0413/0.7118, allocations: 16.23 MB / 0.5848 GB, free: 4.34 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003269/0.7121, allocations: 19.84 kB / 0.5849 GB, free: 4.32 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003086/0.7152, allocations: 408 kB / 0.5852 GB, free: 3.922 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006588/0.7159, allocations: 0.5671 MB / 0.5858 GB, free: 3.352 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03563/0.7515, allocations: 15.2 MB / 0.6006 GB, free: 4.133 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.318/1.07, allocations: 52.81 MB / 0.6522 GB, free: 128.3 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01845/1.088, allocations: 19.77 MB / 0.6715 GB, free: 111.4 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005896/1.094, allocations: 3.413 MB / 0.6749 GB, free: 109.7 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000515/1.094, allocations: 306.9 kB / 0.6751 GB, free: 109.4 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.494e-05/1.094, allocations: 81.89 kB / 0.6752 GB, free: 109.3 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=473): time 6.001e-06/1.094, allocations: 0 / 0.6752 GB, free: 109.3 MB / 0.5137 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: 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.1717/1.266, allocations: 66.81 MB / 0.7405 GB, free: 53.94 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0295/1.296, allocations: 23.18 MB / 0.7631 GB, free: 30.07 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005713/1.301, allocations: 4.514 MB / 0.7675 GB, free: 25.53 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.001266/1.303, allocations: 133.7 kB / 0.7676 GB, free: 25.39 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0019/1.305, allocations: 4.342 MB / 0.7719 GB, free: 21.05 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.002036/1.307, allocations: 2.328 MB / 0.7741 GB, free: 18.75 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002113/1.309, allocations: 1.498 MB / 0.7756 GB, free: 17.25 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 5.026e-05/1.309, allocations: 305.1 kB / 0.7759 GB, free: 16.95 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005412/1.314, allocations: 4.365 MB / 0.7802 GB, free: 12.58 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006272/1.32, allocations: 6.614 MB / 0.7866 GB, free: 5.004 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01697/1.337, allocations: 11.82 MB / 0.7982 GB, free: 8.164 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.18e-05/1.337, allocations: 20 kB / 0.7982 GB, free: 8.145 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1004) (initialization): time 0.03741/1.375, allocations: 15.18 MB / 0.813 GB, free: 8.895 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001171/1.375, allocations: 32 kB / 0.813 GB, free: 8.863 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001567/1.375, allocations: 68.23 kB / 0.8131 GB, free: 8.797 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01457/1.39, allocations: 4.461 MB / 0.8175 GB, free: 4.332 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007279/1.397, allocations: 1.537 MB / 0.819 GB, free: 2.793 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3086/1.706, allocations: 39.7 MB / 0.8577 GB, free: 172 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006579/1.712, allocations: 434.5 kB / 0.8581 GB, free: 171.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001654/1.714, allocations: 371.5 kB / 0.8585 GB, free: 171.8 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,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.008073/1.722, allocations: 4.111 MB / 0.8625 GB, free: 169.9 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001379/1.723, allocations: 0.5447 MB / 0.863 GB, free: 169.9 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02633/1.75, allocations: 14.37 MB / 0.8771 GB, free: 164.2 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02096/1.771, allocations: 11.25 MB / 0.8881 GB, free: 159.8 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001081/1.771, allocations: 35.75 kB / 0.8881 GB, free: 159.8 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001557/1.771, allocations: 33.84 kB / 0.8881 GB, free: 159.8 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05277/1.824, allocations: 33.86 MB / 0.9212 GB, free: 133.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.145e-05/1.824, allocations: 11.94 kB / 0.9212 GB, free: 133.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004135/1.828, allocations: 0.9946 MB / 0.9222 GB, free: 132.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009923/1.838, allocations: 3.834 MB / 0.9259 GB, free: 128.4 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001054/1.839, allocations: 152 kB / 0.9261 GB, free: 128.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03771/1.877, allocations: 31.72 MB / 0.957 GB, free: 96.37 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02487/1.901, allocations: 20.21 MB / 0.9768 GB, free: 75.52 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02725/1.929, allocations: 18.26 MB / 0.9946 GB, free: 56.95 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003061/1.932, allocations: 1.477 MB / 0.9961 GB, free: 55.45 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001298/1.933, allocations: 136 kB / 0.9962 GB, free: 55.31 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005275/1.938, allocations: 295.7 kB / 0.9965 GB, free: 55.02 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001716/1.94, allocations: 0.4977 MB / 0.997 GB, free: 54.52 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005684/1.941, allocations: 195.9 kB / 0.9971 GB, free: 54.33 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003892/1.944, allocations: 3.119 MB / 1 GB, free: 51.2 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.61e-07/1.944, allocations: 4 kB / 1 GB, free: 51.2 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.008286/1.953, allocations: 2.273 MB / 1.002 GB, free: 48.93 MB / 0.5606 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.02912/1.982, allocations: 19.39 MB / 1.021 GB, free: 29.38 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02225/2.004, allocations: 12.46 MB / 1.034 GB, free: 16.82 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.244e-05/2.004, allocations: 4 kB / 1.034 GB, free: 16.82 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01327/2.017, allocations: 6.686 MB / 1.04 GB, free: 10.07 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00801/2.025, allocations: 1.118 MB / 1.041 GB, free: 8.984 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3562/2.382, allocations: 78.04 MB / 1.117 GB, free: 155.1 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008389/2.39, allocations: 6.978 MB / 1.124 GB, free: 148.1 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.005585/2.396, allocations: 2.261 MB / 1.126 GB, free: 145.9 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005794/2.401, allocations: 3.787 MB / 1.13 GB, free: 142.1 MB / 0.5606 GB Notification: Performance of SimCode: time 1.413e-06/2.401, allocations: 0 / 1.13 GB, free: 142.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5095/2.911, allocations: 189.2 MB / 1.315 GB, free: 148.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 35.49/38.4, allocations: 9.609 kB / 1.315 GB, free: 148.2 MB / 0.5606 GB " [Timeout remaining time 621] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses_fmu --startTime=0 --stopTime=10 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 91.72198148199823] 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'] 38.74000506696757 38.756433214 38.187660815 Calling exit ...