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.00147/0.001471, allocations: 186 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.928/1.928, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.00113/0.00113, allocations: 87.39 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003903/0.0003903, allocations: 12 kB / 327.1 MB, free: 92 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3286/0.329, allocations: 47.56 MB / 374.6 MB, free: 45.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1782/0.5073, allocations: 109.7 MB / 484.3 MB, free: 2.918 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003271/0.5076, allocations: 91.95 kB / 484.4 MB, free: 2.828 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5468/1.054, allocations: 80.56 MB / 0.5517 GB, free: 63.59 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.746e-06/1.054, allocations: 0 / 0.5517 GB, free: 63.59 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003032/1.055, allocations: 75.94 kB / 0.5518 GB, free: 63.51 MB / 378.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.01412/1.069, allocations: 3.517 MB / 0.5552 GB, free: 59.93 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.967e-05/1.069, allocations: 12.03 kB / 0.5552 GB, free: 59.91 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001749/1.071, allocations: 463.5 kB / 0.5557 GB, free: 59.45 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006006/1.077, allocations: 0.7412 MB / 0.5564 GB, free: 58.7 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01123/1.088, allocations: 3.335 MB / 0.5597 GB, free: 55.31 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002547/1.088, allocations: 234.5 kB / 0.5599 GB, free: 55.08 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001083/1.089, allocations: 327.9 kB / 0.5602 GB, free: 54.76 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01178/1.101, allocations: 4.204 MB / 0.5643 GB, free: 50.43 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001404/1.101, allocations: 7.984 kB / 0.5643 GB, free: 50.42 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005012/1.102, allocations: 132 kB / 0.5644 GB, free: 50.29 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001669/1.102, allocations: 142.4 kB / 0.5646 GB, free: 50.15 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01034/1.112, allocations: 3.438 MB / 0.5679 GB, free: 46.71 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0333/1.146, allocations: 13.9 MB / 0.5815 GB, free: 32.44 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009731/1.156, allocations: 6.667 MB / 0.588 GB, free: 24.95 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008082/1.164, allocations: 3.398 MB / 0.5913 GB, free: 21.46 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.784e-05/1.164, allocations: 47.88 kB / 0.5914 GB, free: 21.41 MB / 378.7 MB Notification: Performance of pre-optimization done (n=152): time 4.409e-06/1.164, allocations: 0 / 0.5914 GB, free: 21.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=155): time 0.01925/1.183, allocations: 6.467 MB / 0.5977 GB, free: 14.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.581e-05/1.183, allocations: 72.7 kB / 0.5978 GB, free: 14.62 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003067/1.186, allocations: 1.528 MB / 0.5992 GB, free: 13.09 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002927/1.187, allocations: 61.7 kB / 0.5993 GB, free: 13.02 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008487/1.187, allocations: 1.341 MB / 0.6006 GB, free: 11.67 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005376/1.188, allocations: 0.5197 MB / 0.6011 GB, free: 11.14 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001885/1.188, allocations: 36 kB / 0.6012 GB, free: 11.11 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001332/1.188, allocations: 390.7 kB / 0.6015 GB, free: 10.71 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00182/1.19, allocations: 0.7184 MB / 0.6022 GB, free: 9.996 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002028/1.192, allocations: 1.178 MB / 0.6034 GB, free: 8.625 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002223/1.194, allocations: 0.9549 MB / 0.6043 GB, free: 7.672 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.171e-05/1.194, allocations: 4 kB / 0.6043 GB, free: 7.668 MB / 378.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.006154/1.201, allocations: 2.585 MB / 0.6068 GB, free: 5.039 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.938e-05/1.201, allocations: 15.95 kB / 0.6069 GB, free: 5.023 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.157e-05/1.201, allocations: 12 kB / 0.6069 GB, free: 5.012 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001795/1.203, allocations: 448.8 kB / 0.6073 GB, free: 4.555 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002833/1.205, allocations: 375.4 kB / 0.6077 GB, free: 4.188 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01379/1.219, allocations: 9.8 MB / 0.6172 GB, free: 9.723 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002385/1.222, allocations: 88.05 kB / 0.6173 GB, free: 9.637 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002508/1.222, allocations: 68 kB / 0.6174 GB, free: 9.57 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (189): * Single equations (assignments): 183 * 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: 5 * 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: 5 {(1,100.0%) 7,(2,100.0%) 8,(3,100.0%) 9,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002853/1.225, allocations: 1.011 MB / 0.6184 GB, free: 8.551 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006423/1.225, allocations: 197.7 kB / 0.6186 GB, free: 8.355 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007644/1.233, allocations: 2.537 MB / 0.621 GB, free: 5.746 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-05/1.233, allocations: 20 kB / 0.621 GB, free: 5.727 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.092e-05/1.233, allocations: 8 kB / 0.6211 GB, free: 5.719 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.028e-05/1.233, allocations: 11.97 kB / 0.6211 GB, free: 5.707 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01523/1.248, allocations: 5.45 MB / 0.6264 GB, free: 112 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.455e-05/1.249, allocations: 4 kB / 0.6264 GB, free: 108 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00178/1.25, allocations: 187.9 kB / 0.6266 GB, free: 15.92 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003019/1.253, allocations: 0.6264 MB / 0.6272 GB, free: 15.27 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002508/1.254, allocations: 39.98 kB / 0.6272 GB, free: 15.23 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02258/1.276, allocations: 14.27 MB / 0.6412 GB, free: 28 kB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.738e-06/1.276, allocations: 11.92 kB / 0.6412 GB, free: 16 kB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2987/1.575, allocations: 3.638 MB / 0.6447 GB, free: 89.73 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00136/1.576, allocations: 446.7 kB / 0.6451 GB, free: 89.64 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004228/1.577, allocations: 40.36 kB / 0.6452 GB, free: 89.64 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001639/1.579, allocations: 76.58 kB / 0.6453 GB, free: 89.64 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004423/1.579, allocations: 138.4 kB / 0.6454 GB, free: 89.63 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001281/1.579, allocations: 41.78 kB / 0.6454 GB, free: 89.63 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002424/1.582, allocations: 1.17 MB / 0.6466 GB, free: 89.52 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.52e-07/1.582, allocations: 0 / 0.6466 GB, free: 89.52 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003596/1.585, allocations: 0.6475 MB / 0.6472 GB, free: 89.52 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (93): * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 13,(1,100.0%) 1,(1,100.0%) 7,(2,100.0%) 8,(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.009433/1.595, allocations: 4.843 MB / 0.6519 GB, free: 88.03 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00582/1.601, allocations: 2.657 MB / 0.6545 GB, free: 87.32 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.472e-06/1.601, allocations: 2.953 kB / 0.6545 GB, free: 87.32 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004617/1.605, allocations: 1.999 MB / 0.6565 GB, free: 86.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004241/1.609, allocations: 0.4994 MB / 0.657 GB, free: 86.49 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04829/1.658, allocations: 26.04 MB / 0.6824 GB, free: 71.04 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002758/1.661, allocations: 2.328 MB / 0.6847 GB, free: 70.27 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002474/1.663, allocations: 1.142 MB / 0.6858 GB, free: 70.26 MB / 410.7 MB Notification: Performance of SimCode: time 1.323e-06/1.663, allocations: 2.625 kB / 0.6858 GB, free: 70.26 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.345/6.008, allocations: 154.4 MB / 0.8366 GB, free: 122.2 MB / 442.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