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.001663/0.001663, allocations: 113.6 kB / 21.19 MB, free: 0.7031 MB / 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.001888/0.001888, allocations: 208.6 kB / 24.49 MB, free: 4.055 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.416/1.416, allocations: 207.6 MB / 235.3 MB, free: 10 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.001754/0.001754, allocations: 47.92 kB / 347.2 MB, free: 10.03 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3034/0.3052, allocations: 49.16 MB / 396.4 MB, free: 8.977 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.01544/0.3206, allocations: 13.79 MB / 410.2 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01236/0.333, allocations: 4.546 MB / 414.7 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004644/0.3376, allocations: 88 kB / 414.8 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004108/0.3417, allocations: 1.092 MB / 415.9 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005681/0.3474, allocations: 1.391 MB / 417.3 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003039/0.3505, allocations: 0.9467 MB / 418.2 MB, free: 9.352 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007533/0.358, allocations: 4.759 MB / 423 MB, free: 6.426 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003504/0.3615, allocations: 2.002 MB / 425 MB, free: 5.113 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004361/0.3659, allocations: 2.254 MB / 427.2 MB, free: 3.797 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005022/0.3709, allocations: 2.498 MB / 429.7 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001132/0.372, allocations: 0.5898 MB / 430.3 MB, free: 1.215 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002487/0.3745, allocations: 0.7966 MB / 431.1 MB, free: 428 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001366/0.3759, allocations: 1.352 MB / 432.5 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003907/0.3798, allocations: 2.462 MB / 434.9 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01014/0.3899, allocations: 7.795 MB / 442.7 MB, free: 4.773 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.698e-06/0.3899, allocations: 8 kB / 442.7 MB, free: 4.766 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3899, allocations: 0 / 442.7 MB, free: 4.766 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000213/0.3901, allocations: 7.938 kB / 442.7 MB, free: 4.758 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.01471/0.4049, allocations: 5.062 MB / 447.8 MB, free: 15.64 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.008e-05/0.4049, allocations: 11.98 kB / 447.8 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009338/0.4058, allocations: 0.5062 MB / 448.3 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004415/0.4103, allocations: 0.8921 MB / 449.2 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006116/0.4164, allocations: 2.612 MB / 451.8 MB, free: 11.56 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002769/0.4166, allocations: 279.2 kB / 452.1 MB, free: 11.29 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008911/0.4175, allocations: 356 kB / 452.4 MB, free: 10.94 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01052/0.4281, allocations: 5.033 MB / 457.5 MB, free: 5.852 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.508e-05/0.4281, allocations: 7.953 kB / 457.5 MB, free: 5.844 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003766/0.4285, allocations: 148 kB / 457.6 MB, free: 5.699 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001671/0.4287, allocations: 163.2 kB / 457.8 MB, free: 5.539 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008588/0.4373, allocations: 4.381 MB / 462.2 MB, free: 1.152 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02898/0.4663, allocations: 15.5 MB / 477.7 MB, free: 1.293 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006158/0.4724, allocations: 3.225 MB / 480.9 MB, free: 14.23 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002697/0.4751, allocations: 1.573 MB / 482.5 MB, free: 12.67 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008825/0.4839, allocations: 4.419 MB / 486.9 MB, free: 8.219 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.51e-05/0.484, allocations: 55.88 kB / 486.9 MB, free: 8.156 MB / 398.1 MB Notification: Performance of pre-optimization done (n=161): time 3.978e-06/0.484, allocations: 0 / 486.9 MB, free: 8.156 MB / 398.1 MB Notification: Performance of matching and sorting (n=164): time 0.0177/0.5017, allocations: 7.467 MB / 494.4 MB, free: 0.6406 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.375e-05/0.5017, allocations: 72.66 kB / 494.5 MB, free: 0.5547 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003485/0.5052, allocations: 2.159 MB / 496.6 MB, free: 14.36 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002051/0.5054, allocations: 53.7 kB / 496.7 MB, free: 14.3 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001416/0.5068, allocations: 1.663 MB / 498.4 MB, free: 12.62 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005804/0.5074, allocations: 0.5771 MB / 498.9 MB, free: 12.04 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000606/0.508, allocations: 363.4 kB / 499.3 MB, free: 11.68 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.5082, allocations: 305.1 kB / 499.6 MB, free: 11.38 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001635/0.5098, allocations: 0.9408 MB / 0.4888 GB, free: 10.43 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002016/0.5118, allocations: 1.461 MB / 0.4902 GB, free: 8.762 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003699/0.5155, allocations: 2.503 MB / 0.4927 GB, free: 6.051 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.124e-05/0.5155, allocations: 4 kB / 0.4927 GB, free: 6.047 MB / 414.1 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.005955/0.5215, allocations: 3.265 MB / 0.4959 GB, free: 2.758 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.182e-05/0.5215, allocations: 12 kB / 0.4959 GB, free: 2.746 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.919e-05/0.5215, allocations: 16 kB / 0.4959 GB, free: 2.73 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001858/0.5234, allocations: 0.7363 MB / 0.4966 GB, free: 1.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001513/0.5249, allocations: 379.4 kB / 0.497 GB, free: 1.609 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01286/0.5378, allocations: 10.93 MB / 0.5076 GB, free: 6.227 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001744/0.5395, allocations: 88.42 kB / 0.5077 GB, free: 6.141 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002181/0.5397, allocations: 75.98 kB / 0.5078 GB, free: 6.066 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.002384/0.5421, allocations: 1.219 MB / 0.509 GB, free: 4.836 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005678/0.5427, allocations: 238.5 kB / 0.5092 GB, free: 4.602 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005834/0.5485, allocations: 2.982 MB / 0.5121 GB, free: 1.59 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.983e-05/0.5485, allocations: 16 kB / 0.5121 GB, free: 1.574 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.267e-05/0.5486, allocations: 12 kB / 0.5121 GB, free: 1.562 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.421e-05/0.5486, allocations: 7.969 kB / 0.5122 GB, free: 1.555 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01197/0.5606, allocations: 6.393 MB / 0.5184 GB, free: 11.06 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.506e-06/0.5606, allocations: 3.938 kB / 0.5184 GB, free: 11.05 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008541/0.5614, allocations: 175.8 kB / 0.5186 GB, free: 10.88 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002326/0.5638, allocations: 0.9028 MB / 0.5195 GB, free: 9.961 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001286/0.5639, allocations: 39.98 kB / 0.5195 GB, free: 9.922 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01808/0.582, allocations: 15.55 MB / 0.5347 GB, free: 9.684 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.582, allocations: 3.938 kB / 0.5347 GB, free: 9.68 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007622/0.5896, allocations: 4.345 MB / 0.5389 GB, free: 5.285 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001484/0.5911, allocations: 478.4 kB / 0.5394 GB, free: 4.816 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003643/0.5914, allocations: 43.92 kB / 0.5394 GB, free: 4.773 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001008/0.5924, allocations: 75.94 kB / 0.5395 GB, free: 4.699 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004702/0.5929, allocations: 168.9 kB / 0.5397 GB, free: 4.531 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001068/0.593, allocations: 47.98 kB / 0.5397 GB, free: 4.484 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002475/0.5955, allocations: 1.481 MB / 0.5411 GB, free: 2.984 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5955, allocations: 0 / 0.5411 GB, free: 2.984 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002729/0.5982, allocations: 0.707 MB / 0.5418 GB, free: 2.277 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.007865/0.6061, allocations: 4.946 MB / 0.5467 GB, free: 13.26 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005279/0.6114, allocations: 2.964 MB / 0.5496 GB, free: 10.24 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.022e-06/0.6114, allocations: 0 / 0.5496 GB, free: 10.24 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003795/0.6152, allocations: 2.181 MB / 0.5517 GB, free: 7.98 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003322/0.6185, allocations: 0.6364 MB / 0.5523 GB, free: 7.34 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.239/0.8575, allocations: 24.8 MB / 0.5765 GB, free: 139.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002422/0.8599, allocations: 2.677 MB / 0.5791 GB, free: 138.2 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001415/0.8613, allocations: 481 kB / 0.5796 GB, free: 138.2 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001303/0.8626, allocations: 1.317 MB / 0.5809 GB, free: 137 MB / 478.1 MB Notification: Performance of SimCode: time 1.072e-06/0.8626, allocations: 1.062 kB / 0.5809 GB, free: 137 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1183/0.981, allocations: 66.18 MB / 0.6455 GB, free: 76.15 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.56/17.54, allocations: 8 kB / 0.6455 GB, free: 76.14 MB / 478.1 MB " [Timeout remaining time 642] (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: 20.1344028780004] 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'] 17.689307282998925 17.699671166 17.307014491 Calling exit ...