Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.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.Electrical.Machines.Examples.Transformers.AIMC_Transformer,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_Transformers_AIMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_Transformers_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.001017/0.001017, allocations: 172.3 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.294/1.294, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.0009876/0.0009873, allocations: 90.64 kB / 268 MB, free: 14.09 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.688e-05/3.706e-05, allocations: 4 kB / 322.6 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07777/0.07783, allocations: 47.57 MB / 370.1 MB, free: 1.617 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3115/0.3894, allocations: 111.7 MB / 481.9 MB, free: 13.98 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002538/0.3897, allocations: 88.95 kB / 481.9 MB, free: 13.94 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4261/0.8158, allocations: 93.56 MB / 0.562 GB, free: 89.91 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.923e-06/0.8158, allocations: 0 / 0.562 GB, free: 89.91 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004354/0.8163, allocations: 107.2 kB / 0.5621 GB, free: 89.89 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: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.009881/0.8262, allocations: 3.542 MB / 0.5656 GB, free: 88.45 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/0.8262, allocations: 14.39 kB / 0.5656 GB, free: 88.45 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001494/0.8277, allocations: 0.4993 MB / 0.5661 GB, free: 88.39 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002197/0.8299, allocations: 0.5057 MB / 0.5666 GB, free: 88.16 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005573/0.8355, allocations: 2.54 MB / 0.5691 GB, free: 87.61 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001873/0.8357, allocations: 268.1 kB / 0.5693 GB, free: 87.6 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009532/0.8367, allocations: 354.5 kB / 0.5696 GB, free: 87.59 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008412/0.8451, allocations: 4.844 MB / 0.5744 GB, free: 86.41 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.182e-05/0.8452, allocations: 5.875 kB / 0.5744 GB, free: 86.41 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004733/0.8457, allocations: 151.3 kB / 0.5745 GB, free: 86.3 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001455/0.8459, allocations: 174.5 kB / 0.5747 GB, free: 86.28 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006577/0.8524, allocations: 3.909 MB / 0.5785 GB, free: 84.75 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02289/0.8754, allocations: 14.96 MB / 0.5931 GB, free: 77.19 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003253/0.8786, allocations: 4.153 MB / 0.5972 GB, free: 74.34 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002102/0.8808, allocations: 1.841 MB / 0.599 GB, free: 73.7 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002803/0.8811, allocations: 150 kB / 0.5991 GB, free: 73.59 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.567e-05/0.8811, allocations: 51.31 kB / 0.5992 GB, free: 73.54 MB / 410.7 MB Notification: Performance of pre-optimization done (n=201): time 3.446e-06/0.8811, allocations: 0 / 0.5992 GB, free: 73.54 MB / 410.7 MB Notification: Performance of matching and sorting (n=221): time 0.01497/0.8961, allocations: 8.33 MB / 0.6073 GB, free: 69.46 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.272e-05/0.8962, allocations: 73.41 kB / 0.6074 GB, free: 69.38 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003443/0.8996, allocations: 2.192 MB / 0.6095 GB, free: 67.39 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002882/0.8999, allocations: 61.7 kB / 0.6096 GB, free: 67.32 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009326/0.9009, allocations: 1.602 MB / 0.6111 GB, free: 65.88 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006697/0.9016, allocations: 0.7336 MB / 0.6119 GB, free: 65.22 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002143/0.9018, allocations: 52 kB / 0.6119 GB, free: 65.17 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.9019, allocations: 392.3 kB / 0.6123 GB, free: 64.81 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001586/0.9035, allocations: 1.239 MB / 0.6135 GB, free: 63.71 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001773/0.9053, allocations: 1.661 MB / 0.6151 GB, free: 62.05 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00193/0.9072, allocations: 1.493 MB / 0.6166 GB, free: 60.78 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.049e-05/0.9072, allocations: 4 kB / 0.6166 GB, free: 60.78 MB / 410.7 MB Notification: Performance of matching and sorting (n=291) (initialization): time 0.005643/0.9129, allocations: 3.904 MB / 0.6204 GB, free: 57.35 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.377e-05/0.9129, allocations: 12 kB / 0.6204 GB, free: 57.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.916e-05/0.913, allocations: 16.2 kB / 0.6204 GB, free: 57.32 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001675/0.9146, allocations: 0.7697 MB / 0.6212 GB, free: 56.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001914/0.9166, allocations: 0.5252 MB / 0.6217 GB, free: 56.24 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007403/0.924, allocations: 8.705 MB / 0.6302 GB, free: 47.93 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002042/0.9261, allocations: 121.5 kB / 0.6303 GB, free: 47.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003047/0.9264, allocations: 86.27 kB / 0.6304 GB, free: 47.76 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (248): * Single equations (assignments): 243 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(1,100.0%) 1,(3,88.9%) 25} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004582/0.9268, allocations: 241.1 kB / 0.6306 GB, free: 47.52 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006982/0.9276, allocations: 272.7 kB / 0.6309 GB, free: 47.25 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005485/0.933, allocations: 3.64 MB / 0.6344 GB, free: 44.18 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.509e-05/0.9331, allocations: 24 kB / 0.6344 GB, free: 44.16 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-05/0.9331, allocations: 4 kB / 0.6344 GB, free: 44.15 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.946e-05/0.9331, allocations: 10.5 kB / 0.6345 GB, free: 44.15 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01398/0.9471, allocations: 7.954 MB / 0.6422 GB, free: 36.49 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.05e-05/0.9472, allocations: 4 kB / 0.6422 GB, free: 36.48 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001535/0.9487, allocations: 399.7 kB / 0.6426 GB, free: 36.09 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001954/0.9507, allocations: 0.8043 MB / 0.6434 GB, free: 35.27 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001943/0.9509, allocations: 55.97 kB / 0.6434 GB, free: 35.22 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008662/0.9596, allocations: 10.21 MB / 0.6534 GB, free: 24.48 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.9596, allocations: 7.938 kB / 0.6534 GB, free: 24.47 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00718/0.9668, allocations: 5.612 MB / 0.6589 GB, free: 18.73 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001483/0.9683, allocations: 0.642 MB / 0.6595 GB, free: 18.07 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007061/0.969, allocations: 59.94 kB / 0.6596 GB, free: 18.01 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001695/0.9707, allocations: 130.5 kB / 0.6597 GB, free: 17.88 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000364/0.9711, allocations: 173.7 kB / 0.6599 GB, free: 17.71 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001554/0.9713, allocations: 63.98 kB / 0.6599 GB, free: 17.65 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00264/0.9739, allocations: 1.679 MB / 0.6616 GB, free: 15.95 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.012e-06/0.974, allocations: 96 / 0.6616 GB, free: 15.95 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002938/0.9769, allocations: 0.8399 MB / 0.6624 GB, free: 15.11 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 (aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],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 (178): * Single equations (assignments): 173 * 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 {(2,100.0%) 12,(1,100.0%) 1,(3,88.9%) 25,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007763/0.9847, allocations: 7.132 MB / 0.6694 GB, free: 7.91 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005936/0.9906, allocations: 3.768 MB / 0.673 GB, free: 4.066 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.72e-06/0.9907, allocations: 0 / 0.673 GB, free: 4.066 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003189/0.9939, allocations: 2.445 MB / 0.6754 GB, free: 1.551 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004252/0.9981, allocations: 0.7368 MB / 0.6762 GB, free: 0.8398 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01766/1.016, allocations: 7.512 MB / 0.6835 GB, free: 9.316 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003267/1.019, allocations: 2.843 MB / 0.6863 GB, free: 6.449 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002627/1.022, allocations: 0.6761 MB / 0.6869 GB, free: 5.789 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002244/1.024, allocations: 1.401 MB / 0.6883 GB, free: 4.387 MB / 426.7 MB Notification: Performance of SimCode: time 6.21e-07/1.024, allocations: 0 / 0.6883 GB, free: 4.387 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3123/1.336, allocations: 74.93 MB / 0.7615 GB, free: 75.05 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001855/1.337, allocations: 201.9 kB / 0.7617 GB, free: 74.82 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.203/5.539, allocations: 0 / 0.7617 GB, free: 74.82 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_Transformers_AIMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_Transformers_AIMC_Transformer.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer_res.mat does not exist to compare? outputFormat=mat