Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",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.001072/0.001072, allocations: 101 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.001153/0.001153, allocations: 178.1 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.402/1.402, allocations: 205.4 MB / 224 MB, free: 13.18 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.0004848/0.0004853, allocations: 11.28 kB / 280.9 MB, free: 3.629 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1084, allocations: 47.57 MB / 328.4 MB, free: 3.988 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize): time 0.02844/0.1369, allocations: 26.33 MB / 354.8 MB, free: 9.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02027/0.1573, allocations: 8.641 MB / 363.4 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006599/0.1639, allocations: 191.3 kB / 363.6 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007247/0.1712, allocations: 1.8 MB / 365.4 MB, free: 14.91 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01587/0.1871, allocations: 3.171 MB / 368.6 MB, free: 11.73 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006521/0.1936, allocations: 1.418 MB / 370 MB, free: 10.31 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2016/0.3952, allocations: 11.51 MB / 381.5 MB, free: 14.08 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03557/0.4308, allocations: 17.44 MB / 398.9 MB, free: 11.76 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01001/0.4409, allocations: 4.491 MB / 403.4 MB, free: 11.75 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01067/0.4516, allocations: 4.949 MB / 408.4 MB, free: 11.75 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00468/0.4563, allocations: 0.7274 MB / 409.1 MB, free: 11.75 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007252/0.4636, allocations: 1.012 MB / 410.1 MB, free: 11.75 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004644/0.4683, allocations: 2.322 MB / 412.4 MB, free: 11.62 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005296/0.4736, allocations: 2.408 MB / 414.8 MB, free: 10.73 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02338/0.497, allocations: 21.03 MB / 435.9 MB, free: 9.137 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.4971, allocations: 0 / 435.9 MB, free: 9.137 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.956e-06/0.4971, allocations: 0 / 435.9 MB, free: 9.137 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0008405/0.4979, allocations: 3.938 kB / 435.9 MB, free: 9.133 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3009 * Number of variables: 3009 Notification: Performance of Generate backend data structure: time 0.0395/0.5374, allocations: 12.41 MB / 448.3 MB, free: 14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.5375, allocations: 12.03 kB / 448.3 MB, free: 13.99 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005952/0.5435, allocations: 1.535 MB / 449.8 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04362/0.5871, allocations: 7.701 MB / 457.5 MB, free: 5.684 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01791/0.6051, allocations: 7.212 MB / 464.7 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00101/0.6061, allocations: 0.8011 MB / 465.5 MB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004785/0.6109, allocations: 1.073 MB / 466.6 MB, free: 12.93 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04662/0.6575, allocations: 17.5 MB / 484.1 MB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004662/0.6581, allocations: 17.59 kB / 484.1 MB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003856/0.6619, allocations: 444.3 kB / 484.6 MB, free: 10.96 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007705/0.6627, allocations: 0.6669 MB / 485.2 MB, free: 10.29 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03917/0.7019, allocations: 16.91 MB / 0.4904 GB, free: 9.355 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.487/1.189, allocations: 57.22 MB / 0.5463 GB, free: 96.58 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02793/1.217, allocations: 40 MB / 0.5853 GB, free: 62.78 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02232/1.239, allocations: 12.45 MB / 0.5975 GB, free: 59.98 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.965e-05/1.239, allocations: 80.27 kB / 0.5976 GB, free: 59.91 MB / 430.1 MB Notification: Performance of pre-optimization done (n=410): time 5.63e-06/1.239, allocations: 0 / 0.5976 GB, free: 59.91 MB / 430.1 MB Notification: Performance of matching and sorting (n=435): time 0.04863/1.288, allocations: 22.27 MB / 0.6193 GB, free: 47.94 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.032e-05/1.288, allocations: 124.1 kB / 0.6194 GB, free: 47.84 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007138/1.295, allocations: 4.719 MB / 0.624 GB, free: 45.32 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009444/1.296, allocations: 104.1 kB / 0.6241 GB, free: 45.23 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002466/1.299, allocations: 4.768 MB / 0.6288 GB, free: 41.07 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001678/1.3, allocations: 1.497 MB / 0.6302 GB, free: 39.78 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003948/1.301, allocations: 128.9 kB / 0.6304 GB, free: 39.68 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002915/1.301, allocations: 0.5488 MB / 0.6309 GB, free: 39.19 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00412/1.305, allocations: 2.996 MB / 0.6338 GB, free: 37.56 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004959/1.31, allocations: 5.231 MB / 0.6389 GB, free: 32.11 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005297/1.316, allocations: 4.102 MB / 0.6429 GB, free: 27.99 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.745e-05/1.316, allocations: 20 kB / 0.643 GB, free: 27.97 MB / 430.1 MB Notification: Performance of matching and sorting (n=811) (initialization): time 0.01644/1.332, allocations: 10.09 MB / 0.6528 GB, free: 17.82 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.166e-05/1.332, allocations: 41.41 kB / 0.6529 GB, free: 17.79 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001115/1.332, allocations: 76 kB / 0.6529 GB, free: 17.71 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004187/1.337, allocations: 1.663 MB / 0.6546 GB, free: 16.04 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005986/1.343, allocations: 1.427 MB / 0.6559 GB, free: 14.61 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01935/1.362, allocations: 16.88 MB / 0.6724 GB, free: 13.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006014/1.368, allocations: 345.7 kB / 0.6728 GB, free: 12.86 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001391/1.369, allocations: 304 kB / 0.6731 GB, free: 12.57 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 331 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (718): * Single equations (assignments): 714 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(7,69.4%) 28,(1,100.0%) 1,(14,41.8%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009868/1.379, allocations: 3.954 MB / 0.6769 GB, free: 8.598 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001643/1.381, allocations: 0.5017 MB / 0.6774 GB, free: 8.09 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01433/1.395, allocations: 7.934 MB / 0.6852 GB, free: 52 kB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.512e-05/1.395, allocations: 47.95 kB / 0.6852 GB, free: 4 kB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.247e-05/1.395, allocations: 16.05 kB / 0.6852 GB, free: 15.98 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.447e-05/1.395, allocations: 23.86 kB / 0.6852 GB, free: 15.96 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2621/1.658, allocations: 17.71 MB / 0.7025 GB, free: 136.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.063e-05/1.658, allocations: 7.312 kB / 0.7025 GB, free: 136.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004298/1.662, allocations: 0.7514 MB / 0.7033 GB, free: 136.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00503/1.667, allocations: 1.54 MB / 0.7048 GB, free: 136.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009639/1.668, allocations: 106.4 kB / 0.7049 GB, free: 136.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02294/1.691, allocations: 19.87 MB / 0.7243 GB, free: 126.2 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.055e-05/1.691, allocations: 11.31 kB / 0.7243 GB, free: 126.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01832/1.709, allocations: 12.42 MB / 0.7364 GB, free: 120.1 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003642/1.713, allocations: 1.177 MB / 0.7376 GB, free: 119.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001579/1.715, allocations: 95.3 kB / 0.7377 GB, free: 119.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003397/1.718, allocations: 241.2 kB / 0.7379 GB, free: 119.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009192/1.719, allocations: 340 kB / 0.7382 GB, free: 119.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002991/1.719, allocations: 137 kB / 0.7383 GB, free: 119.4 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005184/1.724, allocations: 3.166 MB / 0.7414 GB, free: 118.2 MB / 462.1 MB Notification: Performance of sort global known variables: time 6.61e-07/1.725, allocations: 0 / 0.7414 GB, free: 118.2 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.008787/1.733, allocations: 1.903 MB / 0.7433 GB, free: 118.1 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,imc.inertiaRotor.w,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.strayReluctance.Phi.re,imc.stator.strayReluctance.Phi.im,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (376): * Single equations (assignments): 369 * 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%) 1,(14,41.3%) 44,(2,100.0%) 12,(1,100.0%) 12,(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01809/1.751, allocations: 14.46 MB / 0.7574 GB, free: 110 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01289/1.764, allocations: 8.317 MB / 0.7655 GB, free: 106.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.022e-05/1.764, allocations: 0 / 0.7655 GB, free: 106.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007635/1.772, allocations: 4.738 MB / 0.7702 GB, free: 102.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006553/1.779, allocations: 1.189 MB / 0.7713 GB, free: 101.7 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3217/2.1, allocations: 107.9 MB / 0.8767 GB, free: 138.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01023/2.111, allocations: 7.037 MB / 0.8836 GB, free: 137.4 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006379/2.117, allocations: 1.936 MB / 0.8855 GB, free: 137.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005847/2.123, allocations: 3.987 MB / 0.8894 GB, free: 135.3 MB / 462.1 MB Notification: Performance of SimCode: time 6.61e-07/2.123, allocations: 0 / 0.8894 GB, free: 135.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1773/2.3, allocations: 148 MB / 1.034 GB, free: 3.5 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001446/2.3, allocations: 266 kB / 1.034 GB, free: 3.133 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.249/7.549, allocations: 0 / 1.034 GB, free: 3.133 MB / 462.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.mat does not exist to compare? outputFormat=mat