Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.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.001886/0.001886, allocations: 114.7 kB / 19.17 MB, free: 3.891 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.002406/0.002406, allocations: 203.8 kB / 22.11 MB, free: 0.9531 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.415/1.415, allocations: 207.6 MB / 232.5 MB, free: 3.938 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_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_withLosses",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_withLosses",fmuType="cs",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.002023/0.002023, allocations: 51.92 kB / 343 MB, free: 9.957 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0886/0.09062, allocations: 49.13 MB / 392.2 MB, free: 8.664 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01636/0.107, allocations: 13.64 MB / 405.8 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009062/0.116, allocations: 4.888 MB / 410.7 MB, free: 6.059 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002135/0.1182, allocations: 91.38 kB / 410.8 MB, free: 5.969 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003064/0.1212, allocations: 1.08 MB / 411.9 MB, free: 4.883 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004421/0.1257, allocations: 1.394 MB / 413.3 MB, free: 3.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002684/0.1283, allocations: 0.9937 MB / 414.2 MB, free: 2.484 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005998/0.1343, allocations: 4.34 MB / 418.6 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004011/0.1384, allocations: 2.305 MB / 420.9 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003268/0.1416, allocations: 2.045 MB / 422.9 MB, free: 9.703 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003872/0.1455, allocations: 2.304 MB / 425.2 MB, free: 7.391 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001355/0.1469, allocations: 0.5352 MB / 425.8 MB, free: 6.855 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002499/0.1494, allocations: 0.9368 MB / 426.7 MB, free: 5.918 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002187/0.1515, allocations: 1.375 MB / 428.1 MB, free: 4.539 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004345/0.1559, allocations: 2.353 MB / 430.4 MB, free: 2.176 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01005/0.1659, allocations: 7.358 MB / 437.8 MB, free: 10.79 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1659, allocations: 0 / 437.8 MB, free: 10.79 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1659, allocations: 0 / 437.8 MB, free: 10.79 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002099/0.1662, allocations: 0 / 437.8 MB, free: 10.79 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: 877 * Number of variables: 877 Notification: Performance of Generate backend data structure: time 0.01497/0.1811, allocations: 5.089 MB / 442.9 MB, free: 5.621 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.251e-05/0.1812, allocations: 16.02 kB / 442.9 MB, free: 5.605 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001529/0.1813, allocations: 112.6 kB / 443 MB, free: 5.492 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001658/0.183, allocations: 0.5504 MB / 443.6 MB, free: 4.93 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005088/0.1881, allocations: 0.8998 MB / 444.5 MB, free: 4.027 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00592/0.194, allocations: 2.656 MB / 447.1 MB, free: 1.297 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002953/0.1943, allocations: 258.9 kB / 447.4 MB, free: 1.043 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001046/0.1953, allocations: 351.9 kB / 447.7 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01163/0.207, allocations: 4.617 MB / 452.3 MB, free: 12.04 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001528/0.2071, allocations: 15.94 kB / 452.3 MB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008408/0.208, allocations: 140 kB / 452.5 MB, free: 11.89 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002078/0.2082, allocations: 158.9 kB / 452.6 MB, free: 11.73 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008913/0.2171, allocations: 3.97 MB / 456.6 MB, free: 7.754 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2045/0.4215, allocations: 14.19 MB / 470.8 MB, free: 54.18 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00637/0.4279, allocations: 6.895 MB / 477.7 MB, free: 48.95 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002769/0.4307, allocations: 1.659 MB / 479.4 MB, free: 48.38 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006909/0.4376, allocations: 4.587 MB / 483.9 MB, free: 46.11 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.508e-05/0.4376, allocations: 63.22 kB / 484 MB, free: 46.06 MB / 382.1 MB Notification: Performance of pre-optimization done (n=191): time 3.697e-06/0.4376, allocations: 0 / 484 MB, free: 46.06 MB / 382.1 MB Notification: Performance of matching and sorting (n=280): time 0.03652/0.4742, allocations: 15.72 MB / 499.7 MB, free: 38.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.656e-05/0.4742, allocations: 83.64 kB / 499.8 MB, free: 38 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00303/0.4772, allocations: 2.632 MB / 0.4907 GB, free: 35.35 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002092/0.4774, allocations: 69.7 kB / 0.4907 GB, free: 35.28 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007893/0.4782, allocations: 1.655 MB / 0.4923 GB, free: 33.8 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006613/0.4789, allocations: 0.982 MB / 0.4933 GB, free: 32.88 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006363/0.4795, allocations: 461.5 kB / 0.4937 GB, free: 32.42 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.371e-05/0.4796, allocations: 301.1 kB / 0.494 GB, free: 32.12 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001891/0.4815, allocations: 1.344 MB / 0.4953 GB, free: 30.78 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002014/0.4835, allocations: 1.782 MB / 0.4971 GB, free: 28.84 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004166/0.4877, allocations: 3.32 MB / 0.5003 GB, free: 25.34 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.875e-06/0.4877, allocations: 4 kB / 0.5003 GB, free: 25.33 MB / 382.1 MB Notification: Performance of matching and sorting (n=341) (initialization): time 0.006531/0.4942, allocations: 4.367 MB / 0.5046 GB, free: 20.9 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.456e-05/0.4942, allocations: 11.91 kB / 0.5046 GB, free: 20.89 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.922e-05/0.4942, allocations: 12 kB / 0.5046 GB, free: 20.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001861/0.4961, allocations: 0.8932 MB / 0.5055 GB, free: 19.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002191/0.4983, allocations: 0.55 MB / 0.506 GB, free: 19.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01133/0.5096, allocations: 13.76 MB / 0.5195 GB, free: 5.133 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002132/0.5117, allocations: 123.9 kB / 0.5196 GB, free: 5.012 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001893/0.5119, allocations: 108 kB / 0.5197 GB, free: 4.906 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (259): * Single equations (assignments): 251 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,6,100.0%), (1,6,100.0%), (2,25,100.0%), (8,33,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00161/0.5135, allocations: 1.247 MB / 0.5209 GB, free: 3.648 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00048/0.514, allocations: 303.7 kB / 0.5212 GB, free: 3.352 MB / 382.1 MB Warning: After manipulating the system with postOptModule wrapFunctionCalls the system is unbalanced. This indicates that the original system is singular. You can use -d=dumpCSE and -d=dumpCSE_verbose for more information. Error: Too few equations, under-determined system. The model has 280 equation(s) and 282 variable(s). Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0029/0.5169, allocations: 1.854 MB / 0.523 GB, free: 1.473 MB / 382.1 MB Error: post-optimization module wrapFunctionCalls (simulation) failed. " [Timeout remaining time 659] [Calling sys.exit(0), Time elapsed: 2.9656704859808087] Failed to read output from testmodel.py, exit status != 0: ['time', 'PI.x', 'aimc.airGap.V_mrr.im', 'aimc.airGap.V_mrr.re', 'aimc.airGap.V_msr.im', 'aimc.airGap.V_msr.re', 'aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[1].Phi.re', 'aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im', 'aimc.stator.core.Phi.im', 'aimc.stator.core.Phi.re', 'aimc.stator.strayReluctance.port_p.Phi.im', 'aimc.stator.strayReluctance.port_p.Phi.re', '// aimc.stator.zeroInductor.i0', 'aimc.is[1]', 'aimc.is[2]', 'loadInertia.w', 'powerSensor.flange_a.phi'] 0.5242588180117309 0.5367413 0.36784099499999995 Calling exit ...