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"}) [: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 3.2.3+maint.om/package.mo): time 0.0009354/0.0009354, allocations: 180.6 kB / 8.478 MB, free: 1.879 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.093/1.093, allocations: 205.2 MB / 214.1 MB, free: 5.113 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009648/0.0009649, allocations: 86.77 kB / 262.1 MB, free: 5.16 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1521/0.1531, allocations: 52.98 MB / 315.1 MB, free: 41.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06404/0.2171, allocations: 47.58 MB / 362.6 MB, free: 9.891 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2283/0.4454, allocations: 111 MB / 473.6 MB, free: 13.95 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001776/0.4456, allocations: 87.89 kB / 473.7 MB, free: 13.91 MB / 330.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.2381/0.6837, allocations: 96.1 MB / 0.5565 GB, free: 4.805 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.244e-05/0.6838, allocations: 8 kB / 0.5565 GB, free: 4.797 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001977/0.6858, allocations: 0.5102 MB / 0.557 GB, free: 4.281 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005347/0.6911, allocations: 2.572 MB / 0.5595 GB, free: 1.66 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001318/0.6913, allocations: 116 kB / 0.5596 GB, free: 1.547 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000588/0.6919, allocations: 211.9 kB / 0.5598 GB, free: 1.34 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006454/0.6984, allocations: 3.786 MB / 0.5635 GB, free: 13.54 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006726/0.7051, allocations: 4.411 MB / 0.5678 GB, free: 8.98 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.101e-05/0.7052, allocations: 4 kB / 0.5678 GB, free: 8.977 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002828/0.7055, allocations: 4 kB / 0.5678 GB, free: 8.973 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001523/0.7056, allocations: 183 kB / 0.568 GB, free: 8.793 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.125/0.8306, allocations: 14.36 MB / 0.582 GB, free: 123.9 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00191/0.8326, allocations: 1.635 MB / 0.5836 GB, free: 123.9 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002175/0.8347, allocations: 1.99 MB / 0.5856 GB, free: 123.9 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002676/0.835, allocations: 140.8 kB / 0.5857 GB, free: 123.8 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.465e-05/0.8351, allocations: 60.84 kB / 0.5857 GB, free: 123.8 MB / 426.7 MB Notification: Performance of pre-optimization done (n=201): time 3.316e-06/0.8351, allocations: 0 / 0.5857 GB, free: 123.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=221): time 0.0115/0.8466, allocations: 7.387 MB / 0.593 GB, free: 123 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.852e-05/0.8466, allocations: 71.66 kB / 0.593 GB, free: 123 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002061/0.8487, allocations: 1.779 MB / 0.5948 GB, free: 122.8 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001182/0.8488, allocations: 25.7 kB / 0.5948 GB, free: 122.7 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000458/0.8493, allocations: 1.253 MB / 0.596 GB, free: 122.2 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003695/0.8497, allocations: 0.7047 MB / 0.5967 GB, free: 121.8 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001111/0.8498, allocations: 2.906 kB / 0.5967 GB, free: 121.8 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.8499, allocations: 400.2 kB / 0.5971 GB, free: 121.5 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001331/0.8512, allocations: 1.25 MB / 0.5983 GB, free: 121.5 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001502/0.8527, allocations: 1.662 MB / 0.5999 GB, free: 121.1 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001626/0.8544, allocations: 1.51 MB / 0.6014 GB, free: 121.1 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.021e-06/0.8544, allocations: 3.938 kB / 0.6014 GB, free: 121.1 MB / 426.7 MB Notification: Performance of matching and sorting (n=291) (initialization): time 0.00485/0.8592, allocations: 3.788 MB / 0.6051 GB, free: 120.8 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.288e-05/0.8593, allocations: 3.969 kB / 0.6051 GB, free: 120.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.724e-05/0.8593, allocations: 14.5 kB / 0.6051 GB, free: 120.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001633/0.8609, allocations: 0.7622 MB / 0.6059 GB, free: 120.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002039/0.863, allocations: 0.5336 MB / 0.6064 GB, free: 120.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006858/0.8699, allocations: 8.057 MB / 0.6143 GB, free: 116.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001758/0.8716, allocations: 60.19 kB / 0.6143 GB, free: 116.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000189/0.8718, allocations: 85.88 kB / 0.6144 GB, free: 116.9 MB / 426.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.0003906/0.8722, allocations: 157 kB / 0.6145 GB, free: 116.8 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004109/0.8726, allocations: 244.8 kB / 0.6148 GB, free: 116.7 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004861/0.8775, allocations: 3.543 MB / 0.6182 GB, free: 116.5 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.561e-05/0.8776, allocations: 21.66 kB / 0.6183 GB, free: 116.5 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.155e-05/0.8776, allocations: 7.281 kB / 0.6183 GB, free: 116.5 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.921e-05/0.8776, allocations: 10.59 kB / 0.6183 GB, free: 116.5 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01047/0.8881, allocations: 7.407 MB / 0.6255 GB, free: 116 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.805e-06/0.8881, allocations: 6.594 kB / 0.6255 GB, free: 116 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001667/0.8898, allocations: 387 kB / 0.6259 GB, free: 116 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001963/0.8918, allocations: 0.8069 MB / 0.6267 GB, free: 115.9 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001561/0.8919, allocations: 23.97 kB / 0.6267 GB, free: 115.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007785/0.8997, allocations: 9.503 MB / 0.636 GB, free: 110 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.8998, allocations: 3.844 kB / 0.636 GB, free: 110 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007133/0.9069, allocations: 5.623 MB / 0.6415 GB, free: 107.5 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008474/0.9154, allocations: 7.968 MB / 0.6493 GB, free: 103.9 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001395/0.9168, allocations: 0.6053 MB / 0.6498 GB, free: 103.6 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006961/0.9175, allocations: 14.56 kB / 0.6499 GB, free: 103.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001597/0.9192, allocations: 82.09 kB / 0.6499 GB, free: 103.6 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002798/0.9195, allocations: 145.2 kB / 0.6501 GB, free: 103.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001576/0.9196, allocations: 67.84 kB / 0.6501 GB, free: 103.6 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002047/0.9217, allocations: 1.336 MB / 0.6514 GB, free: 103 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00375/0.9254, allocations: 0.7269 MB / 0.6522 GB, free: 103 MB / 426.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.0005791/0.926, allocations: 347.3 kB / 0.6525 GB, free: 102.9 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004594/0.9306, allocations: 3.656 MB / 0.6561 GB, free: 101.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.9306, allocations: 0 / 0.6561 GB, free: 101.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002972/0.9336, allocations: 2.295 MB / 0.6583 GB, free: 100.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002805/0.9364, allocations: 0.5039 MB / 0.6588 GB, free: 100.1 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01182/0.9483, allocations: 6.449 MB / 0.6651 GB, free: 96 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003426/0.9517, allocations: 3.027 MB / 0.668 GB, free: 93.67 MB / 426.7 MB Notification: Performance of SimCode: time 8.01e-07/0.9518, allocations: 0 / 0.668 GB, free: 93.67 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