Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_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.001265/0.001265, allocations: 87.62 kB / 21.43 MB, free: 3.133 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.006475/0.006475, allocations: 163.3 kB / 24.69 MB, free: 9.43 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8964/0.8964, allocations: 158.6 MB / 186.5 MB, free: 3.031 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.AIMC_Transformer,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_Transformers_AIMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_Transformers_AIMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.737e-06/3.737e-06, allocations: 0 / 298.5 MB, free: 3.477 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.74e-05/3.114e-05, allocations: 2.281 kB / 298.5 MB, free: 3.473 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer): time 0.1528/0.1528, allocations: 11.24 MB / 309.7 MB, free: 9.594 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.006522/0.1593, allocations: 4.044 MB / 313.8 MB, free: 6.738 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002127/0.1615, allocations: 86.75 kB / 313.9 MB, free: 6.699 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002159/0.1636, allocations: 0.9708 MB / 314.8 MB, free: 6.203 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003503/0.1671, allocations: 1.273 MB / 316.1 MB, free: 5.387 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001039/0.1682, allocations: 0.537 MB / 316.6 MB, free: 5.043 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.004731/0.1729, allocations: 4.843 MB / 321.5 MB, free: 2.523 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002119/0.175, allocations: 1.953 MB / 323.4 MB, free: 1.543 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005717/0.1807, allocations: 3.161 MB / 326.6 MB, free: 15.74 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004496/0.1852, allocations: 2.282 MB / 328.9 MB, free: 14.37 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001214/0.1864, allocations: 0.5535 MB / 329.4 MB, free: 14.37 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00158/0.188, allocations: 0.646 MB / 330.1 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001208/0.1892, allocations: 1.578 MB / 331.7 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002746/0.192, allocations: 1.725 MB / 333.4 MB, free: 11.82 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006416/0.1984, allocations: 7.541 MB / 340.9 MB, free: 4.258 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.1984, allocations: 0 / 340.9 MB, free: 4.258 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1984, allocations: 0 / 340.9 MB, free: 4.258 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001847/0.1986, allocations: 3.984 kB / 340.9 MB, free: 4.254 MB / 298.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.007951/0.2065, allocations: 4.666 MB / 345.6 MB, free: 15.53 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.813e-05/0.2066, allocations: 22.14 kB / 345.6 MB, free: 15.51 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005682/0.2071, allocations: 0.4942 MB / 346.1 MB, free: 15.01 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001029/0.2082, allocations: 0.5175 MB / 346.6 MB, free: 14.49 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003473/0.2116, allocations: 2.36 MB / 349 MB, free: 12.09 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001719/0.2118, allocations: 271.4 kB / 349.2 MB, free: 11.82 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003988/0.2122, allocations: 360.3 kB / 349.6 MB, free: 11.47 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006346/0.2186, allocations: 5.268 MB / 354.9 MB, free: 6.074 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.21e-05/0.2186, allocations: 11.88 kB / 354.9 MB, free: 6.062 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002431/0.2189, allocations: 148 kB / 355 MB, free: 5.918 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001323/0.219, allocations: 179.1 kB / 355.2 MB, free: 5.742 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00528/0.2243, allocations: 4.287 MB / 359.5 MB, free: 1.449 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01726/0.2415, allocations: 13.42 MB / 372.9 MB, free: 3.723 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002829/0.2444, allocations: 2.698 MB / 375.6 MB, free: 1.059 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002093/0.2465, allocations: 1.87 MB / 377.5 MB, free: 15.18 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002622/0.2467, allocations: 53.91 kB / 377.5 MB, free: 15.13 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.611e-05/0.2468, allocations: 56.56 kB / 377.6 MB, free: 15.07 MB / 346.7 MB Notification: Performance of pre-optimization done (n=198): time 3.607e-06/0.2468, allocations: 4 kB / 377.6 MB, free: 15.06 MB / 346.7 MB Notification: Performance of matching and sorting (n=218): time 0.01473/0.2615, allocations: 9.676 MB / 387.3 MB, free: 5.379 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.803e-05/0.2615, allocations: 77.41 kB / 387.3 MB, free: 5.293 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003111/0.2647, allocations: 2.529 MB / 389.9 MB, free: 2.742 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003065/0.265, allocations: 65.7 kB / 389.9 MB, free: 2.672 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001142/0.2661, allocations: 1.658 MB / 391.6 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000572/0.2667, allocations: 0.7514 MB / 392.3 MB, free: 244 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004722/0.2672, allocations: 420.4 kB / 392.7 MB, free: 15.82 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.308e-05/0.2672, allocations: 305.1 kB / 393 MB, free: 15.52 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001441/0.2687, allocations: 1.297 MB / 394.3 MB, free: 14.22 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001541/0.2702, allocations: 1.774 MB / 396.1 MB, free: 12.25 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003186/0.2734, allocations: 3.219 MB / 399.3 MB, free: 8.852 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.008e-05/0.2734, allocations: 8 kB / 399.3 MB, free: 8.844 MB / 362.7 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.004625/0.278, allocations: 4.073 MB / 403.4 MB, free: 4.746 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.635e-05/0.2781, allocations: 16.05 kB / 403.4 MB, free: 4.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.972e-05/0.2781, allocations: 16 kB / 403.4 MB, free: 4.715 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001778/0.2799, allocations: 0.8679 MB / 404.3 MB, free: 3.832 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00111/0.281, allocations: 0.5266 MB / 404.8 MB, free: 3.305 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007145/0.2881, allocations: 9.077 MB / 413.9 MB, free: 9.887 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001727/0.2898, allocations: 119.9 kB / 414 MB, free: 9.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002577/0.2901, allocations: 87.98 kB / 414.1 MB, free: 9.684 MB / 378.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.00209/0.2922, allocations: 1.212 MB / 415.3 MB, free: 8.461 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005756/0.2928, allocations: 294.2 kB / 415.6 MB, free: 8.172 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005039/0.2978, allocations: 3.703 MB / 419.3 MB, free: 4.434 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.062e-05/0.2978, allocations: 23.98 kB / 419.3 MB, free: 4.41 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.157e-06/0.2978, allocations: 12 kB / 419.4 MB, free: 4.398 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.472e-05/0.2978, allocations: 7.969 kB / 419.4 MB, free: 4.391 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01034/0.3082, allocations: 7.532 MB / 426.9 MB, free: 12.75 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.866e-06/0.3082, allocations: 4 kB / 426.9 MB, free: 12.74 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009002/0.3091, allocations: 387.7 kB / 427.3 MB, free: 12.36 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001698/0.3108, allocations: 0.9334 MB / 428.2 MB, free: 11.41 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001202/0.3109, allocations: 51.98 kB / 428.3 MB, free: 11.36 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007893/0.3188, allocations: 10.56 MB / 438.8 MB, free: 352 kB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.3188, allocations: 4 kB / 438.8 MB, free: 348 kB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006568/0.3254, allocations: 5.502 MB / 444.3 MB, free: 10.77 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001343/0.3267, allocations: 0.5761 MB / 444.9 MB, free: 10.19 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003807/0.3271, allocations: 47.98 kB / 444.9 MB, free: 10.14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008422/0.3279, allocations: 115.9 kB / 445.1 MB, free: 10.03 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003403/0.3283, allocations: 193.6 kB / 445.3 MB, free: 9.844 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001014/0.3284, allocations: 59.98 kB / 445.3 MB, free: 9.785 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002039/0.3304, allocations: 1.731 MB / 447 MB, free: 8.043 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3304, allocations: 4 kB / 447 MB, free: 8.039 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002426/0.3328, allocations: 0.7929 MB / 447.8 MB, free: 7.246 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 {(2,12,100.0%), (1,1,100.0%), (3,25,88.9%), (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.006814/0.3397, allocations: 6.195 MB / 454 MB, free: 0.9688 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004628/0.3443, allocations: 3.62 MB / 457.7 MB, free: 13.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/0.3443, allocations: 4 kB / 457.7 MB, free: 13.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002516/0.3468, allocations: 2.303 MB / 460 MB, free: 10.95 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002624/0.3494, allocations: 0.7999 MB / 460.8 MB, free: 10.14 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1734/0.5228, allocations: 29.61 MB / 490.4 MB, free: 130.5 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001618/0.5244, allocations: 2.235 MB / 492.6 MB, free: 129.9 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001411/0.5258, allocations: 0.679 MB / 493.3 MB, free: 129.9 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001087/0.5269, allocations: 1.411 MB / 494.7 MB, free: 128.7 MB / 426.7 MB Notification: Performance of SimCode: time 1.613e-06/0.5269, allocations: 3.719 kB / 494.7 MB, free: 128.7 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08797/0.6149, allocations: 78.05 MB / 0.5593 GB, free: 55.59 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.126/9.741, allocations: 4.062 kB / 0.5593 GB, free: 55.59 MB / 426.7 MB " [Timeout remaining time 650] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_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_3_2_3_Modelica_Electrical_Machines_Examples_Transformers_AIMC_Transformer.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.602573883719742] 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]', 'smee.is[1]', 'smee.is[2]', 'loadInertia.phi', 'loadInertia.w', 'transformer.l2sigma.inductor[2].i', 'transformer.l2sigma.inductor[3].i'] 9.867336368188262 9.873548222 9.673602449 Calling exit ...