Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_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.001109/0.001109, allocations: 203.9 kB / 8.541 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.173/1.173, allocations: 225.5 MB / 234.4 MB, free: 3.383 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008877/0.0008877, allocations: 94.19 kB / 286.3 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09343/0.09434, allocations: 56.92 MB / 343.3 MB, free: 8.656 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07957/0.1739, allocations: 51.48 MB / 394.7 MB, free: 5.125 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2387/0.4126, allocations: 126.4 MB / 0.509 GB, free: 15.41 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002317/0.4129, allocations: 93.56 kB / 0.5091 GB, free: 15.36 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.4118/0.8248, allocations: 122.8 MB / 0.629 GB, free: 73.93 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.197e-05/0.8248, allocations: 15.5 kB / 0.629 GB, free: 73.92 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004565/0.8294, allocations: 0.9681 MB / 0.6299 GB, free: 73.61 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008791/0.8382, allocations: 4.447 MB / 0.6343 GB, free: 72.21 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001506/0.8383, allocations: 166 kB / 0.6344 GB, free: 72.21 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008561/0.8392, allocations: 317.6 kB / 0.6347 GB, free: 72.19 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009033/0.8483, allocations: 5.006 MB / 0.6396 GB, free: 70.09 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01043/0.8587, allocations: 5.882 MB / 0.6453 GB, free: 67.48 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001364/0.8588, allocations: 8.094 kB / 0.6454 GB, free: 67.47 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000529/0.8594, allocations: 7.484 kB / 0.6454 GB, free: 67.47 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002142/0.8596, allocations: 233.7 kB / 0.6456 GB, free: 67.45 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0301/0.8897, allocations: 20.35 MB / 0.6655 GB, free: 56.65 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002484/0.8922, allocations: 1.732 MB / 0.6671 GB, free: 55.98 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002811/0.895, allocations: 2.127 MB / 0.6692 GB, free: 55.22 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009696/0.9047, allocations: 6.56 MB / 0.6756 GB, free: 51.78 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.257e-05/0.9048, allocations: 61.81 kB / 0.6757 GB, free: 51.72 MB / 442.7 MB Notification: Performance of pre-optimization done (n=250): time 3.747e-06/0.9048, allocations: 3 kB / 0.6757 GB, free: 51.72 MB / 442.7 MB Notification: Performance of matching and sorting (n=274): time 0.01487/0.9197, allocations: 8.754 MB / 0.6842 GB, free: 47.89 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.679e-05/0.9197, allocations: 82.31 kB / 0.6843 GB, free: 47.82 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002844/0.9226, allocations: 2.07 MB / 0.6863 GB, free: 46.98 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001474/0.9227, allocations: 28.77 kB / 0.6864 GB, free: 46.95 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006634/0.9234, allocations: 1.876 MB / 0.6882 GB, free: 45.59 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005044/0.9239, allocations: 0.9024 MB / 0.6891 GB, free: 44.88 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001624/0.9241, allocations: 0 / 0.6891 GB, free: 44.88 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.9242, allocations: 431.8 kB / 0.6895 GB, free: 44.52 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001843/0.9261, allocations: 1.39 MB / 0.6909 GB, free: 43.97 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00229/0.9284, allocations: 2.268 MB / 0.6931 GB, free: 41.93 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00259/0.931, allocations: 1.848 MB / 0.6949 GB, free: 40.32 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.374e-05/0.931, allocations: 8 kB / 0.6949 GB, free: 40.31 MB / 442.7 MB Notification: Performance of matching and sorting (n=421) (initialization): time 0.006859/0.9379, allocations: 4.649 MB / 0.6994 GB, free: 36.13 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.21e-05/0.9379, allocations: 8 kB / 0.6994 GB, free: 36.12 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.287e-05/0.9379, allocations: 24 kB / 0.6994 GB, free: 36.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001631/0.9396, allocations: 0.712 MB / 0.7001 GB, free: 35.49 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002851/0.9424, allocations: 0.7491 MB / 0.7009 GB, free: 34.85 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007445/0.9499, allocations: 8.711 MB / 0.7094 GB, free: 26.31 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002142/0.9521, allocations: 111.1 kB / 0.7095 GB, free: 26.23 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002953/0.9524, allocations: 138.5 kB / 0.7096 GB, free: 26.1 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 125 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (385): * Single equations (assignments): 379 * 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: 4 * 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: 4 {(6,72.2%) 22,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004096/0.9528, allocations: 195.9 kB / 0.7098 GB, free: 25.9 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004454/0.9532, allocations: 300.2 kB / 0.7101 GB, free: 25.6 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006669/0.9599, allocations: 4.282 MB / 0.7143 GB, free: 21.88 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-05/0.9599, allocations: 27.98 kB / 0.7143 GB, free: 21.86 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.005e-05/0.96, allocations: 12 kB / 0.7143 GB, free: 21.84 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.307e-05/0.96, allocations: 12.84 kB / 0.7143 GB, free: 21.84 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01309/0.9731, allocations: 8.831 MB / 0.7229 GB, free: 14.45 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.275e-06/0.9731, allocations: 4 kB / 0.723 GB, free: 14.45 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002013/0.9751, allocations: 437.5 kB / 0.7234 GB, free: 14.08 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002454/0.9776, allocations: 0.931 MB / 0.7243 GB, free: 13.27 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002151/0.9778, allocations: 23.98 kB / 0.7243 GB, free: 13.24 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1364/1.114, allocations: 14.45 MB / 0.7384 GB, free: 110.4 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.631e-06/1.114, allocations: 5.969 kB / 0.7384 GB, free: 110.4 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008293/1.123, allocations: 6.469 MB / 0.7447 GB, free: 109.5 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01005/1.133, allocations: 8.94 MB / 0.7535 GB, free: 108.2 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001218/1.134, allocations: 0.6816 MB / 0.7541 GB, free: 108.1 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004962/1.134, allocations: 18.25 kB / 0.7542 GB, free: 108.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001684/1.136, allocations: 105.4 kB / 0.7543 GB, free: 108.1 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002709/1.136, allocations: 145.3 kB / 0.7544 GB, free: 108.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000192/1.137, allocations: 78.42 kB / 0.7545 GB, free: 108.1 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001977/1.139, allocations: 1.531 MB / 0.756 GB, free: 107.9 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003397/1.142, allocations: 0.9628 MB / 0.7569 GB, free: 107.9 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (218): * Single equations (assignments): 211 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,72.2%) 22,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006257/1.143, allocations: 451.4 kB / 0.7573 GB, free: 107.8 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005027/1.148, allocations: 4.137 MB / 0.7614 GB, free: 107.2 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/1.148, allocations: 3.938 kB / 0.7614 GB, free: 107.2 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003439/1.151, allocations: 2.634 MB / 0.7639 GB, free: 106.4 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002445/1.154, allocations: 0.5827 MB / 0.7645 GB, free: 106.4 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01292/1.166, allocations: 8.104 MB / 0.7724 GB, free: 104.7 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003446/1.17, allocations: 3.665 MB / 0.776 GB, free: 103.9 MB / 442.7 MB Notification: Performance of SimCode: time 5.31e-07/1.17, allocations: 0 / 0.776 GB, free: 103.9 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1)