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.000788/0.0007945, allocations: 92.03 kB / 16.95 MB, free: 6.441 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.001153/0.001153, allocations: 181.2 kB / 17.84 MB, free: 6.008 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.608/1.608, allocations: 205.4 MB / 224 MB, free: 13.15 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.0006923/0.0006924, allocations: 8 kB / 280.9 MB, free: 3.629 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1203, allocations: 47.58 MB / 328.5 MB, free: 3.977 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer): time 0.01676/0.1371, allocations: 14.77 MB / 343.2 MB, free: 5.152 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01241/0.1495, allocations: 5.349 MB / 348.6 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003957/0.1536, allocations: 91.56 kB / 348.7 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004388/0.158, allocations: 1.006 MB / 349.7 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007136/0.1651, allocations: 1.488 MB / 351.2 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003199/0.1684, allocations: 0.7056 MB / 351.9 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01031/0.1787, allocations: 6.409 MB / 358.3 MB, free: 6.043 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008007/0.1867, allocations: 3.466 MB / 361.7 MB, free: 2.523 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004592/0.1914, allocations: 2.035 MB / 363.8 MB, free: 492 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005739/0.1971, allocations: 2.626 MB / 366.4 MB, free: 13.84 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001956/0.1991, allocations: 335.9 kB / 366.7 MB, free: 13.51 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004157/0.2033, allocations: 0.5544 MB / 367.3 MB, free: 12.96 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002355/0.2057, allocations: 1.296 MB / 368.6 MB, free: 11.66 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002594/0.2083, allocations: 1.14 MB / 369.7 MB, free: 10.51 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01109/0.2194, allocations: 8.578 MB / 378.3 MB, free: 1.91 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.055e-05/0.2195, allocations: 0 / 378.3 MB, free: 1.91 MB / 318.1 MB Notification: Performance of FrontEnd: time 8.446e-06/0.2195, allocations: 0 / 378.3 MB, free: 1.91 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004565/0.2199, allocations: 3.938 kB / 378.3 MB, free: 1.906 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.2789/0.4989, allocations: 5.528 MB / 383.8 MB, free: 45.81 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.97e-05/0.4989, allocations: 14.09 kB / 383.8 MB, free: 45.81 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004598/0.5035, allocations: 0.6748 MB / 384.5 MB, free: 45.68 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008391/0.512, allocations: 1.058 MB / 385.6 MB, free: 45.32 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.012/0.524, allocations: 3.247 MB / 388.8 MB, free: 43.55 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001007/0.5251, allocations: 362.1 kB / 389.2 MB, free: 43.39 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002776/0.5279, allocations: 488.9 kB / 389.7 MB, free: 43.23 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02553/0.5534, allocations: 6.84 MB / 396.5 MB, free: 39.43 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002111/0.5537, allocations: 11.94 kB / 396.5 MB, free: 39.42 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009924/0.5547, allocations: 198.2 kB / 396.7 MB, free: 39.27 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002195/0.5549, allocations: 241.2 kB / 396.9 MB, free: 39.23 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01365/0.5686, allocations: 5.91 MB / 402.8 MB, free: 35.42 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0373/0.6059, allocations: 21.06 MB / 423.9 MB, free: 14.14 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007898/0.6139, allocations: 9.942 MB / 433.8 MB, free: 3.176 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003893/0.6178, allocations: 2.501 MB / 436.3 MB, free: 0.668 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0146/0.6324, allocations: 6.531 MB / 442.9 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.943e-05/0.6326, allocations: 56.56 kB / 442.9 MB, free: 10.03 MB / 334.1 MB Notification: Performance of pre-optimization done (n=219): time 6.192e-06/0.6326, allocations: 0 / 442.9 MB, free: 10.03 MB / 334.1 MB Notification: Performance of matching and sorting (n=226): time 0.02304/0.6556, allocations: 9.786 MB / 452.7 MB, free: 40 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001122/0.6558, allocations: 77.41 kB / 452.8 MB, free: 15.95 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007671/0.6635, allocations: 2.972 MB / 455.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006922/0.6642, allocations: 61.7 kB / 455.8 MB, free: 12.9 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002083/0.6663, allocations: 2.162 MB / 458 MB, free: 10.72 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001319/0.6677, allocations: 0.752 MB / 458.7 MB, free: 9.977 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004431/0.6681, allocations: 52 kB / 458.8 MB, free: 9.926 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0003191/0.6685, allocations: 415.1 kB / 459.2 MB, free: 9.516 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002912/0.6714, allocations: 1.293 MB / 460.5 MB, free: 8.219 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003395/0.6748, allocations: 1.92 MB / 462.4 MB, free: 6.035 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003168/0.678, allocations: 1.606 MB / 464 MB, free: 4.434 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.932e-05/0.6781, allocations: 7.938 kB / 464 MB, free: 4.426 MB / 350.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.009339/0.6874, allocations: 4.253 MB / 468.3 MB, free: 132 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.217e-05/0.6875, allocations: 16.06 kB / 468.3 MB, free: 116 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.811e-05/0.6876, allocations: 16 kB / 468.3 MB, free: 100 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002709/0.6903, allocations: 0.7744 MB / 469.1 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002586/0.6929, allocations: 0.5733 MB / 469.7 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01186/0.7048, allocations: 10.04 MB / 479.7 MB, free: 4.176 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003223/0.7081, allocations: 115.9 kB / 479.8 MB, free: 4.062 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006572/0.7088, allocations: 104 kB / 479.9 MB, free: 3.961 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * 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 (278): * Single equations (assignments): 273 * 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 {(3,100.0%) 25,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004965/0.7138, allocations: 1.602 MB / 481.5 MB, free: 2.348 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001389/0.7152, allocations: 320.2 kB / 481.8 MB, free: 2.031 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008871/0.7241, allocations: 3.918 MB / 485.7 MB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.363e-05/0.7241, allocations: 20 kB / 485.8 MB, free: 14.02 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.408e-05/0.7242, allocations: 12 kB / 485.8 MB, free: 14.01 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.537e-05/0.7242, allocations: 12.05 kB / 485.8 MB, free: 14 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02184/0.7461, allocations: 8.576 MB / 494.4 MB, free: 5.324 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.321e-05/0.7462, allocations: 4.25 kB / 494.4 MB, free: 5.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001714/0.7479, allocations: 351.5 kB / 494.7 MB, free: 4.977 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00324/0.7512, allocations: 0.935 MB / 495.6 MB, free: 4.027 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000351/0.7515, allocations: 51.98 kB / 495.7 MB, free: 3.977 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01844/0.77, allocations: 14.42 MB / 0.4982 GB, free: 4.773 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/0.77, allocations: 0 / 0.4982 GB, free: 4.773 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01206/0.7821, allocations: 5.701 MB / 0.5037 GB, free: 14.98 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003468/0.7857, allocations: 0.6963 MB / 0.5044 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002161/0.7879, allocations: 48 kB / 0.5045 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003388/0.7913, allocations: 127.9 kB / 0.5046 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008856/0.7922, allocations: 193.7 kB / 0.5048 GB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003246/0.7926, allocations: 59.92 kB / 0.5048 GB, free: 13.84 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.005598/0.7982, allocations: 2.042 MB / 0.5068 GB, free: 11.8 MB / 414.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.7982, allocations: 0 / 0.5068 GB, free: 11.8 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.005876/0.8041, allocations: 0.944 MB / 0.5077 GB, free: 10.86 MB / 414.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 (156): * Single equations (assignments): 150 * 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,(2,100.0%) 26,(1,100.0%) 1,(1,100.0%) 13,(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.01172/0.8159, allocations: 6.368 MB / 0.514 GB, free: 4.395 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007365/0.8233, allocations: 3.907 MB / 0.5178 GB, free: 428 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.092e-05/0.8233, allocations: 4 kB / 0.5178 GB, free: 424 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004764/0.8281, allocations: 2.655 MB / 0.5204 GB, free: 13.69 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006809/0.835, allocations: 0.8882 MB / 0.5212 GB, free: 12.8 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2957/1.131, allocations: 29.01 MB / 0.5496 GB, free: 135 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003455/1.134, allocations: 3.421 MB / 0.5529 GB, free: 133.7 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002969/1.137, allocations: 0.7523 MB / 0.5536 GB, free: 133.6 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002496/1.14, allocations: 1.828 MB / 0.5554 GB, free: 132.1 MB / 430.1 MB Notification: Performance of SimCode: time 2.175e-06/1.14, allocations: 0 / 0.5554 GB, free: 132.1 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1236/1.263, allocations: 81.51 MB / 0.635 GB, free: 57.32 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002175/1.264, allocations: 274 kB / 0.6353 GB, free: 56.96 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.336/5.599, allocations: 4 kB / 0.6353 GB, free: 56.96 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