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/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_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/Complex 3.2.3+maint.om/package.mo): time 0.001056/0.001056, allocations: 172.2 kB / 14.1 MB, free: 1.223 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.317/1.317, allocations: 205.2 MB / 219.8 MB, free: 14.21 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.0007662/0.0007662, allocations: 78.72 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.011e-05/5.022e-05, allocations: 4 kB / 322.6 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08036/0.08043, allocations: 47.56 MB / 370.1 MB, free: 1.625 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3274/0.4079, allocations: 118.1 MB / 488.2 MB, free: 7.754 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002426/0.4082, allocations: 85.64 kB / 488.3 MB, free: 7.711 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.491/0.8992, allocations: 133 MB / 0.6067 GB, free: 76.88 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.745e-06/0.8992, allocations: 0 / 0.6067 GB, free: 76.88 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004297/0.8997, allocations: 134.7 kB / 0.6068 GB, free: 76.75 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: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.01298/0.9127, allocations: 4.771 MB / 0.6115 GB, free: 71.92 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.9127, allocations: 16.03 kB / 0.6115 GB, free: 71.91 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001975/0.9147, allocations: 0.6695 MB / 0.6122 GB, free: 71.23 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005274/0.92, allocations: 0.9755 MB / 0.6131 GB, free: 70.25 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009637/0.9297, allocations: 4.475 MB / 0.6175 GB, free: 65.8 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002927/0.93, allocations: 360.9 kB / 0.6178 GB, free: 65.45 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001491/0.9315, allocations: 490 kB / 0.6183 GB, free: 64.97 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01095/0.9425, allocations: 6.606 MB / 0.6247 GB, free: 58.19 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.999e-05/0.9426, allocations: 11.89 kB / 0.6248 GB, free: 58.18 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004378/0.943, allocations: 207.1 kB / 0.625 GB, free: 57.98 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001513/0.9432, allocations: 233.8 kB / 0.6252 GB, free: 57.75 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007911/0.9511, allocations: 5.416 MB / 0.6305 GB, free: 52.32 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03009/0.9812, allocations: 20.99 MB / 0.651 GB, free: 31.06 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007246/0.9885, allocations: 9.824 MB / 0.6606 GB, free: 20.2 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003332/0.9919, allocations: 2.406 MB / 0.6629 GB, free: 17.79 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0104/1.002, allocations: 6.501 MB / 0.6693 GB, free: 11.25 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.994e-05/1.002, allocations: 64.52 kB / 0.6693 GB, free: 11.17 MB / 410.7 MB Notification: Performance of pre-optimization done (n=217): time 4.578e-06/1.002, allocations: 0 / 0.6693 GB, free: 11.17 MB / 410.7 MB Notification: Performance of matching and sorting (n=224): time 0.01164/1.014, allocations: 7.252 MB / 0.6764 GB, free: 3.836 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.077e-05/1.014, allocations: 73.41 kB / 0.6765 GB, free: 3.754 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004107/1.018, allocations: 2.612 MB / 0.679 GB, free: 1.129 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001954/1.018, allocations: 77.62 kB / 0.6791 GB, free: 1.047 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001289/1.02, allocations: 2.167 MB / 0.6812 GB, free: 14.87 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000629/1.02, allocations: 0.7483 MB / 0.6819 GB, free: 14.12 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00017/1.021, allocations: 52 kB / 0.682 GB, free: 14.07 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001869/1.021, allocations: 403 kB / 0.6824 GB, free: 13.68 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001841/1.023, allocations: 1.208 MB / 0.6836 GB, free: 12.46 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002188/1.025, allocations: 1.784 MB / 0.6853 GB, free: 10.44 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002229/1.027, allocations: 1.505 MB / 0.6868 GB, free: 8.938 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.183e-05/1.027, allocations: 4 kB / 0.6868 GB, free: 8.934 MB / 426.7 MB Notification: Performance of matching and sorting (n=319) (initialization): time 0.006637/1.034, allocations: 4.042 MB / 0.6907 GB, free: 4.844 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.168e-05/1.034, allocations: 12 kB / 0.6907 GB, free: 4.832 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.731e-05/1.034, allocations: 20 kB / 0.6908 GB, free: 4.812 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001703/1.036, allocations: 0.6514 MB / 0.6914 GB, free: 4.148 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002183/1.038, allocations: 0.5461 MB / 0.6919 GB, free: 3.602 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2494/1.287, allocations: 9.991 MB / 0.7017 GB, free: 80.71 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00251/1.29, allocations: 107.1 kB / 0.7018 GB, free: 80.71 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005923/1.29, allocations: 100.2 kB / 0.7019 GB, free: 80.71 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (269): * Single equations (assignments): 264 * 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%) 8,(3,88.9%) 25,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007111/1.291, allocations: 254.9 kB / 0.7021 GB, free: 80.6 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001009/1.292, allocations: 314.5 kB / 0.7024 GB, free: 80.6 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006821/1.299, allocations: 3.778 MB / 0.7061 GB, free: 80.21 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.086e-05/1.299, allocations: 22.23 kB / 0.7061 GB, free: 80.21 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.822e-05/1.299, allocations: 10.09 kB / 0.7061 GB, free: 80.21 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.805e-05/1.299, allocations: 12.7 kB / 0.7062 GB, free: 80.21 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01326/1.312, allocations: 8.395 MB / 0.7143 GB, free: 79.47 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.977e-06/1.312, allocations: 8.859 kB / 0.7144 GB, free: 79.47 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001431/1.314, allocations: 343.3 kB / 0.7147 GB, free: 79.47 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001994/1.316, allocations: 0.808 MB / 0.7155 GB, free: 79.42 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001707/1.316, allocations: 65.75 kB / 0.7155 GB, free: 79.42 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0126/1.329, allocations: 14.37 MB / 0.7296 GB, free: 71.54 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/1.329, allocations: 6.219 kB / 0.7296 GB, free: 71.54 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007398/1.336, allocations: 5.659 MB / 0.7351 GB, free: 70.76 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001748/1.338, allocations: 0.6967 MB / 0.7358 GB, free: 70.58 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000937/1.339, allocations: 47.97 kB / 0.7358 GB, free: 70.58 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001925/1.341, allocations: 127.9 kB / 0.736 GB, free: 70.58 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004315/1.341, allocations: 187.2 kB / 0.7361 GB, free: 70.58 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001677/1.341, allocations: 62.72 kB / 0.7362 GB, free: 70.58 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003465/1.345, allocations: 2.004 MB / 0.7382 GB, free: 70.22 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.61e-07/1.345, allocations: 0 / 0.7382 GB, free: 70.22 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003905/1.349, allocations: 0.978 MB / 0.7391 GB, free: 70.13 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (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,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (154): * Single equations (assignments): 148 * 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 {(3,88.9%) 25,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007879/1.357, allocations: 7.091 MB / 0.746 GB, free: 66.41 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005102/1.362, allocations: 3.726 MB / 0.7497 GB, free: 64.71 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.474e-06/1.362, allocations: 0 / 0.7497 GB, free: 64.71 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003183/1.365, allocations: 2.559 MB / 0.7522 GB, free: 63.31 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004498/1.369, allocations: 0.8671 MB / 0.753 GB, free: 63.11 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02151/1.391, allocations: 9.135 MB / 0.7619 GB, free: 59.63 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005067/1.396, allocations: 3.512 MB / 0.7654 GB, free: 58.28 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003324/1.399, allocations: 0.7366 MB / 0.7661 GB, free: 58.2 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003007/1.402, allocations: 1.812 MB / 0.7679 GB, free: 56.7 MB / 426.7 MB Notification: Performance of SimCode: time 1.483e-06/1.402, allocations: 4 kB / 0.7679 GB, free: 56.69 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.122/1.524, allocations: 86.68 MB / 0.8525 GB, free: 5.023 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002318/1.525, allocations: 192.2 kB / 0.8527 GB, free: 4.805 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.078/5.602, allocations: 0 / 0.8527 GB, free: 4.805 MB / 442.7 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) 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