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.008055/0.008055, allocations: 99.64 kB / 21.96 MB, free: 5.207 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.001367/0.001367, allocations: 217.5 kB / 25.26 MB, free: 3.137 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.283/1.283, allocations: 207.7 MB / 236.1 MB, free: 9.812 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.001715/0.001715, allocations: 55 kB / 348 MB, free: 9.949 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2317/0.2334, allocations: 49.16 MB / 397.2 MB, free: 9.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01113/0.2445, allocations: 11.88 MB / 409.1 MB, free: 1.223 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008885/0.2534, allocations: 4.613 MB / 413.7 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002303/0.2557, allocations: 86.47 kB / 413.8 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00394/0.2597, allocations: 1.025 MB / 414.8 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005462/0.2651, allocations: 1.401 MB / 416.2 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002868/0.268, allocations: 0.9784 MB / 417.2 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006137/0.2741, allocations: 4.334 MB / 421.5 MB, free: 8.805 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002924/0.277, allocations: 1.82 MB / 423.3 MB, free: 7.594 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003601/0.2806, allocations: 2.068 MB / 425.4 MB, free: 6.375 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004319/0.285, allocations: 2.315 MB / 427.7 MB, free: 4.578 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008943/0.2859, allocations: 0.5352 MB / 428.2 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00233/0.2882, allocations: 0.894 MB / 429.1 MB, free: 3.148 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001318/0.2895, allocations: 1.379 MB / 430.5 MB, free: 1.766 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002515/0.292, allocations: 1.855 MB / 432.4 MB, free: 15.9 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008096/0.3001, allocations: 7.389 MB / 439.7 MB, free: 8.492 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.3001, allocations: 4 kB / 439.8 MB, free: 8.488 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3001, allocations: 0 / 439.8 MB, free: 8.488 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001233/0.3002, allocations: 0 / 439.8 MB, free: 8.488 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.01205/0.3123, allocations: 5.014 MB / 444.8 MB, free: 3.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.139e-05/0.3124, allocations: 15.98 kB / 444.8 MB, free: 3.395 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001461/0.3125, allocations: 112.6 kB / 444.9 MB, free: 3.281 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001083/0.3136, allocations: 0.5504 MB / 445.4 MB, free: 2.719 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00461/0.3182, allocations: 0.9077 MB / 446.4 MB, free: 1.809 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005293/0.3235, allocations: 2.604 MB / 449 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002134/0.3237, allocations: 250.9 kB / 449.2 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007364/0.3244, allocations: 355.9 kB / 449.5 MB, free: 14.54 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009156/0.3336, allocations: 4.764 MB / 454.3 MB, free: 9.699 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.876e-05/0.3337, allocations: 11.95 kB / 454.3 MB, free: 9.688 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003313/0.334, allocations: 140 kB / 454.5 MB, free: 9.551 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001761/0.3342, allocations: 162.9 kB / 454.6 MB, free: 9.391 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007272/0.3414, allocations: 3.958 MB / 458.6 MB, free: 5.426 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02286/0.3643, allocations: 12.77 MB / 471.3 MB, free: 8.355 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006079/0.3704, allocations: 3.027 MB / 474.4 MB, free: 5.473 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002895/0.3733, allocations: 1.647 MB / 476 MB, free: 3.824 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00757/0.3809, allocations: 3.941 MB / 480 MB, free: 15.86 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.551e-05/0.3809, allocations: 56.5 kB / 480 MB, free: 15.79 MB / 398.1 MB Notification: Performance of pre-optimization done (n=191): time 4.589e-06/0.3809, allocations: 4 kB / 480 MB, free: 15.79 MB / 398.1 MB Notification: Performance of matching and sorting (n=280): time 0.04203/0.4229, allocations: 15.35 MB / 495.4 MB, free: 320 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.634e-05/0.423, allocations: 81.58 kB / 495.5 MB, free: 224 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003731/0.4267, allocations: 2.624 MB / 498.1 MB, free: 13.57 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002447/0.427, allocations: 73.69 kB / 498.1 MB, free: 13.49 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001282/0.4283, allocations: 1.652 MB / 499.8 MB, free: 11.82 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008329/0.4291, allocations: 0.9837 MB / 0.489 GB, free: 10.83 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007659/0.4299, allocations: 457.6 kB / 0.4895 GB, free: 10.38 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.43, allocations: 305.1 kB / 0.4898 GB, free: 10.08 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002341/0.4323, allocations: 1.34 MB / 0.4911 GB, free: 8.734 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002767/0.4351, allocations: 1.807 MB / 0.4928 GB, free: 6.762 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005448/0.4405, allocations: 3.326 MB / 0.4961 GB, free: 3.254 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.979e-06/0.4405, allocations: 4 kB / 0.4961 GB, free: 3.25 MB / 414.1 MB Notification: Performance of matching and sorting (n=341) (initialization): time 0.008089/0.4486, allocations: 4.359 MB / 0.5004 GB, free: 14.83 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.778e-05/0.4487, allocations: 11.94 kB / 0.5004 GB, free: 14.82 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.153e-05/0.4487, allocations: 12 kB / 0.5004 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002312/0.451, allocations: 0.8843 MB / 0.5012 GB, free: 13.91 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002629/0.4536, allocations: 0.5539 MB / 0.5018 GB, free: 13.36 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.016/0.4696, allocations: 13.14 MB / 0.5146 GB, free: 15.77 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002248/0.4719, allocations: 131.8 kB / 0.5147 GB, free: 15.64 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002581/0.4721, allocations: 112 kB / 0.5148 GB, free: 15.53 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.002163/0.4743, allocations: 1.235 MB / 0.5161 GB, free: 14.28 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006409/0.4749, allocations: 298.1 kB / 0.5163 GB, free: 13.99 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.003601/0.4786, allocations: 1.865 MB / 0.5182 GB, free: 12.1 MB / 446.1 MB Error: post-optimization module wrapFunctionCalls (simulation) failed. " [Timeout remaining time 660] [Calling sys.exit(0), Time elapsed: 2.7127462569624186] 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.48579537391196936 0.5003467890000001 0.197074823 Calling exit ...