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.001309/0.001309, allocations: 111.6 kB / 18.45 MB, free: 4.59 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.001363/0.001363, allocations: 215.2 kB / 21.42 MB, free: 1.629 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.443/1.443, allocations: 207.6 MB / 231.8 MB, free: 4.043 MB / 174.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.001758/0.001758, allocations: 51.92 kB / 342.3 MB, free: 9.98 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09338/0.09514, allocations: 49.13 MB / 391.4 MB, free: 8.684 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.01666/0.1118, allocations: 13.73 MB / 405.2 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01012/0.1219, allocations: 4.525 MB / 409.7 MB, free: 6.352 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002808/0.1247, allocations: 91.44 kB / 409.8 MB, free: 6.262 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003656/0.1284, allocations: 1.091 MB / 410.9 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005769/0.1341, allocations: 1.383 MB / 412.3 MB, free: 3.773 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002995/0.1371, allocations: 0.9392 MB / 413.2 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00702/0.1442, allocations: 4.748 MB / 417.9 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003581/0.1477, allocations: 2.564 MB / 420.5 MB, free: 11.44 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003314/0.1511, allocations: 2.247 MB / 422.7 MB, free: 9.184 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003712/0.1548, allocations: 2.495 MB / 425.2 MB, free: 6.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009076/0.1557, allocations: 0.5859 MB / 425.8 MB, free: 6.094 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001657/0.1573, allocations: 0.7927 MB / 426.6 MB, free: 5.301 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001213/0.1585, allocations: 1.348 MB / 428 MB, free: 3.949 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002812/0.1614, allocations: 2.466 MB / 430.4 MB, free: 1.473 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008685/0.17, allocations: 7.791 MB / 438.2 MB, free: 9.652 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.133e-06/0.1701, allocations: 11.92 kB / 438.2 MB, free: 9.641 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1701, allocations: 0 / 438.2 MB, free: 9.641 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001657/0.1702, allocations: 4 kB / 438.2 MB, free: 9.637 MB / 366.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.01325/0.1835, allocations: 5.129 MB / 443.4 MB, free: 4.43 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.1835, allocations: 12.03 kB / 443.4 MB, free: 4.418 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007703/0.1843, allocations: 0.5062 MB / 443.9 MB, free: 3.902 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004455/0.1887, allocations: 0.8843 MB / 444.8 MB, free: 3.016 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005104/0.1938, allocations: 2.684 MB / 447.5 MB, free: 288 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002315/0.1941, allocations: 271.2 kB / 447.7 MB, free: 16 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006895/0.1948, allocations: 363.9 kB / 448.1 MB, free: 15.66 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009427/0.2042, allocations: 5.029 MB / 453.1 MB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.353e-05/0.2043, allocations: 7.953 kB / 453.1 MB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003675/0.2046, allocations: 148 kB / 453.3 MB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000183/0.2048, allocations: 163.1 kB / 453.4 MB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008486/0.2133, allocations: 4.381 MB / 457.8 MB, free: 5.879 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2099/0.4232, allocations: 15.74 MB / 473.5 MB, free: 53.64 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006495/0.4297, allocations: 7.603 MB / 481.1 MB, free: 46.98 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002371/0.432, allocations: 1.578 MB / 482.7 MB, free: 46.39 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007027/0.439, allocations: 4.655 MB / 487.4 MB, free: 43.41 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.481e-05/0.4391, allocations: 55.73 kB / 487.4 MB, free: 43.35 MB / 382.1 MB Notification: Performance of pre-optimization done (n=161): time 3.396e-06/0.4391, allocations: 0 / 487.4 MB, free: 43.35 MB / 382.1 MB Notification: Performance of matching and sorting (n=164): time 0.01566/0.4547, allocations: 8.149 MB / 495.6 MB, free: 38.4 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.908e-05/0.4548, allocations: 69.38 kB / 495.6 MB, free: 38.34 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002751/0.4575, allocations: 2.158 MB / 497.8 MB, free: 37.17 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001475/0.4577, allocations: 54.33 kB / 497.9 MB, free: 37.12 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007481/0.4584, allocations: 1.673 MB / 499.5 MB, free: 35.87 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003106/0.4587, allocations: 0.5732 MB / 0.4884 GB, free: 35.43 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004599/0.4592, allocations: 358.2 kB / 0.4887 GB, free: 35.22 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.453e-05/0.4592, allocations: 301.1 kB / 0.489 GB, free: 34.92 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001227/0.4605, allocations: 0.9389 MB / 0.4899 GB, free: 34.43 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001385/0.4619, allocations: 1.464 MB / 0.4914 GB, free: 33.27 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002659/0.4645, allocations: 2.503 MB / 0.4938 GB, free: 30.84 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.877e-06/0.4645, allocations: 4 kB / 0.4938 GB, free: 30.83 MB / 382.1 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.004491/0.469, allocations: 3.344 MB / 0.4971 GB, free: 27.45 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.504e-05/0.469, allocations: 11.91 kB / 0.4971 GB, free: 27.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.97e-05/0.4691, allocations: 19.98 kB / 0.4971 GB, free: 27.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001527/0.4706, allocations: 0.7312 MB / 0.4978 GB, free: 26.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001278/0.4719, allocations: 379.3 kB / 0.4982 GB, free: 26.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008588/0.4804, allocations: 11.37 MB / 0.5093 GB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001736/0.4822, allocations: 87.91 kB / 0.5094 GB, free: 14.31 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000155/0.4823, allocations: 76 kB / 0.5094 GB, free: 14.23 MB / 382.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.001687/0.484, allocations: 1.208 MB / 0.5106 GB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004282/0.4845, allocations: 242.4 kB / 0.5108 GB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004465/0.4889, allocations: 3.132 MB / 0.5139 GB, free: 9.582 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.649e-06/0.4889, allocations: 16 kB / 0.5139 GB, free: 9.566 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.135e-05/0.4889, allocations: 12 kB / 0.5139 GB, free: 9.555 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.471e-05/0.489, allocations: 10.81 kB / 0.5139 GB, free: 9.547 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008483/0.4974, allocations: 6.535 MB / 0.5203 GB, free: 2.895 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.4974, allocations: 4 kB / 0.5203 GB, free: 2.891 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007535/0.4982, allocations: 172 kB / 0.5205 GB, free: 2.723 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001954/0.5002, allocations: 0.9105 MB / 0.5214 GB, free: 1.793 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001081/0.5003, allocations: 43.92 kB / 0.5214 GB, free: 1.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01801/0.5183, allocations: 16.18 MB / 0.5372 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.5183, allocations: 7.969 kB / 0.5372 GB, free: 0.75 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00812/0.5264, allocations: 4.487 MB / 0.5416 GB, free: 12.18 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001382/0.5278, allocations: 0.5345 MB / 0.5421 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000308/0.5281, allocations: 39.98 kB / 0.5422 GB, free: 11.58 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001012/0.5291, allocations: 75.94 kB / 0.5422 GB, free: 11.51 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005056/0.5296, allocations: 161.1 kB / 0.5424 GB, free: 11.35 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001089/0.5297, allocations: 40 kB / 0.5424 GB, free: 11.31 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002407/0.5321, allocations: 1.489 MB / 0.5439 GB, free: 9.805 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5321, allocations: 0 / 0.5439 GB, free: 9.805 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003342/0.5355, allocations: 0.7031 MB / 0.5446 GB, free: 9.102 MB / 414.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.008036/0.5435, allocations: 5.112 MB / 0.5496 GB, free: 3.891 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005274/0.5488, allocations: 3.034 MB / 0.5525 GB, free: 0.7852 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.925e-06/0.5488, allocations: 0 / 0.5525 GB, free: 0.7852 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003679/0.5525, allocations: 2.195 MB / 0.5547 GB, free: 14.52 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002826/0.5553, allocations: 0.6447 MB / 0.5553 GB, free: 13.87 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04003/0.5953, allocations: 24.91 MB / 0.5796 GB, free: 4.285 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002714/0.598, allocations: 2.678 MB / 0.5822 GB, free: 1.574 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001541/0.5996, allocations: 479.4 kB / 0.5827 GB, free: 1.102 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001878/0.6014, allocations: 1.336 MB / 0.584 GB, free: 15.82 MB / 462.1 MB Notification: Performance of SimCode: time 7.51e-07/0.6014, allocations: 0 / 0.584 GB, free: 15.82 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3323/0.9338, allocations: 64.57 MB / 0.6471 GB, free: 161.8 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.7/15.64, allocations: 6.781 kB / 0.6471 GB, free: 161.8 MB / 0.4981 GB " [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.285526488005416] 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.76099761200021 15.784184102 15.609736477 Calling exit ...