Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.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.0009178/0.0009178, allocations: 76.08 kB / 20.67 MB, free: 3.895 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.0008179/0.0008179, allocations: 153.1 kB / 23.93 MB, free: 0.6328 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.8589/0.8589, allocations: 173.4 MB / 200.4 MB, free: 9.449 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.Transformers.IMC_Transformer,fileNamePrefix="Modelica_4_0_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_0_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.423e-06/1.423e-06, allocations: 0 / 318.5 MB, free: 6.344 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.973e-05/2.115e-05, allocations: 6.219 kB / 318.5 MB, free: 6.336 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer): time 0.009133/0.009154, allocations: 11.31 MB / 329.8 MB, free: 10.97 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005953/0.01511, allocations: 3.984 MB / 333.8 MB, free: 6.973 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001141/0.01625, allocations: 103.3 kB / 333.9 MB, free: 6.871 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001581/0.01783, allocations: 0.9663 MB / 334.8 MB, free: 5.898 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002252/0.02008, allocations: 1.281 MB / 336.1 MB, free: 4.609 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007874/0.02087, allocations: 0.5226 MB / 336.6 MB, free: 4.086 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003248/0.02412, allocations: 4.802 MB / 341.4 MB, free: 15.26 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00182/0.02594, allocations: 2.007 MB / 343.4 MB, free: 13.19 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002785/0.02872, allocations: 3.158 MB / 346.6 MB, free: 10.04 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001911/0.03063, allocations: 2.284 MB / 348.9 MB, free: 7.746 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004752/0.03111, allocations: 0.5508 MB / 349.4 MB, free: 7.195 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000649/0.03176, allocations: 0.6404 MB / 350.1 MB, free: 6.555 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008439/0.0326, allocations: 1.578 MB / 351.7 MB, free: 4.973 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001206/0.03381, allocations: 1.727 MB / 353.4 MB, free: 3.242 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004338/0.03815, allocations: 7.537 MB / 360.9 MB, free: 11.68 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.03815, allocations: 4 kB / 360.9 MB, free: 11.68 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.03815, allocations: 0 / 360.9 MB, free: 11.68 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.924e-05/0.03823, allocations: 0 / 360.9 MB, free: 11.68 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.005547/0.04378, allocations: 4.681 MB / 365.6 MB, free: 6.949 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.04382, allocations: 16.92 kB / 365.6 MB, free: 6.934 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004647/0.04428, allocations: 0.4981 MB / 366.1 MB, free: 6.426 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008031/0.04509, allocations: 0.5175 MB / 366.6 MB, free: 5.906 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00285/0.04794, allocations: 2.516 MB / 369.2 MB, free: 3.348 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001417/0.04808, allocations: 267.4 kB / 369.4 MB, free: 3.086 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003464/0.04842, allocations: 364 kB / 369.8 MB, free: 2.73 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005289/0.05371, allocations: 5.276 MB / 375 MB, free: 13.33 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.046e-05/0.05377, allocations: 11.94 kB / 375.1 MB, free: 13.32 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002438/0.05402, allocations: 148 kB / 375.2 MB, free: 13.17 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001309/0.05415, allocations: 179.1 kB / 375.4 MB, free: 13 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004794/0.05894, allocations: 4.294 MB / 379.7 MB, free: 8.695 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01377/0.07272, allocations: 13.39 MB / 393.1 MB, free: 10.97 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002728/0.07544, allocations: 2.692 MB / 395.8 MB, free: 8.309 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002034/0.07748, allocations: 1.87 MB / 397.6 MB, free: 6.438 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002081/0.07769, allocations: 57.97 kB / 397.7 MB, free: 6.383 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.674e-05/0.07773, allocations: 60.55 kB / 397.7 MB, free: 6.312 MB / 362.7 MB Notification: Performance of pre-optimization done (n=198): time 3.947e-06/0.07774, allocations: 0 / 397.7 MB, free: 6.312 MB / 362.7 MB Notification: Performance of matching and sorting (n=218): time 0.01203/0.08976, allocations: 9.605 MB / 407.3 MB, free: 12.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.086e-05/0.0898, allocations: 73.41 kB / 407.4 MB, free: 12.61 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002418/0.09222, allocations: 2.533 MB / 410 MB, free: 10.06 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.821e-05/0.09232, allocations: 65.7 kB / 410 MB, free: 9.988 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007793/0.0931, allocations: 1.65 MB / 411.7 MB, free: 8.32 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003877/0.09349, allocations: 0.7553 MB / 412.4 MB, free: 7.559 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004361/0.09392, allocations: 412.5 kB / 412.8 MB, free: 7.148 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.942e-05/0.09399, allocations: 305.1 kB / 413.1 MB, free: 6.848 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001312/0.0953, allocations: 1.301 MB / 414.4 MB, free: 5.543 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001574/0.09688, allocations: 1.774 MB / 416.2 MB, free: 3.578 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002953/0.09983, allocations: 3.211 MB / 419.4 MB, free: 192 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.323e-06/0.09984, allocations: 4 kB / 419.4 MB, free: 188 kB / 378.7 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.004424/0.1043, allocations: 4.069 MB / 423.5 MB, free: 12.09 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.491e-05/0.1043, allocations: 12.47 kB / 423.5 MB, free: 12.08 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.663e-05/0.1043, allocations: 16 kB / 423.5 MB, free: 12.06 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001525/0.1058, allocations: 0.8794 MB / 424.4 MB, free: 11.17 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001093/0.1069, allocations: 0.5266 MB / 424.9 MB, free: 10.64 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007016/0.1139, allocations: 9.081 MB / 434 MB, free: 1.223 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001367/0.1153, allocations: 119.9 kB / 434.1 MB, free: 1.105 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001501/0.1155, allocations: 88 kB / 434.2 MB, free: 1.02 MB / 394.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.002271/0.1177, allocations: 1.212 MB / 435.4 MB, free: 15.79 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006091/0.1183, allocations: 286.2 kB / 435.7 MB, free: 15.51 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004674/0.123, allocations: 3.703 MB / 439.4 MB, free: 11.77 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-05/0.123, allocations: 27.94 kB / 439.4 MB, free: 11.75 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.609e-05/0.123, allocations: 8 kB / 439.4 MB, free: 11.74 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.539e-05/0.1231, allocations: 7.969 kB / 439.4 MB, free: 11.73 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0109/0.134, allocations: 7.532 MB / 447 MB, free: 4.094 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.825e-06/0.134, allocations: 4 kB / 447 MB, free: 4.09 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009373/0.1349, allocations: 387.8 kB / 447.4 MB, free: 3.711 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001711/0.1366, allocations: 0.9291 MB / 448.3 MB, free: 2.766 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001525/0.1368, allocations: 59.97 kB / 448.3 MB, free: 2.707 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1689/0.3057, allocations: 10.56 MB / 458.9 MB, free: 113.5 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.3057, allocations: 0 / 458.9 MB, free: 113.5 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005993/0.3117, allocations: 5.501 MB / 464.4 MB, free: 111.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001309/0.313, allocations: 0.5762 MB / 465 MB, free: 111.3 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002515/0.3132, allocations: 55.05 kB / 465 MB, free: 111.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007202/0.314, allocations: 118.3 kB / 465.2 MB, free: 111.2 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000331/0.3143, allocations: 189.3 kB / 465.3 MB, free: 111.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.996e-05/0.3144, allocations: 59.23 kB / 465.4 MB, free: 111.2 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001645/0.316, allocations: 1.728 MB / 467.1 MB, free: 109.8 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.316, allocations: 0 / 467.1 MB, free: 109.8 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001683/0.3177, allocations: 0.7993 MB / 467.9 MB, free: 109 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.004933/0.3226, allocations: 6.199 MB / 474.1 MB, free: 103.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00354/0.3262, allocations: 3.624 MB / 477.7 MB, free: 99.91 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.65e-06/0.3262, allocations: 0 / 477.7 MB, free: 99.91 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001968/0.3281, allocations: 2.313 MB / 480.1 MB, free: 97.57 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002281/0.3304, allocations: 0.7856 MB / 480.8 MB, free: 96.84 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03292/0.3633, allocations: 29.61 MB / 0.4985 GB, free: 66.61 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00147/0.3648, allocations: 2.227 MB / 0.5007 GB, free: 64.35 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001529/0.3663, allocations: 0.6918 MB / 0.5013 GB, free: 63.65 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001272/0.3676, allocations: 1.41 MB / 0.5027 GB, free: 62.24 MB / 410.7 MB Notification: Performance of SimCode: time 3.236e-06/0.3676, allocations: 0 / 0.5027 GB, free: 62.24 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08675/0.4544, allocations: 78.06 MB / 0.579 GB, free: 0.8867 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.381/9.835, allocations: 3.719 kB / 0.579 GB, free: 0.8867 MB / 426.7 MB " [Timeout remaining time 650] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.708631246350706] 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.961549049243331 9.973890202 9.9339784 Calling exit ...