Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001733/0.001733, allocations: 177.7 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.711/1.711, allocations: 205.3 MB / 214.4 MB, free: 1.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008734/0.0008734, allocations: 82.23 kB / 262.4 MB, free: 1.621 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.871e-05/1.873e-05, allocations: 4 kB / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1133, allocations: 47.58 MB / 363.2 MB, free: 6.965 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4351/0.5484, allocations: 109.2 MB / 472.3 MB, free: 2.695 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002526/0.5487, allocations: 89.88 kB / 472.4 MB, free: 2.648 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4071/0.9558, allocations: 79.51 MB / 0.539 GB, free: 87.47 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.9559, allocations: 0 / 0.539 GB, free: 87.47 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002705/0.9561, allocations: 78.64 kB / 0.5391 GB, free: 87.46 MB / 410.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.009629/0.9658, allocations: 3.206 MB / 0.5422 GB, free: 86.36 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.921e-05/0.9658, allocations: 9.188 kB / 0.5422 GB, free: 86.36 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004545/0.9704, allocations: 0.7405 MB / 0.5429 GB, free: 86.16 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009073/0.9795, allocations: 3.299 MB / 0.5461 GB, free: 85.65 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001902/0.9797, allocations: 104.5 kB / 0.5462 GB, free: 85.65 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008921/0.9806, allocations: 197.5 kB / 0.5464 GB, free: 85.65 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006297/0.9869, allocations: 3.147 MB / 0.5495 GB, free: 85.63 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006391/0.9934, allocations: 3.672 MB / 0.5531 GB, free: 85.25 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.611e-05/0.9935, allocations: 6.531 kB / 0.5531 GB, free: 85.25 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002673/0.9937, allocations: 4.094 kB / 0.5531 GB, free: 85.25 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001157/0.9939, allocations: 152.8 kB / 0.5533 GB, free: 85.24 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01934/1.013, allocations: 13.27 MB / 0.5662 GB, free: 82.48 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00511/1.018, allocations: 6.535 MB / 0.5726 GB, free: 77.63 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001788/1.02, allocations: 1.288 MB / 0.5739 GB, free: 77.57 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005996/1.026, allocations: 3.699 MB / 0.5775 GB, free: 75.54 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.181e-05/1.026, allocations: 51.5 kB / 0.5775 GB, free: 75.49 MB / 410.7 MB Notification: Performance of pre-optimization done (n=144): time 4.038e-06/1.026, allocations: 0 / 0.5775 GB, free: 75.49 MB / 410.7 MB Notification: Performance of matching and sorting (n=147): time 0.007926/1.034, allocations: 4.471 MB / 0.5819 GB, free: 73.23 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.3e-05/1.034, allocations: 67.59 kB / 0.5819 GB, free: 73.17 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001715/1.036, allocations: 1.244 MB / 0.5832 GB, free: 72.63 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001222/1.036, allocations: 25.7 kB / 0.5832 GB, free: 72.6 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000807/1.037, allocations: 1.426 MB / 0.5846 GB, free: 71.52 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003051/1.037, allocations: 487.9 kB / 0.585 GB, free: 71.14 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.36e-05/1.037, allocations: 0 / 0.585 GB, free: 71.14 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001008/1.037, allocations: 379 kB / 0.5854 GB, free: 70.8 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007948/1.038, allocations: 0.6309 MB / 0.586 GB, free: 70.53 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000925/1.039, allocations: 1.089 MB / 0.5871 GB, free: 69.68 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001461/1.041, allocations: 0.9823 MB / 0.588 GB, free: 69.29 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.347e-06/1.041, allocations: 3.562 kB / 0.588 GB, free: 69.29 MB / 410.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.004235/1.045, allocations: 2.447 MB / 0.5904 GB, free: 68.31 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.041e-05/1.045, allocations: 11.22 kB / 0.5904 GB, free: 68.31 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.478e-05/1.045, allocations: 14.72 kB / 0.5905 GB, free: 68.31 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008361/1.046, allocations: 365.4 kB / 0.5908 GB, free: 68.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001339/1.047, allocations: 385.2 kB / 0.5912 GB, free: 68.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005248/1.053, allocations: 7.553 MB / 0.5986 GB, free: 61.86 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001441/1.054, allocations: 45.05 kB / 0.5986 GB, free: 61.85 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001304/1.054, allocations: 67.09 kB / 0.5987 GB, free: 61.84 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * Number of states: 0 () * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (192): * Single equations (assignments): 187 * 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%) 1,(1,100.0%) 7,(3,100.0%) 9,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002998/1.054, allocations: 155.4 kB / 0.5988 GB, free: 61.72 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003369/1.058, allocations: 2.189 MB / 0.6009 GB, free: 60.71 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002846/1.058, allocations: 175.7 kB / 0.6011 GB, free: 60.62 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003604/1.062, allocations: 2.319 MB / 0.6034 GB, free: 59.55 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-05/1.062, allocations: 14.34 kB / 0.6034 GB, free: 59.55 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.111e-05/1.062, allocations: 10.16 kB / 0.6034 GB, free: 59.55 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.409e-05/1.062, allocations: 11.27 kB / 0.6034 GB, free: 59.55 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007542/1.069, allocations: 4.762 MB / 0.6081 GB, free: 57.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.136e-06/1.069, allocations: 3.469 kB / 0.6081 GB, free: 57.32 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008518/1.07, allocations: 195.9 kB / 0.6083 GB, free: 57.31 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001196/1.071, allocations: 0.5282 MB / 0.6088 GB, free: 57.12 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.692e-05/1.072, allocations: 25.45 kB / 0.6088 GB, free: 57.11 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008609/1.08, allocations: 11.77 MB / 0.6203 GB, free: 47.3 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.434e-06/1.08, allocations: 0 / 0.6203 GB, free: 47.3 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005024/1.085, allocations: 3.365 MB / 0.6236 GB, free: 45.52 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001196/1.087, allocations: 415.7 kB / 0.624 GB, free: 45.23 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002623/1.087, allocations: 20.02 kB / 0.624 GB, free: 45.22 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000844/1.088, allocations: 48.56 kB / 0.624 GB, free: 45.22 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002882/1.088, allocations: 119.8 kB / 0.6241 GB, free: 45.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.844e-05/1.088, allocations: 41.83 kB / 0.6242 GB, free: 45.19 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001353/1.089, allocations: 0.9299 MB / 0.6251 GB, free: 44.78 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.61e-07/1.089, allocations: 0 / 0.6251 GB, free: 44.78 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002293/1.092, allocations: 0.5375 MB / 0.6256 GB, free: 44.76 MB / 410.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.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.zeroInductor.i0,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 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 88 * 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%) 1,(1,100.0%) 7,(1,100.0%) 13,(3,100.0%) 9,(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.004827/1.097, allocations: 4.555 MB / 0.6301 GB, free: 40.68 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002931/1.099, allocations: 2.236 MB / 0.6323 GB, free: 38.52 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/1.1, allocations: 0 / 0.6323 GB, free: 38.52 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001996/1.102, allocations: 1.684 MB / 0.6339 GB, free: 36.9 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002208/1.104, allocations: 386.3 kB / 0.6343 GB, free: 36.6 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01029/1.114, allocations: 5.454 MB / 0.6396 GB, free: 31.83 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001668/1.116, allocations: 2.371 MB / 0.6419 GB, free: 29.96 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001363/1.117, allocations: 363.8 kB / 0.6423 GB, free: 29.71 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001174/1.118, allocations: 1.136 MB / 0.6434 GB, free: 28.66 MB / 410.7 MB Notification: Performance of SimCode: time 8.32e-07/1.118, allocations: 0 / 0.6434 GB, free: 28.66 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07926/1.198, allocations: 45.2 MB / 0.6875 GB, free: 6.23 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002013/1.198, allocations: 163.5 kB / 0.6877 GB, free: 6.039 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.411/4.609, allocations: 0 / 0.6877 GB, free: 6.039 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Steinmetz_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Steinmetz.fmu > Modelica_3.2.3_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_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz_res.mat does not exist to compare? outputFormat=mat