Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.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.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_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.001062/0.001062, allocations: 199.2 kB / 8.538 MB, free: 1.719 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.118/1.118, allocations: 225.5 MB / 234.4 MB, free: 3.344 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008563/0.0008563, allocations: 90.59 kB / 286.3 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09114/0.09202, allocations: 56.91 MB / 343.2 MB, free: 8.641 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.081/0.173, allocations: 51.47 MB / 394.7 MB, free: 5.109 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2282/0.4013, allocations: 112.1 MB / 0.495 GB, free: 13.34 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002061/0.4015, allocations: 84.33 kB / 0.4951 GB, free: 13.3 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.3742/0.7757, allocations: 96.44 MB / 0.5892 GB, free: 52.3 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.365e-05/0.7757, allocations: 14.06 kB / 0.5893 GB, free: 52.3 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001705/0.7774, allocations: 0.5447 MB / 0.5898 GB, free: 52.07 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004129/0.7816, allocations: 2.575 MB / 0.5923 GB, free: 51.54 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.451e-05/0.7817, allocations: 113 kB / 0.5924 GB, free: 51.54 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004234/0.7821, allocations: 215.8 kB / 0.5926 GB, free: 51.54 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004983/0.7871, allocations: 3.777 MB / 0.5963 GB, free: 51.52 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005398/0.7925, allocations: 4.39 MB / 0.6006 GB, free: 51.04 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.455e-05/0.7926, allocations: 7.844 kB / 0.6006 GB, free: 51.04 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002874/0.7929, allocations: 3.906 kB / 0.6006 GB, free: 51.04 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001075/0.793, allocations: 186.1 kB / 0.6008 GB, free: 51.03 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01788/0.8109, allocations: 14.35 MB / 0.6148 GB, free: 48 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001865/0.8128, allocations: 1.628 MB / 0.6164 GB, free: 47.97 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00219/0.815, allocations: 1.994 MB / 0.6183 GB, free: 47.95 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002594/0.8153, allocations: 146 kB / 0.6185 GB, free: 47.86 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.726e-05/0.8153, allocations: 53.59 kB / 0.6185 GB, free: 47.82 MB / 442.7 MB Notification: Performance of pre-optimization done (n=201): time 3.827e-06/0.8153, allocations: 0 / 0.6185 GB, free: 47.82 MB / 442.7 MB Notification: Performance of matching and sorting (n=221): time 0.01102/0.8264, allocations: 7.4 MB / 0.6258 GB, free: 46.67 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.338e-05/0.8264, allocations: 75.56 kB / 0.6258 GB, free: 46.61 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001955/0.8284, allocations: 1.77 MB / 0.6276 GB, free: 46.39 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001154/0.8285, allocations: 28.92 kB / 0.6276 GB, free: 46.36 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000411/0.8289, allocations: 1.251 MB / 0.6288 GB, free: 45.64 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003475/0.8293, allocations: 0.7095 MB / 0.6295 GB, free: 45.16 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001137/0.8294, allocations: 0 / 0.6295 GB, free: 45.16 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.771e-05/0.8295, allocations: 398.1 kB / 0.6299 GB, free: 44.86 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00143/0.8309, allocations: 1.243 MB / 0.6311 GB, free: 44.85 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001564/0.8325, allocations: 1.664 MB / 0.6327 GB, free: 44.41 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001754/0.8342, allocations: 1.504 MB / 0.6342 GB, free: 44.39 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.242e-06/0.8343, allocations: 7.031 kB / 0.6342 GB, free: 44.39 MB / 442.7 MB Notification: Performance of matching and sorting (n=291) (initialization): time 0.004945/0.8392, allocations: 3.796 MB / 0.6379 GB, free: 43.15 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.212e-05/0.8392, allocations: 7.844 kB / 0.6379 GB, free: 43.15 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.552e-05/0.8393, allocations: 11.75 kB / 0.6379 GB, free: 43.15 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001705/0.841, allocations: 0.7529 MB / 0.6387 GB, free: 42.93 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002109/0.8431, allocations: 0.5301 MB / 0.6392 GB, free: 42.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00736/0.8505, allocations: 8.068 MB / 0.6471 GB, free: 37.33 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001677/0.8522, allocations: 61.55 kB / 0.6471 GB, free: 37.32 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002012/0.8524, allocations: 89.66 kB / 0.6472 GB, free: 37.3 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.0003551/0.8527, allocations: 152.9 kB / 0.6473 GB, free: 37.18 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003854/0.8531, allocations: 249.7 kB / 0.6476 GB, free: 37.06 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005303/0.8584, allocations: 3.541 MB / 0.651 GB, free: 35.78 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.955e-05/0.8585, allocations: 21.09 kB / 0.6511 GB, free: 35.78 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.083e-05/0.8585, allocations: 6.625 kB / 0.6511 GB, free: 35.78 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.661e-05/0.8585, allocations: 12 kB / 0.6511 GB, free: 35.78 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01143/0.8699, allocations: 7.401 MB / 0.6583 GB, free: 32.95 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.466e-06/0.87, allocations: 7.031 kB / 0.6583 GB, free: 32.95 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001839/0.8718, allocations: 389.5 kB / 0.6587 GB, free: 32.93 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002121/0.874, allocations: 0.7957 MB / 0.6595 GB, free: 32.7 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001659/0.8741, allocations: 26.92 kB / 0.6595 GB, free: 32.69 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008499/0.8826, allocations: 9.507 MB / 0.6688 GB, free: 25.82 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.581e-06/0.8827, allocations: 3.625 kB / 0.6688 GB, free: 25.82 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00692/0.8896, allocations: 5.63 MB / 0.6743 GB, free: 23.37 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008449/0.8981, allocations: 7.968 MB / 0.6821 GB, free: 19.76 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001343/0.8994, allocations: 0.607 MB / 0.6826 GB, free: 19.4 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004033/0.8999, allocations: 17.28 kB / 0.6827 GB, free: 19.39 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001316/0.9012, allocations: 83.09 kB / 0.6827 GB, free: 19.39 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002646/0.9015, allocations: 140.9 kB / 0.6829 GB, free: 19.36 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000155/0.9016, allocations: 64.95 kB / 0.6829 GB, free: 19.35 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001631/0.9033, allocations: 1.338 MB / 0.6842 GB, free: 18.79 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002734/0.906, allocations: 0.735 MB / 0.685 GB, free: 18.75 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.0004865/0.9065, allocations: 347.3 kB / 0.6853 GB, free: 18.62 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004234/0.9107, allocations: 3.639 MB / 0.6888 GB, free: 17.03 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.848e-06/0.9107, allocations: 3.156 kB / 0.6888 GB, free: 17.03 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002789/0.9135, allocations: 2.289 MB / 0.6911 GB, free: 15.92 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002179/0.9157, allocations: 0.5083 MB / 0.6916 GB, free: 15.78 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01046/0.9262, allocations: 6.452 MB / 0.6979 GB, free: 12.59 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002645/0.9289, allocations: 3.023 MB / 0.7008 GB, free: 10.22 MB / 442.7 MB Notification: Performance of SimCode: time 6.21e-07/0.9289, allocations: 0 / 0.7008 GB, free: 10.22 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer_res.mat does not exist to compare? outputFormat=mat