Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.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.0008548/0.0008548, allocations: 83.69 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.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.0008005/0.0008005, allocations: 170 kB / 23.95 MB, free: 0.6172 MB / 18.57 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 0.8738/0.8738, allocations: 177.1 MB / 204.2 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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.Transformers.IMC_Transformer,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.953e-06/1.953e-06, allocations: 0 / 324.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.061e-05/2.256e-05, allocations: 6.219 kB / 324.6 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer): time 0.009312/0.009335, allocations: 11.36 MB / 336 MB, free: 4.492 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005655/0.01499, allocations: 4.054 MB / 340 MB, free: 428 kB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000865/0.01585, allocations: 99.38 kB / 340.1 MB, free: 328 kB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001336/0.01719, allocations: 0.974 MB / 341.1 MB, free: 15.34 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001559/0.01875, allocations: 1.288 MB / 342.4 MB, free: 14.04 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005757/0.01933, allocations: 0.5265 MB / 342.9 MB, free: 13.52 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002611/0.02194, allocations: 4.81 MB / 347.7 MB, free: 8.68 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001619/0.02356, allocations: 2.011 MB / 349.7 MB, free: 6.609 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002525/0.02608, allocations: 3.175 MB / 352.9 MB, free: 3.441 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001852/0.02793, allocations: 2.283 MB / 355.2 MB, free: 1.152 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004819/0.02841, allocations: 0.5547 MB / 355.7 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006598/0.02907, allocations: 0.6599 MB / 356.4 MB, free: 15.93 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008512/0.02992, allocations: 1.574 MB / 358 MB, free: 14.36 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001228/0.03115, allocations: 1.731 MB / 359.7 MB, free: 12.62 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00466/0.03581, allocations: 7.557 MB / 367.3 MB, free: 5.047 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.03582, allocations: 0 / 367.3 MB, free: 5.047 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.03582, allocations: 4 kB / 367.3 MB, free: 5.043 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001031/0.03592, allocations: 0 / 367.3 MB, free: 5.043 MB / 330.7 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.00564/0.04156, allocations: 4.711 MB / 372 MB, free: 284 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/0.0416, allocations: 8.031 kB / 372 MB, free: 276 kB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004654/0.04207, allocations: 0.4942 MB / 372.5 MB, free: 15.77 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009249/0.04299, allocations: 0.5526 MB / 373 MB, free: 15.21 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00282/0.04581, allocations: 2.536 MB / 375.6 MB, free: 12.6 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001378/0.04595, allocations: 267.4 kB / 375.8 MB, free: 12.34 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003493/0.0463, allocations: 367.9 kB / 376.2 MB, free: 11.98 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005157/0.05146, allocations: 5.283 MB / 381.5 MB, free: 6.574 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.522e-05/0.05151, allocations: 7.953 kB / 381.5 MB, free: 6.566 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002313/0.05174, allocations: 148 kB / 381.6 MB, free: 6.422 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001136/0.05186, allocations: 179.1 kB / 381.8 MB, free: 6.246 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004465/0.05632, allocations: 4.294 MB / 386.1 MB, free: 1.945 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01294/0.06927, allocations: 13.39 MB / 399.5 MB, free: 4.23 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002658/0.07192, allocations: 2.696 MB / 402.2 MB, free: 1.562 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00191/0.07383, allocations: 1.874 MB / 404.1 MB, free: 15.69 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001854/0.07402, allocations: 53.91 kB / 404.1 MB, free: 15.64 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.313e-05/0.07406, allocations: 60.55 kB / 404.2 MB, free: 15.57 MB / 378.7 MB Notification: Performance of pre-optimization done (n=198): time 3.827e-06/0.07407, allocations: 0 / 404.2 MB, free: 15.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=218): time 0.01198/0.08605, allocations: 9.621 MB / 413.8 MB, free: 5.934 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.056e-05/0.0861, allocations: 73.41 kB / 413.9 MB, free: 5.852 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002522/0.08862, allocations: 2.541 MB / 416.4 MB, free: 3.289 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000106/0.08873, allocations: 61.7 kB / 416.5 MB, free: 3.223 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008216/0.08955, allocations: 1.662 MB / 418.1 MB, free: 1.543 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004123/0.08996, allocations: 0.7513 MB / 418.9 MB, free: 0.7852 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004582/0.09042, allocations: 420.4 kB / 419.3 MB, free: 376 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.294e-05/0.09049, allocations: 301.1 kB / 419.6 MB, free: 72 kB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001313/0.09181, allocations: 1.301 MB / 420.9 MB, free: 14.77 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001586/0.09339, allocations: 1.778 MB / 422.7 MB, free: 12.8 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002877/0.09627, allocations: 3.212 MB / 425.9 MB, free: 9.402 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.464e-06/0.09628, allocations: 4 kB / 425.9 MB, free: 9.398 MB / 394.7 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.00431/0.1006, allocations: 4.069 MB / 429.9 MB, free: 5.305 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.995e-05/0.1006, allocations: 12 kB / 430 MB, free: 5.293 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.455e-05/0.1006, allocations: 12 kB / 430 MB, free: 5.281 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001425/0.102, allocations: 0.8877 MB / 430.8 MB, free: 4.379 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001047/0.1031, allocations: 0.5227 MB / 431.4 MB, free: 3.855 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006444/0.1095, allocations: 9.075 MB / 440.4 MB, free: 10.44 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000888/0.1104, allocations: 115.9 kB / 440.6 MB, free: 10.33 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001133/0.1105, allocations: 91.98 kB / 440.7 MB, free: 10.24 MB / 410.7 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.001571/0.1121, allocations: 1.215 MB / 441.9 MB, free: 9.012 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002758/0.1124, allocations: 286.2 kB / 442.1 MB, free: 8.73 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003693/0.1161, allocations: 3.703 MB / 445.8 MB, free: 4.996 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.696e-06/0.1161, allocations: 20 kB / 445.9 MB, free: 4.977 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.1161, allocations: 8 kB / 445.9 MB, free: 4.969 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.199e-05/0.1161, allocations: 15.95 kB / 445.9 MB, free: 4.953 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.15/0.2661, allocations: 7.532 MB / 453.4 MB, free: 112 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.317e-06/0.2661, allocations: 7.375 kB / 453.4 MB, free: 112 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008697/0.267, allocations: 382.9 kB / 453.8 MB, free: 112 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001576/0.2686, allocations: 0.9259 MB / 454.7 MB, free: 111.9 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.606e-05/0.2686, allocations: 54.62 kB / 454.8 MB, free: 111.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005597/0.2742, allocations: 10.59 MB / 465.4 MB, free: 104.6 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.776e-06/0.2742, allocations: 7.844 kB / 465.4 MB, free: 104.6 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00455/0.2788, allocations: 5.501 MB / 470.9 MB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008075/0.2796, allocations: 0.5771 MB / 471.5 MB, free: 100.5 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001943/0.2798, allocations: 51.23 kB / 471.5 MB, free: 100.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006738/0.2805, allocations: 116.4 kB / 471.6 MB, free: 100.4 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002212/0.2807, allocations: 193.8 kB / 471.8 MB, free: 100.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.31e-05/0.2808, allocations: 55.56 kB / 471.9 MB, free: 100.2 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001412/0.2822, allocations: 1.742 MB / 473.6 MB, free: 98.75 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2822, allocations: 0 / 473.6 MB, free: 98.75 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001246/0.2834, allocations: 0.795 MB / 474.4 MB, free: 97.96 MB / 410.7 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.005348/0.2888, allocations: 6.188 MB / 480.6 MB, free: 91.88 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003964/0.2927, allocations: 3.623 MB / 484.2 MB, free: 88.25 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.2927, allocations: 0 / 484.2 MB, free: 88.25 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002691/0.2954, allocations: 2.311 MB / 486.5 MB, free: 85.91 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00206/0.2975, allocations: 0.8016 MB / 487.3 MB, free: 85.15 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02651/0.324, allocations: 29.66 MB / 0.5049 GB, free: 54.79 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00128/0.3253, allocations: 2.232 MB / 0.507 GB, free: 52.52 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001128/0.3264, allocations: 0.6868 MB / 0.5077 GB, free: 51.83 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001028/0.3274, allocations: 1.414 MB / 0.5091 GB, free: 50.42 MB / 410.7 MB Notification: Performance of SimCode: time 7.72e-07/0.3274, allocations: 4 kB / 0.5091 GB, free: 50.41 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07776/0.4052, allocations: 78.28 MB / 0.5856 GB, free: 4.844 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.264/9.67, allocations: 3.375 kB / 0.5856 GB, free: 4.844 MB / 442.7 MB " [Timeout remaining time 650] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer_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_1_0_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.506484941579401] Failed to read output from testmodel.py, exit status != 0: ['time', '// aimc.i_0_s', 'aimc.idq_rr[1]', 'aimc.idq_rr[2]', 'aimc.idq_sr[1]', 'aimc.idq_sr[2]', 'aimc.is[1]', 'aimc.is[2]', 'loadInertia.phi', 'loadInertia.w', 'transformer.l2sigma.inductor[2].i', 'transformer.l2sigma.inductor[3].i'] 9.794607281684875 9.804799907 9.767198568 Calling exit ...