Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001563/0.00157, allocations: 185.4 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.087/2.087, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001173/0.001172, allocations: 102.8 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003909/0.000391, allocations: 11.98 kB / 327.1 MB, free: 14.99 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09415/0.09458, allocations: 47.57 MB / 374.6 MB, free: 15.33 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz): time 0.01906/0.1137, allocations: 10.93 MB / 385.6 MB, free: 4.359 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01086/0.1246, allocations: 4.241 MB / 389.8 MB, free: 108 kB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002374/0.1271, allocations: 63.75 kB / 389.9 MB, free: 44 kB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.2688/0.3959, allocations: 0.7618 MB / 390.6 MB, free: 9.387 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007359/0.4033, allocations: 1.156 MB / 391.8 MB, free: 9.383 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004188/0.4076, allocations: 0.6281 MB / 392.4 MB, free: 9.371 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.009908/0.4175, allocations: 2.8 MB / 395.2 MB, free: 9.363 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006772/0.4244, allocations: 2.184 MB / 397.4 MB, free: 8.934 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004376/0.4288, allocations: 1.265 MB / 398.7 MB, free: 8.934 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005283/0.4342, allocations: 1.469 MB / 400.1 MB, free: 8.914 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001769/0.436, allocations: 206 kB / 400.3 MB, free: 8.914 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003706/0.4397, allocations: 373.8 kB / 400.7 MB, free: 8.91 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002451/0.4423, allocations: 0.7131 MB / 401.4 MB, free: 8.801 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003037/0.4454, allocations: 0.7467 MB / 402.2 MB, free: 8.656 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01185/0.4573, allocations: 5.425 MB / 407.6 MB, free: 6.316 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.4573, allocations: 0 / 407.6 MB, free: 6.316 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.296e-06/0.4574, allocations: 4 kB / 407.6 MB, free: 6.312 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0002251/0.4576, allocations: 1.062 kB / 407.6 MB, free: 6.312 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 844 * Number of variables: 844 Notification: Performance of Generate backend data structure: time 0.0207/0.4783, allocations: 3.727 MB / 411.3 MB, free: 4.238 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.212e-05/0.4784, allocations: 16.92 kB / 411.3 MB, free: 4.23 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002282/0.4807, allocations: 455.1 kB / 411.8 MB, free: 4.098 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01062/0.4914, allocations: 0.8291 MB / 412.6 MB, free: 3.758 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008924/0.5003, allocations: 2.186 MB / 414.8 MB, free: 2.77 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004357/0.5008, allocations: 236.8 kB / 415 MB, free: 2.664 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00164/0.5025, allocations: 331 kB / 415.4 MB, free: 2.551 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01898/0.5215, allocations: 4.216 MB / 419.6 MB, free: 15.63 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001874/0.5218, allocations: 8 kB / 419.6 MB, free: 15.62 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001077/0.5229, allocations: 126.7 kB / 419.7 MB, free: 15.5 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003267/0.5232, allocations: 150.4 kB / 419.8 MB, free: 15.36 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01741/0.5406, allocations: 3.582 MB / 423.4 MB, free: 11.77 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05209/0.5928, allocations: 13.89 MB / 437.3 MB, free: 13.61 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01484/0.6077, allocations: 6.551 MB / 443.9 MB, free: 6.227 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01257/0.6203, allocations: 3.21 MB / 447.1 MB, free: 2.969 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.007e-05/0.6204, allocations: 51.83 kB / 447.1 MB, free: 2.91 MB / 314.7 MB Notification: Performance of pre-optimization done (n=140): time 8.326e-06/0.6205, allocations: 0 / 447.1 MB, free: 2.91 MB / 314.7 MB Notification: Performance of matching and sorting (n=143): time 0.02839/0.6489, allocations: 6.002 MB / 453.1 MB, free: 12.7 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.102e-05/0.649, allocations: 64.72 kB / 453.2 MB, free: 12.62 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006283/0.6553, allocations: 1.729 MB / 454.9 MB, free: 10.89 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004045/0.6558, allocations: 53.7 kB / 455 MB, free: 10.83 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001959/0.6578, allocations: 1.367 MB / 456.3 MB, free: 9.453 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001017/0.6588, allocations: 496.6 kB / 456.8 MB, free: 8.973 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002433/0.6591, allocations: 36 kB / 456.9 MB, free: 8.938 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0003112/0.6594, allocations: 374.8 kB / 457.2 MB, free: 8.562 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003038/0.6625, allocations: 0.6972 MB / 457.9 MB, free: 7.867 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003655/0.6662, allocations: 1.2 MB / 459.1 MB, free: 6.453 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003549/0.6698, allocations: 0.9131 MB / 460 MB, free: 5.539 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.577e-05/0.6699, allocations: 8 kB / 460.1 MB, free: 5.531 MB / 330.7 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.009488/0.6794, allocations: 2.448 MB / 462.5 MB, free: 3.043 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.322e-05/0.6795, allocations: 19.94 kB / 462.5 MB, free: 3.023 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-05/0.6796, allocations: 16 kB / 462.5 MB, free: 3.008 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002137/0.6817, allocations: 360.1 kB / 462.9 MB, free: 2.641 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003654/0.6854, allocations: 387.3 kB / 463.3 MB, free: 2.262 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01844/0.7039, allocations: 7.777 MB / 471 MB, free: 9.961 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003403/0.7074, allocations: 80.05 kB / 471.1 MB, free: 9.883 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005749/0.708, allocations: 76 kB / 471.2 MB, free: 9.809 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * Number of states: 0 () * Number of discrete variables: 2 (idealCloser.control,idealOpener.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (196): * Single equations (assignments): 191 * 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%) 7,(1,100.0%) 1,(2,100.0%) 8,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00468/0.7127, allocations: 1.009 MB / 472.2 MB, free: 8.789 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009221/0.7136, allocations: 193.7 kB / 472.4 MB, free: 8.598 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01035/0.724, allocations: 2.34 MB / 474.7 MB, free: 6.184 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.162e-05/0.7241, allocations: 19.98 kB / 474.8 MB, free: 6.164 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.55e-05/0.7242, allocations: 10.52 kB / 474.8 MB, free: 6.156 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.008e-05/0.7242, allocations: 7.969 kB / 474.8 MB, free: 6.148 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02194/0.7462, allocations: 5.153 MB / 479.9 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.412e-05/0.7463, allocations: 4 kB / 479.9 MB, free: 0.8867 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002202/0.7485, allocations: 187.8 kB / 480.1 MB, free: 0.7031 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003421/0.752, allocations: 0.5311 MB / 480.6 MB, free: 160 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003782/0.7524, allocations: 39.98 kB / 480.7 MB, free: 120 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02934/0.7817, allocations: 12.19 MB / 492.9 MB, free: 3.141 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/0.7818, allocations: 0 / 492.9 MB, free: 3.141 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01449/0.7963, allocations: 3.398 MB / 496.3 MB, free: 15.61 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002284/0.7987, allocations: 430.6 kB / 496.7 MB, free: 15.17 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001026/0.7997, allocations: 32.56 kB / 496.7 MB, free: 15.14 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002853/0.8027, allocations: 75.94 kB / 496.8 MB, free: 15.07 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007785/0.8035, allocations: 101.2 kB / 496.9 MB, free: 14.97 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002657/0.8038, allocations: 43.98 kB / 496.9 MB, free: 14.93 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.004668/0.8085, allocations: 1.168 MB / 498.1 MB, free: 13.77 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.366e-06/0.8085, allocations: 4.094 kB / 498.1 MB, free: 13.76 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00608/0.8146, allocations: 0.5897 MB / 498.7 MB, free: 13.17 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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,quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (idealCloser.control,idealOpener.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * Single equations (assignments): 86 * 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%) 13,(1,100.0%) 1,(1,100.0%) 7,(2,100.0%) 8,(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.01483/0.8295, allocations: 4.394 MB / 0.4913 GB, free: 8.656 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.009364/0.8389, allocations: 2.4 MB / 0.4936 GB, free: 6.18 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.008e-05/0.839, allocations: 0 / 0.4936 GB, free: 6.18 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006852/0.8459, allocations: 1.785 MB / 0.4954 GB, free: 4.32 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00651/0.8525, allocations: 0.4966 MB / 0.4959 GB, free: 3.824 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08277/0.9353, allocations: 26.88 MB / 0.5221 GB, free: 7.801 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00409/0.9395, allocations: 2.312 MB / 0.5244 GB, free: 5.461 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002987/0.9425, allocations: 1.144 MB / 0.5255 GB, free: 4.316 MB / 410.7 MB Notification: Performance of SimCode: time 1.273e-06/0.9425, allocations: 0 / 0.5255 GB, free: 4.316 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.321/5.263, allocations: 137.2 MB / 0.6595 GB, free: 47.02 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Steinmetz_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Steinmetz.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz_res.mat does not exist to compare? outputFormat=mat