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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001046/0.001046, allocations: 207.9 kB / 8.545 MB, free: 1.816 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.141/1.141, allocations: 225.5 MB / 234.4 MB, free: 3.371 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008786/0.0008786, allocations: 93.62 kB / 286.3 MB, free: 5.246 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09914/0.1, allocations: 56.9 MB / 343.2 MB, free: 8.633 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08836/0.1884, allocations: 51.48 MB / 394.7 MB, free: 5.102 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2441/0.4326, allocations: 112.2 MB / 0.4951 GB, free: 13.23 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002493/0.4329, allocations: 92.44 kB / 0.4952 GB, free: 13.18 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: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.3707/0.8036, allocations: 96.59 MB / 0.5895 GB, free: 69.21 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.278e-05/0.8036, allocations: 7.156 kB / 0.5895 GB, free: 69.21 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001487/0.8051, allocations: 0.553 MB / 0.59 GB, free: 68.98 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003763/0.8089, allocations: 2.568 MB / 0.5925 GB, free: 68.45 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.327e-05/0.809, allocations: 117.6 kB / 0.5926 GB, free: 68.45 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003942/0.8094, allocations: 207.9 kB / 0.5928 GB, free: 68.45 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00487/0.8142, allocations: 3.777 MB / 0.5965 GB, free: 68.43 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00548/0.8197, allocations: 4.39 MB / 0.6008 GB, free: 67.95 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.439e-05/0.8198, allocations: 7.531 kB / 0.6008 GB, free: 67.94 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002843/0.8201, allocations: 3.562 kB / 0.6008 GB, free: 67.94 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001199/0.8202, allocations: 183.2 kB / 0.601 GB, free: 67.93 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0176/0.8379, allocations: 14.36 MB / 0.615 GB, free: 64.91 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001936/0.8398, allocations: 1.632 MB / 0.6166 GB, free: 64.89 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002291/0.8421, allocations: 1.992 MB / 0.6186 GB, free: 64.87 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002834/0.8424, allocations: 142.2 kB / 0.6187 GB, free: 64.77 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.041e-05/0.8425, allocations: 59.28 kB / 0.6188 GB, free: 64.73 MB / 442.7 MB Notification: Performance of pre-optimization done (n=201): time 4.087e-06/0.8425, allocations: 0 / 0.6188 GB, free: 64.73 MB / 442.7 MB Notification: Performance of matching and sorting (n=221): time 0.01174/0.8542, allocations: 7.392 MB / 0.626 GB, free: 61.88 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.614e-05/0.8543, allocations: 79.22 kB / 0.6261 GB, free: 61.82 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002321/0.8566, allocations: 1.77 MB / 0.6278 GB, free: 61.11 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001391/0.8568, allocations: 25.7 kB / 0.6278 GB, free: 61.08 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004571/0.8572, allocations: 1.256 MB / 0.629 GB, free: 60.19 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004087/0.8576, allocations: 0.7055 MB / 0.6297 GB, free: 59.63 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001157/0.8578, allocations: 0 / 0.6297 GB, free: 59.63 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.8579, allocations: 401.3 kB / 0.6301 GB, free: 59.29 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00138/0.8593, allocations: 1.248 MB / 0.6313 GB, free: 58.83 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001554/0.8608, allocations: 1.664 MB / 0.6329 GB, free: 57.89 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001679/0.8625, allocations: 1.501 MB / 0.6344 GB, free: 57.36 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.684e-06/0.8625, allocations: 3.781 kB / 0.6344 GB, free: 57.36 MB / 442.7 MB Notification: Performance of matching and sorting (n=291) (initialization): time 0.00507/0.8676, allocations: 3.798 MB / 0.6381 GB, free: 56.06 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/0.8676, allocations: 3.812 kB / 0.6381 GB, free: 56.06 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.742e-05/0.8677, allocations: 11.53 kB / 0.6381 GB, free: 56.06 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001667/0.8693, allocations: 0.7579 MB / 0.6389 GB, free: 55.83 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002079/0.8714, allocations: 0.525 MB / 0.6394 GB, free: 55.81 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007596/0.879, allocations: 8.073 MB / 0.6473 GB, free: 50.23 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00192/0.881, allocations: 65.2 kB / 0.6473 GB, free: 50.22 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002069/0.8812, allocations: 80.72 kB / 0.6474 GB, free: 50.21 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.0003831/0.8816, allocations: 162.4 kB / 0.6476 GB, free: 50.09 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000441/0.882, allocations: 249.5 kB / 0.6478 GB, free: 49.96 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005512/0.8875, allocations: 3.54 MB / 0.6513 GB, free: 48.68 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.682e-05/0.8876, allocations: 21.09 kB / 0.6513 GB, free: 48.68 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.126e-05/0.8876, allocations: 7.594 kB / 0.6513 GB, free: 48.68 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.774e-05/0.8876, allocations: 12.94 kB / 0.6513 GB, free: 48.68 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01128/0.8989, allocations: 7.402 MB / 0.6585 GB, free: 45.85 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.636e-06/0.8989, allocations: 3.281 kB / 0.6585 GB, free: 45.85 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001788/0.9007, allocations: 390.8 kB / 0.6589 GB, free: 45.83 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002092/0.9028, allocations: 0.7892 MB / 0.6597 GB, free: 45.6 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001571/0.903, allocations: 27.47 kB / 0.6597 GB, free: 45.59 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008393/0.9114, allocations: 9.502 MB / 0.669 GB, free: 38.72 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.9114, allocations: 7 kB / 0.669 GB, free: 38.72 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006663/0.9181, allocations: 5.636 MB / 0.6745 GB, free: 36.26 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008326/0.9264, allocations: 7.962 MB / 0.6823 GB, free: 32.66 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00158/0.928, allocations: 0.6088 MB / 0.6829 GB, free: 32.29 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004228/0.9285, allocations: 18.69 kB / 0.6829 GB, free: 32.29 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001294/0.9298, allocations: 86.83 kB / 0.683 GB, free: 32.28 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002607/0.93, allocations: 141.6 kB / 0.6831 GB, free: 32.26 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001524/0.9302, allocations: 61.14 kB / 0.6832 GB, free: 32.25 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001646/0.9319, allocations: 1.341 MB / 0.6845 GB, free: 31.68 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00265/0.9345, allocations: 0.7272 MB / 0.6852 GB, free: 31.65 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,(2,100.0%) 26,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004786/0.935, allocations: 353.5 kB / 0.6855 GB, free: 31.52 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004279/0.9393, allocations: 3.632 MB / 0.6891 GB, free: 29.92 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.9393, allocations: 0 / 0.6891 GB, free: 29.92 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002799/0.9421, allocations: 2.292 MB / 0.6913 GB, free: 28.81 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002243/0.9444, allocations: 0.507 MB / 0.6918 GB, free: 28.68 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0116/0.956, allocations: 6.457 MB / 0.6981 GB, free: 24.78 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002717/0.9587, allocations: 3.035 MB / 0.7011 GB, free: 22.41 MB / 442.7 MB Notification: Performance of SimCode: time 1.092e-06/0.9588, allocations: 0 / 0.7011 GB, free: 22.41 MB / 442.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