Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.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.AsynchronousInductionMachines.AIMC_Transformer,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Transformer,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_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.0009504/0.0009504, allocations: 183.7 kB / 8.478 MB, free: 1.883 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.08/1.08, allocations: 205.2 MB / 214.1 MB, free: 5.098 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.0008749/0.0008748, allocations: 80.77 kB / 262.1 MB, free: 5.145 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1471/0.148, allocations: 52.98 MB / 315.1 MB, free: 41.39 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06224/0.2103, allocations: 47.57 MB / 362.6 MB, free: 9.863 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2306/0.4408, allocations: 110.9 MB / 473.5 MB, free: 14 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002177/0.4411, allocations: 94.48 kB / 473.6 MB, free: 13.95 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.2388/0.6799, allocations: 95.94 MB / 0.5562 GB, free: 5.012 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.437e-05/0.6799, allocations: 8 kB / 0.5562 GB, free: 5.004 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002008/0.6819, allocations: 0.5063 MB / 0.5567 GB, free: 4.492 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005057/0.687, allocations: 2.579 MB / 0.5593 GB, free: 1.863 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000116/0.6871, allocations: 116 kB / 0.5594 GB, free: 1.75 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004998/0.6877, allocations: 211.9 kB / 0.5596 GB, free: 1.543 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005908/0.6936, allocations: 3.794 MB / 0.5633 GB, free: 13.74 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006505/0.7001, allocations: 4.404 MB / 0.5676 GB, free: 9.188 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.862e-05/0.7002, allocations: 7.938 kB / 0.5676 GB, free: 9.18 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002845/0.7005, allocations: 4 kB / 0.5676 GB, free: 9.176 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001407/0.7006, allocations: 183 kB / 0.5678 GB, free: 8.996 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1285/0.8291, allocations: 14.35 MB / 0.5818 GB, free: 124.3 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002206/0.8313, allocations: 1.637 MB / 0.5834 GB, free: 124.3 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002323/0.8337, allocations: 1.982 MB / 0.5853 GB, free: 124.3 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002971/0.834, allocations: 145.7 kB / 0.5854 GB, free: 124.2 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.884e-05/0.834, allocations: 59.47 kB / 0.5855 GB, free: 124.2 MB / 426.7 MB Notification: Performance of pre-optimization done (n=201): time 3.968e-06/0.8341, allocations: 0 / 0.5855 GB, free: 124.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=221): time 0.01196/0.846, allocations: 7.386 MB / 0.5927 GB, free: 123.4 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.773e-05/0.8461, allocations: 76.95 kB / 0.5928 GB, free: 123.3 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002318/0.8484, allocations: 1.78 MB / 0.5945 GB, free: 123.1 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002172/0.8486, allocations: 25.7 kB / 0.5945 GB, free: 123.1 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004709/0.8491, allocations: 1.252 MB / 0.5958 GB, free: 122.6 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004722/0.8496, allocations: 0.7082 MB / 0.5965 GB, free: 122.2 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001163/0.8497, allocations: 0 / 0.5965 GB, free: 122.2 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.8498, allocations: 400.5 kB / 0.5968 GB, free: 121.9 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001397/0.8513, allocations: 1.249 MB / 0.5981 GB, free: 121.9 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001575/0.8528, allocations: 1.662 MB / 0.5997 GB, free: 121.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001878/0.8547, allocations: 1.509 MB / 0.6012 GB, free: 121.4 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.989e-06/0.8547, allocations: 3.75 kB / 0.6012 GB, free: 121.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=291) (initialization): time 0.005408/0.8602, allocations: 3.79 MB / 0.6049 GB, free: 121.2 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.8602, allocations: 3.562 kB / 0.6049 GB, free: 121.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.219e-05/0.8602, allocations: 14.84 kB / 0.6049 GB, free: 121.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001688/0.8619, allocations: 0.7649 MB / 0.6056 GB, free: 121.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00218/0.8641, allocations: 0.5255 MB / 0.6061 GB, free: 121.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007078/0.8712, allocations: 8.062 MB / 0.614 GB, free: 117.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002214/0.8735, allocations: 63.36 kB / 0.6141 GB, free: 117.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003539/0.8738, allocations: 83.81 kB / 0.6142 GB, free: 117.3 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.0004265/0.8743, allocations: 159.7 kB / 0.6143 GB, free: 117.2 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005526/0.8748, allocations: 245.7 kB / 0.6145 GB, free: 117.1 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005263/0.8801, allocations: 3.537 MB / 0.618 GB, free: 116.9 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.607e-05/0.8801, allocations: 26.38 kB / 0.618 GB, free: 116.9 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-05/0.8802, allocations: 9.438 kB / 0.618 GB, free: 116.9 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-05/0.8802, allocations: 11.48 kB / 0.618 GB, free: 116.9 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01131/0.8915, allocations: 7.401 MB / 0.6253 GB, free: 116.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.085e-06/0.8915, allocations: 3.812 kB / 0.6253 GB, free: 116.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001742/0.8933, allocations: 388.8 kB / 0.6256 GB, free: 116.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00202/0.8953, allocations: 0.8029 MB / 0.6264 GB, free: 116.3 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001752/0.8955, allocations: 23.41 kB / 0.6265 GB, free: 116.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007948/0.9035, allocations: 9.501 MB / 0.6357 GB, free: 110.3 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.18e-06/0.9035, allocations: 7.781 kB / 0.6357 GB, free: 110.3 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006573/0.9101, allocations: 5.626 MB / 0.6412 GB, free: 107.8 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008078/0.9182, allocations: 7.964 MB / 0.649 GB, free: 104.3 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001315/0.9196, allocations: 0.6037 MB / 0.6496 GB, free: 103.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004751/0.92, allocations: 16.64 kB / 0.6496 GB, free: 103.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001376/0.9214, allocations: 83.55 kB / 0.6497 GB, free: 103.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002814/0.9217, allocations: 141.6 kB / 0.6498 GB, free: 103.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001428/0.9219, allocations: 68.28 kB / 0.6499 GB, free: 103.9 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.00164/0.9235, allocations: 1.336 MB / 0.6512 GB, free: 103.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003147/0.9267, allocations: 0.7246 MB / 0.6519 GB, free: 103.3 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.0005386/0.9272, allocations: 353.3 kB / 0.6522 GB, free: 103.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004559/0.9318, allocations: 3.647 MB / 0.6558 GB, free: 101.6 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.9318, allocations: 3.875 kB / 0.6558 GB, free: 101.6 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002854/0.9347, allocations: 2.308 MB / 0.6581 GB, free: 100.6 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002501/0.9372, allocations: 0.4975 MB / 0.6585 GB, free: 100.4 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01018/0.9474, allocations: 6.448 MB / 0.6648 GB, free: 96.08 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002771/0.9502, allocations: 3.021 MB / 0.6678 GB, free: 93.75 MB / 426.7 MB Notification: Performance of SimCode: time 9.02e-07/0.9502, allocations: 0 / 0.6678 GB, free: 93.75 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Transformer.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Transformer_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Transformer.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Transformer_res.mat does not exist to compare? outputFormat=mat