Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001426/0.001426, allocations: 199.5 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.48/1.48, allocations: 225.6 MB / 234.8 MB, free: 3.297 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009718/0.0009718, allocations: 100.4 kB / 286.7 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.789e-05/1.792e-05, allocations: 0 / 343.8 MB, free: 8.23 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1119, allocations: 51.48 MB / 395.3 MB, free: 4.711 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3787/0.4906, allocations: 112.3 MB / 0.4957 GB, free: 13.02 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002607/0.4909, allocations: 86.75 kB / 0.4958 GB, free: 12.98 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5189/1.01, allocations: 92.87 MB / 0.5865 GB, free: 68.62 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.955e-06/1.01, allocations: 3.25 kB / 0.5865 GB, free: 68.62 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004734/1.01, allocations: 98.95 kB / 0.5866 GB, free: 68.61 MB / 442.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.01217/1.023, allocations: 3.568 MB / 0.59 GB, free: 67.42 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.528e-05/1.023, allocations: 12.47 kB / 0.59 GB, free: 67.42 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003399/1.026, allocations: 0.5374 MB / 0.5906 GB, free: 67.2 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006256/1.032, allocations: 2.545 MB / 0.5931 GB, free: 66.66 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002014/1.033, allocations: 112.7 kB / 0.5932 GB, free: 66.66 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001441/1.034, allocations: 217.2 kB / 0.5934 GB, free: 66.66 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007845/1.042, allocations: 3.69 MB / 0.597 GB, free: 66.64 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009943/1.052, allocations: 4.308 MB / 0.6012 GB, free: 66.16 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001516/1.052, allocations: 14 kB / 0.6012 GB, free: 66.16 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008943/1.053, allocations: 8.656 kB / 0.6012 GB, free: 66.16 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001766/1.053, allocations: 173.5 kB / 0.6014 GB, free: 66.15 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02619/1.079, allocations: 14.22 MB / 0.6153 GB, free: 63.13 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004141/1.084, allocations: 4.065 MB / 0.6192 GB, free: 61.4 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00263/1.086, allocations: 1.751 MB / 0.6209 GB, free: 61.38 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003343/1.087, allocations: 152.4 kB / 0.6211 GB, free: 61.28 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.682e-05/1.087, allocations: 60.84 kB / 0.6211 GB, free: 61.23 MB / 442.7 MB Notification: Performance of pre-optimization done (n=201): time 4.218e-06/1.087, allocations: 0 / 0.6211 GB, free: 61.23 MB / 442.7 MB Notification: Performance of matching and sorting (n=221): time 0.01563/1.102, allocations: 7.198 MB / 0.6282 GB, free: 59.52 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.334e-05/1.102, allocations: 78.97 kB / 0.6282 GB, free: 59.45 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003297/1.106, allocations: 1.742 MB / 0.6299 GB, free: 58.74 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003945/1.106, allocations: 30.77 kB / 0.63 GB, free: 58.71 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009781/1.107, allocations: 1.613 MB / 0.6316 GB, free: 57.48 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006851/1.108, allocations: 0.7028 MB / 0.6322 GB, free: 56.92 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001196/1.108, allocations: 1.062 kB / 0.6322 GB, free: 56.92 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001344/1.108, allocations: 393.8 kB / 0.6326 GB, free: 56.58 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001613/1.11, allocations: 1.197 MB / 0.6338 GB, free: 56.12 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0015/1.111, allocations: 1.609 MB / 0.6354 GB, free: 55.19 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001624/1.113, allocations: 1.44 MB / 0.6368 GB, free: 54.64 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.436e-06/1.113, allocations: 3.844 kB / 0.6368 GB, free: 54.64 MB / 442.7 MB Notification: Performance of matching and sorting (n=291) (initialization): time 0.005692/1.119, allocations: 3.667 MB / 0.6403 GB, free: 53.34 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.773e-05/1.119, allocations: 11.31 kB / 0.6404 GB, free: 53.34 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.973e-05/1.119, allocations: 11.38 kB / 0.6404 GB, free: 53.34 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001763/1.12, allocations: 0.7376 MB / 0.6411 GB, free: 53.11 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002168/1.123, allocations: 0.5268 MB / 0.6416 GB, free: 53.09 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007851/1.13, allocations: 8.344 MB / 0.6498 GB, free: 47.27 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002599/1.133, allocations: 71.56 kB / 0.6498 GB, free: 47.27 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002753/1.133, allocations: 90.98 kB / 0.6499 GB, free: 47.25 MB / 442.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,(2,100.0%) 26} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005483/1.134, allocations: 148.7 kB / 0.65 GB, free: 47.13 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005525/1.14, allocations: 3.225 MB / 0.6532 GB, free: 45.94 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008083/1.14, allocations: 240.6 kB / 0.6534 GB, free: 45.82 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005657/1.146, allocations: 3.415 MB / 0.6568 GB, free: 44.55 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.616e-05/1.146, allocations: 21.97 kB / 0.6568 GB, free: 44.55 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.095e-05/1.146, allocations: 11.84 kB / 0.6568 GB, free: 44.55 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-05/1.146, allocations: 12 kB / 0.6568 GB, free: 44.55 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01489/1.161, allocations: 7.287 MB / 0.6639 GB, free: 41.69 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.127e-05/1.161, allocations: 2.906 kB / 0.6639 GB, free: 41.69 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001633/1.163, allocations: 399.1 kB / 0.6643 GB, free: 41.66 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001992/1.165, allocations: 0.7971 MB / 0.6651 GB, free: 41.42 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002205/1.165, allocations: 27.78 kB / 0.6651 GB, free: 41.41 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008582/1.174, allocations: 9.815 MB / 0.6747 GB, free: 34.27 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.113e-06/1.174, allocations: 3.562 kB / 0.6747 GB, free: 34.27 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008206/1.182, allocations: 5.394 MB / 0.68 GB, free: 31.81 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002119/1.184, allocations: 0.6051 MB / 0.6806 GB, free: 31.45 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001091/1.185, allocations: 18.23 kB / 0.6806 GB, free: 31.44 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002132/1.187, allocations: 87.59 kB / 0.6807 GB, free: 31.43 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005457/1.188, allocations: 176.9 kB / 0.6808 GB, free: 31.41 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002227/1.188, allocations: 68.92 kB / 0.6809 GB, free: 31.39 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003138/1.191, allocations: 1.309 MB / 0.6822 GB, free: 30.84 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.3e-07/1.191, allocations: 0 / 0.6822 GB, free: 30.84 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00451/1.196, allocations: 0.7257 MB / 0.6829 GB, free: 30.82 MB / 442.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.008752/1.205, allocations: 6.899 MB / 0.6896 GB, free: 27.12 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004774/1.209, allocations: 3.626 MB / 0.6932 GB, free: 25.46 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.633e-06/1.209, allocations: 0.5 kB / 0.6932 GB, free: 25.46 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002978/1.212, allocations: 2.342 MB / 0.6954 GB, free: 24.28 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003347/1.216, allocations: 0.5238 MB / 0.696 GB, free: 24.15 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01351/1.229, allocations: 7.272 MB / 0.7031 GB, free: 20.48 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002281/1.232, allocations: 2.845 MB / 0.7058 GB, free: 18.29 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002285/1.234, allocations: 0.6338 MB / 0.7065 GB, free: 17.84 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001644/1.236, allocations: 1.365 MB / 0.7078 GB, free: 16.58 MB / 442.7 MB Notification: Performance of SimCode: time 1.413e-06/1.236, allocations: 0 / 0.7078 GB, free: 16.58 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3627/1.598, allocations: 61.8 MB / 0.7681 GB, free: 76.32 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001462/1.598, allocations: 158.1 kB / 0.7683 GB, free: 76.13 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.799/5.397, allocations: 0 / 0.7683 GB, free: 76.13 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer_res.mat does not exist to compare? outputFormat=mat