Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00131/0.00131, allocations: 116.6 kB / 18.49 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001315/0.001315, allocations: 189 kB / 21.43 MB, free: 1.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.342/1.342, allocations: 225.6 MB / 249.8 MB, free: 3.625 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001568/0.001568, allocations: 47.92 kB / 366.4 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09239/0.09396, allocations: 52.15 MB / 418.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer): time 0.01447/0.1084, allocations: 12.91 MB / 431.4 MB, free: 15.63 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00819/0.1166, allocations: 4.198 MB / 435.6 MB, free: 11.42 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001995/0.1186, allocations: 103.3 kB / 435.7 MB, free: 11.32 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002371/0.121, allocations: 1.009 MB / 436.7 MB, free: 10.3 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003496/0.1245, allocations: 1.235 MB / 438 MB, free: 9.059 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001101/0.1256, allocations: 0.5033 MB / 438.5 MB, free: 8.555 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005028/0.1306, allocations: 4.651 MB / 443.1 MB, free: 3.887 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003297/0.1339, allocations: 2.698 MB / 445.8 MB, free: 1.121 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1892/0.3231, allocations: 2.17 MB / 448 MB, free: 10.28 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003747/0.3269, allocations: 2.62 MB / 450.6 MB, free: 10.18 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008128/0.3277, allocations: 0.5543 MB / 451.2 MB, free: 10.18 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00135/0.3291, allocations: 0.6443 MB / 451.8 MB, free: 10.18 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001398/0.3305, allocations: 1.529 MB / 453.3 MB, free: 10.01 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003782/0.3342, allocations: 2.484 MB / 455.8 MB, free: 9.383 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008854/0.3431, allocations: 7.443 MB / 463.3 MB, free: 8.52 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.3431, allocations: 0 / 463.3 MB, free: 8.52 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3431, allocations: 0 / 463.3 MB, free: 8.52 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002235/0.3433, allocations: 3.094 kB / 463.3 MB, free: 8.52 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.01182/0.3551, allocations: 4.796 MB / 468.1 MB, free: 6.297 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/0.3552, allocations: 12.31 kB / 468.1 MB, free: 6.297 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001305/0.3553, allocations: 92.88 kB / 468.2 MB, free: 6.289 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007821/0.3561, allocations: 0.5051 MB / 468.7 MB, free: 6 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001529/0.3576, allocations: 0.5153 MB / 469.2 MB, free: 5.742 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004186/0.3618, allocations: 2.589 MB / 471.8 MB, free: 4.098 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001713/0.362, allocations: 266 kB / 472 MB, free: 3.977 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000503/0.3625, allocations: 359.2 kB / 472.4 MB, free: 3.855 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007546/0.37, allocations: 5.029 MB / 477.4 MB, free: 0.9297 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.305e-05/0.3701, allocations: 2.344 kB / 477.4 MB, free: 0.9297 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003399/0.3704, allocations: 146.6 kB / 477.6 MB, free: 0.8203 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001603/0.3706, allocations: 182.9 kB / 477.7 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006785/0.3774, allocations: 4.304 MB / 482 MB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02469/0.4021, allocations: 14.75 MB / 496.8 MB, free: 3.734 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005327/0.4074, allocations: 4.06 MB / 0.4891 GB, free: 15.41 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003351/0.4108, allocations: 1.872 MB / 0.4909 GB, free: 13.55 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003003/0.4111, allocations: 135.1 kB / 0.4911 GB, free: 13.39 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.186e-05/0.4111, allocations: 58.59 kB / 0.4911 GB, free: 13.34 MB / 398.1 MB Notification: Performance of pre-optimization done (n=198): time 3.797e-06/0.4111, allocations: 4 kB / 0.4911 GB, free: 13.33 MB / 398.1 MB Notification: Performance of matching and sorting (n=218): time 0.02128/0.4324, allocations: 9.991 MB / 0.5009 GB, free: 3.285 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.071e-05/0.4325, allocations: 77.41 kB / 0.501 GB, free: 3.195 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004269/0.4367, allocations: 2.502 MB / 0.5034 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002026/0.4369, allocations: 61.7 kB / 0.5035 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001369/0.4383, allocations: 1.663 MB / 0.5051 GB, free: 14.96 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006977/0.439, allocations: 0.7684 MB / 0.5058 GB, free: 14.2 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007502/0.4397, allocations: 420.4 kB / 0.5062 GB, free: 13.78 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.4399, allocations: 301.1 kB / 0.5065 GB, free: 13.48 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002136/0.442, allocations: 1.297 MB / 0.5078 GB, free: 12.18 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002484/0.4445, allocations: 1.781 MB / 0.5095 GB, free: 10.22 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004705/0.4492, allocations: 3.211 MB / 0.5127 GB, free: 6.883 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.357e-06/0.4492, allocations: 5.125 kB / 0.5127 GB, free: 6.879 MB / 414.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.007474/0.4567, allocations: 4.07 MB / 0.5166 GB, free: 2.883 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.367e-05/0.4567, allocations: 12 kB / 0.5167 GB, free: 2.871 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.85e-05/0.4567, allocations: 13.31 kB / 0.5167 GB, free: 2.859 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002847/0.4596, allocations: 0.8843 MB / 0.5175 GB, free: 1.965 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002079/0.4617, allocations: 0.5251 MB / 0.518 GB, free: 1.469 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01222/0.4739, allocations: 9.489 MB / 0.5273 GB, free: 7.609 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002952/0.4768, allocations: 115.9 kB / 0.5274 GB, free: 7.496 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000328/0.4772, allocations: 87.98 kB / 0.5275 GB, free: 7.41 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep2[3].y,booleanStep2[2].y,booleanStep2[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (252): * Single equations (assignments): 247 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,25,77.8%), (2,12,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002804/0.48, allocations: 1.215 MB / 0.5287 GB, free: 6.215 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008095/0.4808, allocations: 286.2 kB / 0.529 GB, free: 5.934 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006923/0.4877, allocations: 3.709 MB / 0.5326 GB, free: 2.219 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.172e-05/0.4877, allocations: 23 kB / 0.5326 GB, free: 2.199 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.33e-05/0.4877, allocations: 12 kB / 0.5326 GB, free: 2.188 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.148e-05/0.4878, allocations: 11.95 kB / 0.5326 GB, free: 2.176 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01473/0.5025, allocations: 7.993 MB / 0.5404 GB, free: 10.17 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.325e-05/0.5025, allocations: 7.938 kB / 0.5404 GB, free: 10.16 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001716/0.5042, allocations: 385.5 kB / 0.5408 GB, free: 9.805 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003126/0.5074, allocations: 0.9251 MB / 0.5417 GB, free: 8.867 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001797/0.5075, allocations: 55.97 kB / 0.5418 GB, free: 8.812 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01281/0.5203, allocations: 11.1 MB / 0.5526 GB, free: 13.2 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.5203, allocations: 8 kB / 0.5526 GB, free: 13.19 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009585/0.5299, allocations: 5.508 MB / 0.558 GB, free: 7.641 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00197/0.5319, allocations: 0.6435 MB / 0.5586 GB, free: 6.977 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004608/0.5324, allocations: 52 kB / 0.5587 GB, free: 6.926 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001379/0.5337, allocations: 115.9 kB / 0.5588 GB, free: 6.812 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004719/0.5342, allocations: 187 kB / 0.559 GB, free: 6.633 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001463/0.5344, allocations: 59.98 kB / 0.559 GB, free: 6.574 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003173/0.5375, allocations: 1.73 MB / 0.5607 GB, free: 4.832 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.5375, allocations: 0 / 0.5607 GB, free: 4.832 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003381/0.5409, allocations: 0.7969 MB / 0.5615 GB, free: 4.035 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (175): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,25,88.9%), (2,12,100.0%), (1,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009753/0.5507, allocations: 6.203 MB / 0.5675 GB, free: 13.81 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006369/0.557, allocations: 3.767 MB / 0.5712 GB, free: 10.02 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.541e-06/0.557, allocations: 4 kB / 0.5712 GB, free: 10.02 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003893/0.5609, allocations: 2.385 MB / 0.5736 GB, free: 7.598 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003874/0.5648, allocations: 0.7965 MB / 0.5743 GB, free: 6.816 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05198/0.6168, allocations: 29.54 MB / 0.6032 GB, free: 8.707 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00324/0.62, allocations: 2.773 MB / 0.6059 GB, free: 5.906 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002528/0.6226, allocations: 0.6866 MB / 0.6066 GB, free: 5.215 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002596/0.6252, allocations: 1.409 MB / 0.6079 GB, free: 3.805 MB / 0.4981 GB Notification: Performance of SimCode: time 2.014e-06/0.6252, allocations: 0 / 0.6079 GB, free: 3.805 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3345/0.9596, allocations: 74.15 MB / 0.6803 GB, free: 145.1 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.3/16.26, allocations: 15.72 kB / 0.6804 GB, free: 145 MB / 0.5137 GB " [Timeout remaining time 644] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.71980994398473] Failed to read output from testmodel.py, exit status != 0: ['time', 'aimc.is[1]', 'aimc.is[2]', 'aimc.idq_rr[1]', 'aimc.idq_rr[2]', 'aimc.idq_sr[1]', 'aimc.idq_sr[2]', 'loadInertia.phi', 'loadInertia.w', 'transformer.l2sigma.inductor[2].i', 'transformer.l2sigma.inductor[3].i'] 16.439366331964266 16.448844887 16.103591784 Calling exit ...