Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.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.001639/0.001639, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 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.002027/0.002027, allocations: 216.1 kB / 24.47 MB, free: 3.777 MB / 14.72 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 1.46/1.46, allocations: 207.7 MB / 235.3 MB, free: 9.809 MB / 190.1 MB " [Timeout remaining time 178] 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.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001876/0.001876, allocations: 51.92 kB / 347.2 MB, free: 9.879 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.255/0.2569, allocations: 49.15 MB / 396.4 MB, free: 8.875 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.01328/0.2702, allocations: 11.98 MB / 408.3 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00991/0.2801, allocations: 4.297 MB / 412.6 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003076/0.2832, allocations: 92.59 kB / 412.7 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003344/0.2865, allocations: 1.023 MB / 413.7 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005132/0.2916, allocations: 1.378 MB / 415.1 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002613/0.2943, allocations: 0.9149 MB / 416 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006478/0.3007, allocations: 4.749 MB / 420.8 MB, free: 8.594 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003317/0.304, allocations: 1.929 MB / 422.7 MB, free: 7.355 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003824/0.3079, allocations: 2.254 MB / 425 MB, free: 6.043 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004444/0.3123, allocations: 2.394 MB / 427.4 MB, free: 4.008 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001146/0.3135, allocations: 0.5859 MB / 428 MB, free: 3.422 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002067/0.3155, allocations: 0.7771 MB / 428.7 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001328/0.3169, allocations: 1.344 MB / 430.1 MB, free: 1.297 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003222/0.3201, allocations: 1.953 MB / 432 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0103/0.3304, allocations: 7.822 MB / 439.8 MB, free: 7.488 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.3304, allocations: 4 kB / 439.9 MB, free: 7.484 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3304, allocations: 4 kB / 439.9 MB, free: 7.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001892/0.3306, allocations: 0 / 439.9 MB, free: 7.48 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 945 * Number of variables: 945 Notification: Performance of Generate backend data structure: time 0.0164/0.347, allocations: 5.058 MB / 444.9 MB, free: 2.363 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.161e-05/0.347, allocations: 19.92 kB / 444.9 MB, free: 2.344 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001131/0.3482, allocations: 0.5023 MB / 445.4 MB, free: 1.832 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004647/0.3528, allocations: 0.8922 MB / 446.3 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006322/0.3591, allocations: 2.589 MB / 448.9 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002869/0.3594, allocations: 279.2 kB / 449.2 MB, free: 14.03 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009529/0.3604, allocations: 367.9 kB / 449.5 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01094/0.3713, allocations: 5.183 MB / 454.7 MB, free: 8.395 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001728/0.3715, allocations: 3.953 kB / 454.7 MB, free: 8.391 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004404/0.3719, allocations: 152 kB / 454.9 MB, free: 8.242 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001837/0.3721, allocations: 159.2 kB / 455 MB, free: 8.086 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00889/0.381, allocations: 4.373 MB / 459.4 MB, free: 3.707 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02603/0.407, allocations: 14.15 MB / 473.6 MB, free: 5.188 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006303/0.4133, allocations: 3.202 MB / 476.8 MB, free: 2.16 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002761/0.4161, allocations: 1.565 MB / 478.3 MB, free: 0.6016 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009254/0.4253, allocations: 4.013 MB / 482.3 MB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.776e-05/0.4254, allocations: 55.81 kB / 482.4 MB, free: 12.49 MB / 398.1 MB Notification: Performance of pre-optimization done (n=161): time 5.36e-06/0.4254, allocations: 0 / 482.4 MB, free: 12.49 MB / 398.1 MB Notification: Performance of matching and sorting (n=164): time 0.0196/0.445, allocations: 7.459 MB / 489.9 MB, free: 4.984 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.719e-05/0.4451, allocations: 68.72 kB / 489.9 MB, free: 4.902 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003992/0.4491, allocations: 2.19 MB / 492.1 MB, free: 2.676 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002135/0.4493, allocations: 49.7 kB / 492.2 MB, free: 2.621 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00172/0.451, allocations: 1.663 MB / 493.8 MB, free: 0.9414 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006706/0.4517, allocations: 0.5771 MB / 494.4 MB, free: 368 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006654/0.4524, allocations: 363.5 kB / 494.8 MB, free: 15.99 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.4525, allocations: 305.1 kB / 495.1 MB, free: 15.69 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001795/0.4543, allocations: 0.9486 MB / 496 MB, free: 14.74 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002349/0.4567, allocations: 1.482 MB / 497.5 MB, free: 13.04 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003936/0.4606, allocations: 2.503 MB / 500 MB, free: 10.33 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-05/0.4606, allocations: 4 kB / 500 MB, free: 10.33 MB / 414.1 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.006366/0.467, allocations: 3.265 MB / 0.4915 GB, free: 7.039 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.302e-05/0.467, allocations: 12 kB / 0.4915 GB, free: 7.027 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.158e-05/0.467, allocations: 19.98 kB / 0.4915 GB, free: 7.008 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001895/0.4689, allocations: 0.733 MB / 0.4922 GB, free: 6.262 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001585/0.4705, allocations: 379.4 kB / 0.4926 GB, free: 5.891 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0137/0.4842, allocations: 10.82 MB / 0.5031 GB, free: 10.61 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001772/0.486, allocations: 87.91 kB / 0.5032 GB, free: 10.53 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001759/0.4862, allocations: 72 kB / 0.5033 GB, free: 10.46 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * Number of states: 0 () * Number of discrete variables: 6 (booleanStepYD[3].y,booleanStepYD[2].y,booleanStepYD[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 (195): * Single equations (assignments): 190 * 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 {(1,8,100.0%), (9,19,33.3%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002213/0.4884, allocations: 1.216 MB / 0.5045 GB, free: 9.23 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004712/0.4889, allocations: 242.5 kB / 0.5047 GB, free: 8.992 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005945/0.4948, allocations: 2.974 MB / 0.5076 GB, free: 5.988 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.842e-05/0.4948, allocations: 19.94 kB / 0.5076 GB, free: 5.969 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.611e-05/0.4948, allocations: 12 kB / 0.5076 GB, free: 5.957 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.929e-05/0.4948, allocations: 11.97 kB / 0.5077 GB, free: 5.945 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01198/0.5068, allocations: 6.034 MB / 0.5135 GB, free: 15.81 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.166e-06/0.5068, allocations: 0 / 0.5135 GB, free: 15.81 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008991/0.5077, allocations: 171.8 kB / 0.5137 GB, free: 15.64 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002378/0.5101, allocations: 0.9148 MB / 0.5146 GB, free: 14.71 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000136/0.5103, allocations: 39.98 kB / 0.5146 GB, free: 14.67 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01928/0.5295, allocations: 15.39 MB / 0.5297 GB, free: 14.6 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.5295, allocations: 3.938 kB / 0.5297 GB, free: 14.6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008448/0.538, allocations: 4.341 MB / 0.5339 GB, free: 10.21 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00171/0.5397, allocations: 470.3 kB / 0.5344 GB, free: 9.746 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003902/0.5401, allocations: 47.86 kB / 0.5344 GB, free: 9.699 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001068/0.5412, allocations: 83.88 kB / 0.5345 GB, free: 9.617 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005475/0.5417, allocations: 157 kB / 0.5346 GB, free: 9.461 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001091/0.5418, allocations: 47.98 kB / 0.5347 GB, free: 9.414 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002471/0.5443, allocations: 1.485 MB / 0.5361 GB, free: 7.91 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5443, allocations: 0 / 0.5361 GB, free: 7.91 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002538/0.5468, allocations: 0.7031 MB / 0.5368 GB, free: 7.207 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,1,100.0%), (1,8,100.0%), (9,19,33.3%), (1,13,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008171/0.555, allocations: 4.961 MB / 0.5417 GB, free: 2.172 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005518/0.5605, allocations: 2.963 MB / 0.5446 GB, free: 15.15 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.169e-06/0.5605, allocations: 0.875 kB / 0.5446 GB, free: 15.15 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003768/0.5643, allocations: 2.181 MB / 0.5467 GB, free: 12.89 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003272/0.5676, allocations: 0.632 MB / 0.5473 GB, free: 12.26 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2292/0.7967, allocations: 24.79 MB / 0.5715 GB, free: 140.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002592/0.7993, allocations: 2.138 MB / 0.5736 GB, free: 139.6 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001603/0.8009, allocations: 479.9 kB / 0.5741 GB, free: 139.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001439/0.8024, allocations: 1.32 MB / 0.5753 GB, free: 138.5 MB / 478.1 MB Notification: Performance of SimCode: time 2.815e-06/0.8024, allocations: 0 / 0.5753 GB, free: 138.5 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1186/0.9209, allocations: 68.02 MB / 0.6418 GB, free: 79.3 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.81/15.73, allocations: 8.016 kB / 0.6418 GB, free: 79.29 MB / 478.1 MB " [Timeout remaining time 644] (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_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_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.442021539900452] Failed to read output from testmodel.py, exit status != 0: ['time', 'aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[1].Phi.re', 'aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im', 'aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter[1].Phi.re', 'aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im', '// aimc.stator.zeroInductor.i0', 'aimc.is[1]', 'aimc.is[2]', 'loadInertia.phi', 'loadInertia.w'] 15.894463036209345 15.916500414 15.581734539 Calling exit ...