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.004748/0.004748, allocations: 114.2 kB / 21.97 MB, free: 5.219 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.001369/0.001369, allocations: 216.2 kB / 25.28 MB, free: 3.246 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.275/1.275, allocations: 207.6 MB / 236 MB, free: 9.98 MB / 190.1 MB " [Timeout remaining time 179] 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.001713/0.001713, allocations: 51.94 kB / 348 MB, free: 10.09 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.235/0.2367, allocations: 49.16 MB / 397.2 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01246/0.2491, allocations: 13.7 MB / 410.9 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009794/0.2589, allocations: 4.911 MB / 415.8 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002408/0.2613, allocations: 87.72 kB / 415.9 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002953/0.2643, allocations: 1.077 MB / 416.9 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004109/0.2684, allocations: 1.412 MB / 418.4 MB, free: 9.934 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002229/0.2706, allocations: 1.013 MB / 419.4 MB, free: 9.113 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005263/0.2759, allocations: 4.338 MB / 423.7 MB, free: 6.445 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002462/0.2784, allocations: 1.828 MB / 425.5 MB, free: 5.227 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002917/0.2813, allocations: 2.056 MB / 427.6 MB, free: 4.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003278/0.2846, allocations: 2.31 MB / 429.9 MB, free: 2.449 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008345/0.2854, allocations: 0.5352 MB / 430.4 MB, free: 1.914 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001976/0.2874, allocations: 0.9836 MB / 431.4 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00125/0.2886, allocations: 1.379 MB / 432.8 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002572/0.2912, allocations: 2.345 MB / 435.1 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008422/0.2996, allocations: 7.374 MB / 442.5 MB, free: 5.797 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/0.2996, allocations: 4 kB / 442.5 MB, free: 5.793 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2996, allocations: 0 / 442.5 MB, free: 5.793 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001969/0.2998, allocations: 0 / 442.5 MB, free: 5.793 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: 877 * Number of variables: 877 Notification: Performance of Generate backend data structure: time 0.01318/0.313, allocations: 5.021 MB / 447.5 MB, free: 0.707 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.085e-05/0.313, allocations: 11.98 kB / 447.6 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001241/0.3132, allocations: 108.6 kB / 447.7 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008843/0.3141, allocations: 0.5582 MB / 448.2 MB, free: 16 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004268/0.3183, allocations: 0.8999 MB / 449.1 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004805/0.3231, allocations: 2.6 MB / 451.7 MB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000214/0.3233, allocations: 254.9 kB / 452 MB, free: 12.2 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006108/0.3239, allocations: 351.9 kB / 452.3 MB, free: 11.85 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007663/0.3316, allocations: 4.617 MB / 456.9 MB, free: 7.191 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.077e-05/0.3317, allocations: 7.953 kB / 456.9 MB, free: 7.184 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003134/0.332, allocations: 144 kB / 457.1 MB, free: 7.043 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001617/0.3322, allocations: 158.9 kB / 457.2 MB, free: 6.887 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00662/0.3388, allocations: 3.97 MB / 461.2 MB, free: 2.91 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02203/0.3608, allocations: 14.02 MB / 475.2 MB, free: 4.582 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005986/0.3668, allocations: 3.046 MB / 478.3 MB, free: 1.68 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002839/0.3696, allocations: 1.643 MB / 479.9 MB, free: 40 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007578/0.3772, allocations: 4.351 MB / 484.3 MB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.049e-05/0.3773, allocations: 60.56 kB / 484.3 MB, free: 11.6 MB / 398.1 MB Notification: Performance of pre-optimization done (n=191): time 3.948e-06/0.3773, allocations: 3.938 kB / 484.3 MB, free: 11.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=280): time 0.04106/0.4183, allocations: 15.35 MB / 499.7 MB, free: 12.11 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.807e-05/0.4184, allocations: 81.58 kB / 499.8 MB, free: 12.02 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003407/0.4218, allocations: 2.62 MB / 0.4906 GB, free: 9.371 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001772/0.422, allocations: 73.7 kB / 0.4907 GB, free: 9.293 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001222/0.4232, allocations: 1.659 MB / 0.4923 GB, free: 7.621 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007908/0.424, allocations: 0.9837 MB / 0.4933 GB, free: 6.629 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007424/0.4247, allocations: 453.6 kB / 0.4937 GB, free: 6.18 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.4248, allocations: 309.1 kB / 0.494 GB, free: 5.875 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002303/0.4271, allocations: 1.337 MB / 0.4953 GB, free: 4.535 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002666/0.4298, allocations: 1.79 MB / 0.497 GB, free: 2.586 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005359/0.4352, allocations: 3.322 MB / 0.5003 GB, free: 15.08 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.825e-06/0.4352, allocations: 0 / 0.5003 GB, free: 15.08 MB / 430.1 MB Notification: Performance of matching and sorting (n=341) (initialization): time 0.008262/0.4434, allocations: 4.363 MB / 0.5045 GB, free: 10.66 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.217e-05/0.4435, allocations: 15.94 kB / 0.5046 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.05e-05/0.4435, allocations: 8 kB / 0.5046 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002214/0.4457, allocations: 0.8874 MB / 0.5054 GB, free: 9.738 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002482/0.4482, allocations: 0.5539 MB / 0.506 GB, free: 9.184 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01635/0.4645, allocations: 13.33 MB / 0.519 GB, free: 11.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002382/0.4669, allocations: 119.9 kB / 0.5191 GB, free: 11.28 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003029/0.4672, allocations: 112 kB / 0.5192 GB, free: 11.17 MB / 446.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.002069/0.4693, allocations: 1.247 MB / 0.5204 GB, free: 9.914 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006195/0.4699, allocations: 298.1 kB / 0.5207 GB, free: 9.621 MB / 446.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.003558/0.4735, allocations: 1.862 MB / 0.5225 GB, free: 7.734 MB / 446.1 MB Error: post-optimization module wrapFunctionCalls (simulation) failed. " [Timeout remaining time 660] [Calling sys.exit(0), Time elapsed: 2.686807687045075] 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.4805007019895129 0.49414036199999994 0.19153771 Calling exit ...