Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001177/0.001177, allocations: 98.72 kB / 16.94 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00118/0.00118, allocations: 175.4 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.405/1.405, allocations: 205.4 MB / 224 MB, free: 13.04 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004434/0.0004436, allocations: 16 kB / 280.9 MB, free: 3.605 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08708/0.08753, allocations: 47.56 MB / 328.4 MB, free: 3.969 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer): time 0.014/0.1016, allocations: 13.48 MB / 341.9 MB, free: 6.441 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01068/0.1123, allocations: 5.496 MB / 347.4 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002861/0.1152, allocations: 91.56 kB / 347.5 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00368/0.1189, allocations: 1.046 MB / 348.5 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005779/0.1247, allocations: 1.519 MB / 350.1 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002997/0.1277, allocations: 0.7095 MB / 350.8 MB, free: 13.55 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008681/0.1364, allocations: 4.168 MB / 354.9 MB, free: 9.375 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004737/0.1412, allocations: 3.474 MB / 358.4 MB, free: 5.848 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00313/0.1443, allocations: 1.95 MB / 360.4 MB, free: 3.891 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003729/0.1481, allocations: 2.33 MB / 362.7 MB, free: 1.551 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009022/0.149, allocations: 324 kB / 363 MB, free: 1.234 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001879/0.1509, allocations: 0.5387 MB / 363.5 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001206/0.1521, allocations: 1.238 MB / 364.8 MB, free: 15.45 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001605/0.1538, allocations: 1.14 MB / 365.9 MB, free: 14.3 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008853/0.1626, allocations: 8.52 MB / 374.4 MB, free: 5.762 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.1627, allocations: 0 / 374.4 MB, free: 5.762 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.345e-06/0.1627, allocations: 0 / 374.4 MB, free: 5.762 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002966/0.163, allocations: 0 / 374.4 MB, free: 5.762 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.01391/0.1769, allocations: 5.516 MB / 380 MB, free: 168 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.015e-05/0.1769, allocations: 15.97 kB / 380 MB, free: 152 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.1824/0.3593, allocations: 0.6677 MB / 380.6 MB, free: 45.85 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00546/0.3648, allocations: 1.066 MB / 381.7 MB, free: 45.73 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00768/0.3725, allocations: 3.257 MB / 385 MB, free: 44.46 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003297/0.3729, allocations: 364.6 kB / 385.3 MB, free: 44.3 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009447/0.3738, allocations: 484.8 kB / 385.8 MB, free: 44.14 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01384/0.3877, allocations: 6.812 MB / 392.6 MB, free: 41.36 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001008/0.3878, allocations: 9.156 kB / 392.6 MB, free: 41.36 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004594/0.3883, allocations: 198.5 kB / 392.8 MB, free: 41.21 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002717/0.3885, allocations: 237.5 kB / 393 MB, free: 41.18 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01055/0.3991, allocations: 5.915 MB / 398.9 MB, free: 38.12 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02986/0.429, allocations: 21 MB / 419.9 MB, free: 18.89 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006849/0.4359, allocations: 9.956 MB / 429.9 MB, free: 7.91 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008635/0.4445, allocations: 5.434 MB / 435.3 MB, free: 2.418 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.493e-05/0.4446, allocations: 64.5 kB / 435.4 MB, free: 2.344 MB / 318.1 MB Notification: Performance of pre-optimization done (n=227): time 4.228e-06/0.4446, allocations: 0 / 435.4 MB, free: 2.344 MB / 318.1 MB Notification: Performance of matching and sorting (n=234): time 0.01777/0.4624, allocations: 9.823 MB / 445.2 MB, free: 8.328 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.232e-05/0.4625, allocations: 81.41 kB / 445.3 MB, free: 8.238 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004324/0.4668, allocations: 2.921 MB / 448.2 MB, free: 5.301 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003163/0.4672, allocations: 65.7 kB / 448.3 MB, free: 5.23 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001492/0.4687, allocations: 2.15 MB / 450.4 MB, free: 3.066 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006612/0.4693, allocations: 0.7836 MB / 451.2 MB, free: 2.289 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001405/0.4695, allocations: 52 kB / 451.3 MB, free: 2.238 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001907/0.4697, allocations: 411.3 kB / 451.7 MB, free: 1.832 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002083/0.4718, allocations: 1.321 MB / 453 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002469/0.4743, allocations: 1.933 MB / 454.9 MB, free: 14.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002328/0.4766, allocations: 1.639 MB / 456.6 MB, free: 12.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.608e-06/0.4766, allocations: 7.938 kB / 456.6 MB, free: 12.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=334) (initialization): time 0.006999/0.4836, allocations: 4.307 MB / 460.9 MB, free: 8.254 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.138e-05/0.4837, allocations: 15.98 kB / 460.9 MB, free: 8.238 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.662e-05/0.4837, allocations: 20.5 kB / 460.9 MB, free: 8.219 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002506/0.4862, allocations: 0.7841 MB / 461.7 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002311/0.4885, allocations: 0.5773 MB / 462.3 MB, free: 6.855 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01068/0.4992, allocations: 10.21 MB / 472.5 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002574/0.5019, allocations: 111.8 kB / 472.6 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003505/0.5022, allocations: 104.2 kB / 472.7 MB, free: 11.91 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 80 * Number of states: 0 () * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (284): * Single equations (assignments): 279 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 8,(1,100.0%) 1,(3,88.9%) 25,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003202/0.5054, allocations: 1.617 MB / 474.3 MB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007747/0.5062, allocations: 312.2 kB / 474.6 MB, free: 9.977 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006837/0.5131, allocations: 4.018 MB / 478.6 MB, free: 5.887 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.812e-05/0.5131, allocations: 27.94 kB / 478.7 MB, free: 5.859 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.457e-05/0.5131, allocations: 12 kB / 478.7 MB, free: 5.848 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-05/0.5132, allocations: 7.969 kB / 478.7 MB, free: 5.84 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01483/0.528, allocations: 8.697 MB / 487.4 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.699e-06/0.528, allocations: 0 / 487.4 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001583/0.5296, allocations: 371.8 kB / 487.7 MB, free: 12.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003036/0.5327, allocations: 0.9366 MB / 488.7 MB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002039/0.5329, allocations: 71.95 kB / 488.8 MB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01538/0.5483, allocations: 14.64 MB / 0.4916 GB, free: 12.25 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/0.5483, allocations: 11.92 kB / 0.4916 GB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009559/0.5579, allocations: 6.025 MB / 0.4975 GB, free: 6.051 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002125/0.5601, allocations: 0.6924 MB / 0.4982 GB, free: 5.336 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006676/0.5608, allocations: 52.09 kB / 0.4982 GB, free: 5.285 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001477/0.5622, allocations: 123.9 kB / 0.4983 GB, free: 5.164 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004756/0.5627, allocations: 201.7 kB / 0.4985 GB, free: 4.965 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001448/0.5629, allocations: 63.98 kB / 0.4986 GB, free: 4.902 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.003221/0.5661, allocations: 2.007 MB / 0.5005 GB, free: 2.895 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5661, allocations: 0 / 0.5005 GB, free: 2.895 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003513/0.5696, allocations: 0.9453 MB / 0.5015 GB, free: 1.949 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (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,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (164): * Single equations (assignments): 158 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 8,(3,88.9%) 25,(1,100.0%) 13,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01019/0.5798, allocations: 7.149 MB / 0.5084 GB, free: 10.66 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006383/0.5863, allocations: 3.977 MB / 0.5123 GB, free: 6.613 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.574e-06/0.5863, allocations: 5.875 kB / 0.5123 GB, free: 6.609 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00423/0.5905, allocations: 2.704 MB / 0.515 GB, free: 3.824 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004204/0.5948, allocations: 0.8432 MB / 0.5158 GB, free: 2.98 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2102/0.805, allocations: 40.7 MB / 0.5556 GB, free: 133.2 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002876/0.8079, allocations: 3.515 MB / 0.559 GB, free: 131.9 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00236/0.8103, allocations: 0.7568 MB / 0.5597 GB, free: 131.9 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001819/0.8121, allocations: 1.823 MB / 0.5615 GB, free: 130.3 MB / 430.1 MB Notification: Performance of SimCode: time 1.142e-06/0.8121, allocations: 3.656 kB / 0.5615 GB, free: 130.3 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09948/0.9116, allocations: 81.43 MB / 0.641 GB, free: 56.55 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002085/0.9118, allocations: 264.1 kB / 0.6413 GB, free: 56.2 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.363/4.275, allocations: 4 kB / 0.6413 GB, free: 56.2 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Transformer.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer_res.mat does not exist to compare? outputFormat=mat