Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.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.001068/0.001068, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001095/0.001095, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.914/0.914, allocations: 173.4 MB / 200.4 MB, free: 9.434 MB / 186.7 MB " [Timeout remaining time 179] 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_YD,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.013e-06/2.013e-06, allocations: 0 / 318.4 MB, free: 6.344 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.385e-05/2.586e-05, allocations: 5.516 kB / 318.4 MB, free: 6.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.007482/0.007508, allocations: 9.093 MB / 327.5 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005075/0.01258, allocations: 3.05 MB / 330.6 MB, free: 10.14 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009192/0.0135, allocations: 67.56 kB / 330.7 MB, free: 10.07 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001181/0.01468, allocations: 0.6985 MB / 331.4 MB, free: 9.371 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00159/0.01627, allocations: 0.9585 MB / 332.3 MB, free: 8.406 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005797/0.01685, allocations: 423.2 kB / 332.7 MB, free: 7.992 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00245/0.0193, allocations: 3.505 MB / 336.2 MB, free: 4.469 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001281/0.02059, allocations: 1.377 MB / 337.6 MB, free: 3.031 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002251/0.02284, allocations: 2.249 MB / 339.9 MB, free: 0.7734 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001436/0.02427, allocations: 1.66 MB / 341.5 MB, free: 15.11 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003247/0.0246, allocations: 400 kB / 341.9 MB, free: 14.72 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005018/0.0251, allocations: 483.7 kB / 342.4 MB, free: 14.25 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006269/0.02573, allocations: 1.153 MB / 343.5 MB, free: 13.09 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009182/0.02664, allocations: 1.224 MB / 344.8 MB, free: 11.86 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003208/0.02985, allocations: 5.29 MB / 350 MB, free: 6.559 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.02986, allocations: 4 kB / 350.1 MB, free: 6.555 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.02986, allocations: 0 / 350.1 MB, free: 6.555 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.235e-05/0.02991, allocations: 0 / 350.1 MB, free: 6.555 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 658 * Number of variables: 658 Notification: Performance of Generate backend data structure: time 0.004131/0.03404, allocations: 3.515 MB / 353.6 MB, free: 2.992 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.03408, allocations: 8.922 kB / 353.6 MB, free: 2.984 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003157/0.0344, allocations: 367 kB / 353.9 MB, free: 2.617 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005254/0.03492, allocations: 374.8 kB / 354.3 MB, free: 2.25 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002069/0.03699, allocations: 1.854 MB / 356.2 MB, free: 364 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001012/0.03709, allocations: 205.4 kB / 356.4 MB, free: 156 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002515/0.03734, allocations: 260.3 kB / 356.6 MB, free: 15.9 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003597/0.04094, allocations: 3.632 MB / 360.2 MB, free: 12.14 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.194e-05/0.04098, allocations: 11.88 kB / 360.3 MB, free: 12.13 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001696/0.04115, allocations: 104 kB / 360.4 MB, free: 12.03 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002394/0.04139, allocations: 112.9 kB / 360.5 MB, free: 11.91 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003303/0.04469, allocations: 3.087 MB / 363.6 MB, free: 8.812 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009538/0.05423, allocations: 9.791 MB / 373.3 MB, free: 14.75 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002074/0.05631, allocations: 2.043 MB / 375.4 MB, free: 12.72 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001287/0.05759, allocations: 1.297 MB / 376.7 MB, free: 11.41 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001564/0.05775, allocations: 53.27 kB / 376.7 MB, free: 11.36 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001174/0.05892, allocations: 1.252 MB / 378 MB, free: 10.06 MB / 346.7 MB Notification: Performance of pre-optimization done (n=156): time 3.096e-06/0.05893, allocations: 0 / 378 MB, free: 10.06 MB / 346.7 MB Notification: Performance of matching and sorting (n=172): time 0.01198/0.07091, allocations: 8.447 MB / 386.4 MB, free: 1.562 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001011/0.07101, allocations: 180.2 kB / 386.6 MB, free: 1.348 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001914/0.07293, allocations: 1.859 MB / 388.5 MB, free: 15.49 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.192e-05/0.07301, allocations: 53.7 kB / 388.5 MB, free: 15.43 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007082/0.07372, allocations: 1.226 MB / 389.7 MB, free: 14.19 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003333/0.07405, allocations: 0.5771 MB / 390.3 MB, free: 13.61 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003733/0.07442, allocations: 351.5 kB / 390.7 MB, free: 13.26 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.472e-05/0.0745, allocations: 305.1 kB / 391 MB, free: 12.96 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001059/0.07556, allocations: 0.9955 MB / 392 MB, free: 11.96 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001269/0.07683, allocations: 1.539 MB / 393.5 MB, free: 10.24 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002255/0.07908, allocations: 2.454 MB / 396 MB, free: 7.641 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.065e-06/0.07909, allocations: 7.938 kB / 396 MB, free: 7.633 MB / 362.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003515/0.0826, allocations: 3.32 MB / 399.3 MB, free: 4.289 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.188e-05/0.08263, allocations: 12.09 kB / 399.3 MB, free: 4.277 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.482e-05/0.08264, allocations: 12 kB / 399.3 MB, free: 4.266 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001211/0.08385, allocations: 0.8763 MB / 400.2 MB, free: 3.379 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006479/0.0845, allocations: 335.5 kB / 400.5 MB, free: 3.051 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007457/0.09196, allocations: 10.04 MB / 410.5 MB, free: 8.672 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008937/0.09285, allocations: 127.9 kB / 410.7 MB, free: 8.547 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.302e-05/0.09294, allocations: 71.98 kB / 410.7 MB, free: 8.477 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 24 (booleanStepYD[3].y,booleanStepYD[2].y,booleanStepYD[1].y,switchYD.logicalDelay[3].tSwitch,$PRE.switchYD.logicalDelay[3].tSwitch,switchYD.logicalDelay[2].tSwitch,$PRE.switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[1].tSwitch,$PRE.switchYD.logicalDelay[1].tSwitch,switchYD.idealOpener.control[3],switchYD.idealOpener.control[2],switchYD.idealOpener.control[1],switchYD.idealCloser.control[3],switchYD.idealCloser.control[2],switchYD.idealCloser.control[1],idealCloser.control[3],idealCloser.control[2],idealCloser.control[1],$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (185): * Single equations (assignments): 180 * 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 {(2,12,100.0%), (9,25,33.3%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001074/0.09402, allocations: 0.9252 MB / 411.7 MB, free: 7.543 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002099/0.09423, allocations: 214.6 kB / 411.9 MB, free: 7.332 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003396/0.09762, allocations: 3.087 MB / 415 MB, free: 4.211 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.168e-06/0.09763, allocations: 16 kB / 415 MB, free: 4.195 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.558e-06/0.09764, allocations: 8 kB / 415 MB, free: 4.188 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.315e-05/0.09766, allocations: 11.97 kB / 415 MB, free: 4.176 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006348/0.104, allocations: 5.866 MB / 420.9 MB, free: 14.21 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.104, allocations: 0 / 420.9 MB, free: 14.21 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004798/0.1045, allocations: 211.7 kB / 421.1 MB, free: 14 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001288/0.1058, allocations: 0.9292 MB / 422 MB, free: 13.06 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.258e-05/0.1059, allocations: 43.97 kB / 422 MB, free: 13.02 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008181/0.1141, allocations: 11.51 MB / 433.6 MB, free: 1.055 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.1141, allocations: 0 / 433.6 MB, free: 1.055 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00457/0.1186, allocations: 4.492 MB / 438 MB, free: 12.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006412/0.1193, allocations: 438.4 kB / 438.5 MB, free: 12.07 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000166/0.1194, allocations: 39.98 kB / 438.5 MB, free: 12.03 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005531/0.12, allocations: 103.9 kB / 438.6 MB, free: 11.93 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002942/0.1203, allocations: 204.8 kB / 438.8 MB, free: 11.72 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.661e-05/0.1203, allocations: 47.98 kB / 438.9 MB, free: 11.68 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00132/0.1217, allocations: 1.258 MB / 440.1 MB, free: 10.43 MB / 410.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1217, allocations: 0 / 440.1 MB, free: 10.43 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001364/0.123, allocations: 0.6328 MB / 440.8 MB, free: 9.793 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],quadraticLoadTorque.phi) * Number of discrete variables: 21 (booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[3].tSwitch) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (123): * Single equations (assignments): 115 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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 {(2,12,100.0%), (1,1,100.0%), (9,25,33.3%), (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.005075/0.1281, allocations: 5.166 MB / 445.9 MB, free: 4.562 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003703/0.1318, allocations: 2.998 MB / 448.9 MB, free: 1.512 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.1318, allocations: 3.938 kB / 448.9 MB, free: 1.508 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1373/0.2691, allocations: 2.083 MB / 451 MB, free: 123.7 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002466/0.2715, allocations: 0.5686 MB / 451.6 MB, free: 123.6 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02488/0.2964, allocations: 22.4 MB / 474 MB, free: 108.8 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001059/0.2975, allocations: 1.626 MB / 475.6 MB, free: 107.2 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001019/0.2985, allocations: 461.5 kB / 476.1 MB, free: 106.7 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006777/0.2992, allocations: 1.012 MB / 477.1 MB, free: 105.7 MB / 410.7 MB Notification: Performance of SimCode: time 1.904e-06/0.2992, allocations: 0 / 477.1 MB, free: 105.7 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07098/0.3702, allocations: 64.14 MB / 0.5285 GB, free: 42.21 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.547/8.917, allocations: 3.984 kB / 0.5285 GB, free: 42.21 MB / 410.7 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD_res.csv --start-time 0 --stop-time 2.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.809038691222668] 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'] 9.031446300446987 9.039823473 9.008619089 Calling exit ...