Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.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.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",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.001491/0.001491, allocations: 198.6 kB / 8.539 MB, free: 1.809 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.261/1.261, allocations: 225.5 MB / 234.4 MB, free: 3.359 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008985/0.0008985, allocations: 99.88 kB / 286.3 MB, free: 5.234 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09147/0.0924, allocations: 56.91 MB / 343.2 MB, free: 8.578 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08243/0.1748, allocations: 51.47 MB / 394.7 MB, free: 5.055 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.227/0.4019, allocations: 105.8 MB / 0.4887 GB, free: 3.734 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002099/0.4022, allocations: 79.86 kB / 0.4888 GB, free: 3.695 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.1233/0.5254, allocations: 47.92 MB / 0.5356 GB, free: 8.758 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.392e-05/0.5255, allocations: 12 kB / 0.5356 GB, free: 8.746 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001171/0.5267, allocations: 304.7 kB / 0.5359 GB, free: 8.445 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003361/0.5301, allocations: 1.6 MB / 0.5375 GB, free: 6.785 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.655e-05/0.5302, allocations: 72 kB / 0.5376 GB, free: 6.715 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003747/0.5305, allocations: 131.9 kB / 0.5377 GB, free: 6.586 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003629/0.5342, allocations: 2.039 MB / 0.5397 GB, free: 4.539 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004005/0.5382, allocations: 2.425 MB / 0.542 GB, free: 1.977 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.396e-05/0.5383, allocations: 11.84 kB / 0.5421 GB, free: 1.965 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001891/0.5385, allocations: 4 kB / 0.5421 GB, free: 1.961 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001105/0.5386, allocations: 100.2 kB / 0.5422 GB, free: 1.859 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01263/0.5512, allocations: 8.241 MB / 0.5502 GB, free: 9.395 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00136/0.5526, allocations: 0.8447 MB / 0.551 GB, free: 8.543 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001145/0.5538, allocations: 0.8391 MB / 0.5518 GB, free: 7.699 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003135/0.5541, allocations: 215.2 kB / 0.5521 GB, free: 7.449 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.637e-05/0.5541, allocations: 51.56 kB / 0.5521 GB, free: 7.391 MB / 426.7 MB Notification: Performance of pre-optimization done (n=106): time 2.795e-06/0.5541, allocations: 0 / 0.5521 GB, free: 7.391 MB / 426.7 MB Notification: Performance of matching and sorting (n=128): time 0.008765/0.5629, allocations: 4.82 MB / 0.5568 GB, free: 2.52 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.443e-05/0.563, allocations: 64.72 kB / 0.5569 GB, free: 2.445 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001385/0.5644, allocations: 1.037 MB / 0.5579 GB, free: 1.402 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.397e-05/0.5644, allocations: 25.7 kB / 0.5579 GB, free: 1.371 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004467/0.5649, allocations: 0.8255 MB / 0.5587 GB, free: 0.5312 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002996/0.5652, allocations: 433.5 kB / 0.5591 GB, free: 104 kB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.911e-05/0.5653, allocations: 0 / 0.5591 GB, free: 104 kB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.5654, allocations: 365.9 kB / 0.5595 GB, free: 15.74 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009541/0.5664, allocations: 0.699 MB / 0.5602 GB, free: 15.04 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001151/0.5676, allocations: 1.06 MB / 0.5612 GB, free: 13.82 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001181/0.5688, allocations: 0.8807 MB / 0.5621 GB, free: 12.94 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/0.5688, allocations: 4 kB / 0.5621 GB, free: 12.94 MB / 442.7 MB Notification: Performance of matching and sorting (n=189) (initialization): time 0.003819/0.5726, allocations: 2.394 MB / 0.5644 GB, free: 10.52 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/0.5726, allocations: 8 kB / 0.5644 GB, free: 10.52 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.452e-05/0.5726, allocations: 8 kB / 0.5644 GB, free: 10.51 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001445/0.5741, allocations: 0.5918 MB / 0.565 GB, free: 9.906 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001298/0.5754, allocations: 335.5 kB / 0.5653 GB, free: 9.578 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006372/0.5818, allocations: 5.79 MB / 0.571 GB, free: 3.555 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001113/0.5829, allocations: 67.84 kB / 0.571 GB, free: 3.488 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001354/0.5831, allocations: 63.98 kB / 0.5711 GB, free: 3.426 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (160): * Single equations (assignments): 157 * 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: 2 * 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: 2 {(6,75.0%) 22,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002258/0.5833, allocations: 136.5 kB / 0.5712 GB, free: 3.285 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002507/0.5836, allocations: 150.1 kB / 0.5714 GB, free: 3.137 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003659/0.5872, allocations: 2.226 MB / 0.5735 GB, free: 0.8867 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.296e-05/0.5872, allocations: 16 kB / 0.5736 GB, free: 0.8711 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.5873, allocations: 4 kB / 0.5736 GB, free: 0.8672 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.308e-05/0.5873, allocations: 7.969 kB / 0.5736 GB, free: 0.8594 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1161/0.7034, allocations: 4.357 MB / 0.5778 GB, free: 143.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.7034, allocations: 0 / 0.5778 GB, free: 143.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008941/0.7043, allocations: 218.1 kB / 0.578 GB, free: 143.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001481/0.7058, allocations: 0.6236 MB / 0.5786 GB, free: 143.5 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.965e-05/0.7059, allocations: 16.52 kB / 0.5787 GB, free: 143.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006534/0.7125, allocations: 7.427 MB / 0.5859 GB, free: 139.9 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.7125, allocations: 0 / 0.5859 GB, free: 139.9 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004067/0.7166, allocations: 3.426 MB / 0.5892 GB, free: 139.5 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004916/0.7215, allocations: 4.87 MB / 0.594 GB, free: 138.7 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006152/0.7221, allocations: 383.5 kB / 0.5944 GB, free: 138.5 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002308/0.7224, allocations: 10.06 kB / 0.5944 GB, free: 138.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008434/0.7232, allocations: 66.16 kB / 0.5944 GB, free: 138.5 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001657/0.7234, allocations: 77.17 kB / 0.5945 GB, free: 138.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.786e-05/0.7235, allocations: 40.03 kB / 0.5946 GB, free: 138.5 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0009686/0.7245, allocations: 0.7796 MB / 0.5953 GB, free: 138.4 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001906/0.7264, allocations: 467.2 kB / 0.5958 GB, free: 138.4 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,72.2%) 22,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004355/0.7268, allocations: 290 kB / 0.596 GB, free: 138.3 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002701/0.7295, allocations: 2.162 MB / 0.5981 GB, free: 138 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.7296, allocations: 2.438 kB / 0.5982 GB, free: 138 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001819/0.7314, allocations: 1.356 MB / 0.5995 GB, free: 137.7 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001309/0.7327, allocations: 291.4 kB / 0.5998 GB, free: 137.7 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005634/0.7383, allocations: 3.711 MB / 0.6034 GB, free: 136.9 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00149/0.7399, allocations: 1.974 MB / 0.6053 GB, free: 136.1 MB / 442.7 MB Notification: Performance of SimCode: time 7.21e-07/0.7399, allocations: 0 / 0.6053 GB, free: 136.1 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1)