Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.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.00175/0.00175, allocations: 113 kB / 18.49 MB, free: 4.539 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.001862/0.001862, allocations: 217.4 kB / 21.46 MB, free: 1.586 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.483/1.483, allocations: 230.6 MB / 254.8 MB, free: 15.08 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.Electrical.Machines.Examples.InductionMachines.IMS_Start,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001685/0.001685, allocations: 51.86 kB / 373.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1158, allocations: 53.33 MB / 427 MB, free: 4.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start): time 0.2469/0.3627, allocations: 11.91 MB / 438.9 MB, free: 4.855 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007536/0.3702, allocations: 3.833 MB / 442.8 MB, free: 2.719 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002733/0.373, allocations: 92.34 kB / 442.9 MB, free: 2.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002712/0.3757, allocations: 0.9267 MB / 443.8 MB, free: 2.188 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004188/0.3799, allocations: 1.144 MB / 444.9 MB, free: 1.469 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001411/0.3813, allocations: 0.4944 MB / 445.4 MB, free: 1.152 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006163/0.3874, allocations: 4.239 MB / 449.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003882/0.3913, allocations: 2.404 MB / 452.1 MB, free: 13.96 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004205/0.3955, allocations: 1.958 MB / 454 MB, free: 13.05 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005474/0.401, allocations: 2.388 MB / 456.4 MB, free: 11.96 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001767/0.4028, allocations: 0.4933 MB / 456.9 MB, free: 11.96 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002608/0.4054, allocations: 0.5993 MB / 457.5 MB, free: 11.93 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002262/0.4076, allocations: 1.417 MB / 458.9 MB, free: 11.14 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004727/0.4124, allocations: 2.212 MB / 461.1 MB, free: 9.711 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009197/0.4215, allocations: 6.594 MB / 467.7 MB, free: 5.035 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.824e-06/0.4216, allocations: 1 kB / 467.7 MB, free: 5.035 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.4216, allocations: 0.8438 kB / 467.7 MB, free: 5.035 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002238/0.4218, allocations: 0 / 467.7 MB, free: 5.035 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: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.01341/0.4352, allocations: 4.415 MB / 472.2 MB, free: 2.043 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.969e-05/0.4352, allocations: 9.688 kB / 472.2 MB, free: 2.043 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001396/0.4354, allocations: 89.31 kB / 472.2 MB, free: 2.027 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009454/0.4363, allocations: 441.8 kB / 472.7 MB, free: 1.699 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001724/0.4381, allocations: 490.2 kB / 473.2 MB, free: 1.457 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005431/0.4435, allocations: 2.428 MB / 475.6 MB, free: 15.78 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002121/0.4437, allocations: 231 kB / 475.8 MB, free: 15.67 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007315/0.4444, allocations: 309.7 kB / 476.1 MB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00851/0.4529, allocations: 4.375 MB / 480.5 MB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.47e-05/0.453, allocations: 15.88 kB / 480.5 MB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003207/0.4533, allocations: 124 kB / 480.6 MB, free: 11.06 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001484/0.4535, allocations: 133.9 kB / 480.8 MB, free: 10.93 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006854/0.4603, allocations: 3.779 MB / 484.5 MB, free: 7.141 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02379/0.4841, allocations: 13.41 MB / 497.9 MB, free: 9.406 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003741/0.4879, allocations: 2.762 MB / 0.489 GB, free: 6.504 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002883/0.4907, allocations: 1.575 MB / 0.4905 GB, free: 4.934 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002955/0.491, allocations: 122.4 kB / 0.4906 GB, free: 4.797 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.658e-05/0.4911, allocations: 51.86 kB / 0.4907 GB, free: 4.738 MB / 398.1 MB Notification: Performance of pre-optimization done (n=164): time 3.557e-06/0.4911, allocations: 4 kB / 0.4907 GB, free: 4.734 MB / 398.1 MB Notification: Performance of matching and sorting (n=180): time 0.01996/0.5111, allocations: 9.022 MB / 0.4995 GB, free: 11.52 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.271e-05/0.5111, allocations: 73.41 kB / 0.4996 GB, free: 11.44 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004268/0.5154, allocations: 2.378 MB / 0.5019 GB, free: 9.031 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002627/0.5157, allocations: 57.7 kB / 0.5019 GB, free: 8.969 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001237/0.5169, allocations: 1.505 MB / 0.5034 GB, free: 7.453 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006745/0.5176, allocations: 0.6391 MB / 0.504 GB, free: 6.809 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00066/0.5182, allocations: 363.5 kB / 0.5044 GB, free: 6.449 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.5184, allocations: 305.1 kB / 0.5047 GB, free: 6.148 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001878/0.5202, allocations: 1.124 MB / 0.5058 GB, free: 5.023 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002144/0.5224, allocations: 1.578 MB / 0.5073 GB, free: 3.266 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004001/0.5264, allocations: 2.78 MB / 0.51 GB, free: 320 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.037e-05/0.5264, allocations: 4 kB / 0.51 GB, free: 316 kB / 414.1 MB Notification: Performance of matching and sorting (n=253) (initialization): time 0.006539/0.5329, allocations: 3.594 MB / 0.5135 GB, free: 12.68 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.5e-05/0.533, allocations: 15.94 kB / 0.5136 GB, free: 12.67 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.361e-05/0.533, allocations: 12 kB / 0.5136 GB, free: 12.66 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002116/0.5351, allocations: 0.8037 MB / 0.5144 GB, free: 11.83 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001809/0.5369, allocations: 455.3 kB / 0.5148 GB, free: 11.39 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01195/0.5489, allocations: 11.17 MB / 0.5257 GB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00265/0.5515, allocations: 127.9 kB / 0.5258 GB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002564/0.5518, allocations: 76 kB / 0.5259 GB, free: 15.32 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 6 (switchedRheostat.booleanStep[3].y,switchedRheostat.booleanStep[2].y,switchedRheostat.booleanStep[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 (220): * Single equations (assignments): 213 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * 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): 5 systems {(2,14,100.0%), (1,1,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002368/0.5542, allocations: 1.099 MB / 0.527 GB, free: 14.21 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000821/0.555, allocations: 258.3 kB / 0.5272 GB, free: 13.96 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006102/0.5611, allocations: 3.289 MB / 0.5304 GB, free: 10.63 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.627e-05/0.5611, allocations: 20 kB / 0.5304 GB, free: 10.61 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.433e-05/0.5611, allocations: 8 kB / 0.5304 GB, free: 10.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.808e-05/0.5611, allocations: 7.969 kB / 0.5305 GB, free: 10.59 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01282/0.5739, allocations: 6.837 MB / 0.5371 GB, free: 3.633 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.035e-05/0.574, allocations: 8.031 kB / 0.5371 GB, free: 3.625 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001293/0.5752, allocations: 295.5 kB / 0.5374 GB, free: 3.336 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002516/0.5778, allocations: 0.9236 MB / 0.5383 GB, free: 2.387 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001334/0.5779, allocations: 39.98 kB / 0.5384 GB, free: 2.348 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01525/0.5931, allocations: 14.62 MB / 0.5526 GB, free: 2.746 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.404e-06/0.5932, allocations: 7.938 kB / 0.5526 GB, free: 2.738 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008457/0.6016, allocations: 4.855 MB / 0.5574 GB, free: 13.82 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001754/0.6034, allocations: 0.5736 MB / 0.5579 GB, free: 13.22 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00078/0.6041, allocations: 43.92 kB / 0.558 GB, free: 13.18 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001499/0.6056, allocations: 119.9 kB / 0.5581 GB, free: 13.06 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004447/0.6061, allocations: 145.8 kB / 0.5582 GB, free: 12.92 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001232/0.6062, allocations: 51.98 kB / 0.5583 GB, free: 12.87 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002762/0.609, allocations: 1.641 MB / 0.5599 GB, free: 11.21 MB / 478.1 MB Notification: Performance of sort global known variables: time 9e-08/0.609, allocations: 4 kB / 0.5599 GB, free: 11.21 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002871/0.6118, allocations: 0.7109 MB / 0.5606 GB, free: 10.5 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (aims.inertiaRotor.w,aims.i_0_s,aims.idq_sr[1],aims.idq_sr[2],aims.idq_rr[1],aims.idq_rr[2],aims.i_0_r,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],switchedRheostat.booleanStep[1].y,switchedRheostat.booleanStep[2].y,switchedRheostat.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (145): * Single equations (assignments): 137 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 7 * 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): 7 systems {(2,14,100.0%), (1,1,100.0%), (2,1,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,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.008425/0.6203, allocations: 5.525 MB / 0.566 GB, free: 4.902 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005722/0.626, allocations: 3.483 MB / 0.5694 GB, free: 1.312 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.404e-06/0.626, allocations: 1.938 kB / 0.5694 GB, free: 1.312 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003849/0.6298, allocations: 2.433 MB / 0.5718 GB, free: 14.77 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004316/0.6342, allocations: 0.7143 MB / 0.5725 GB, free: 14.07 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04688/0.681, allocations: 26.37 MB / 0.5982 GB, free: 3.035 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002696/0.6837, allocations: 2.525 MB / 0.6007 GB, free: 492 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002047/0.6858, allocations: 0.5867 MB / 0.6013 GB, free: 15.89 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001872/0.6877, allocations: 1.261 MB / 0.6025 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of SimCode: time 1.143e-06/0.6877, allocations: 3.938 kB / 0.6025 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3503/1.038, allocations: 67.51 MB / 0.6684 GB, free: 141.2 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.04/16.08, allocations: 11.81 kB / 0.6684 GB, free: 141.2 MB / 0.5137 GB " [Timeout remaining time 644] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.734825292951427] Failed to read output from testmodel.py, exit status != 0: ['time', '// aims.i_0_r', 'aims.ir[1]', 'aims.ir[2]', 'aims.idq_rr[1]', 'aims.idq_rr[2]', 'aims.is[1]', 'aims.is[2]', 'aims.idq_sr[1]', 'aims.idq_sr[2]', 'loadInertia.phi', 'loadInertia.w'] 16.25799500598805 16.275057909 15.849785547 Calling exit ...