Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.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.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_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 3.2.3+maint.om/package.mo): time 0.001044/0.001044, allocations: 183 kB / 8.479 MB, free: 1.871 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.114/1.114, allocations: 205.2 MB / 214.1 MB, free: 5.137 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.0009024/0.0009025, allocations: 83.39 kB / 262.1 MB, free: 5.188 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1499/0.1509, allocations: 52.98 MB / 315.1 MB, free: 41.39 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05965/0.2105, allocations: 47.58 MB / 362.6 MB, free: 9.852 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2408/0.4514, allocations: 124.3 MB / 486.9 MB, free: 0.957 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002317/0.4516, allocations: 83.19 kB / 487 MB, free: 0.9141 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: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.4298/0.8815, allocations: 119.3 MB / 0.5921 GB, free: 71.29 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.388e-05/0.8815, allocations: 14.25 kB / 0.5922 GB, free: 71.29 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004809/0.8863, allocations: 0.9557 MB / 0.5931 GB, free: 70.99 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008891/0.8952, allocations: 4.416 MB / 0.5974 GB, free: 70.29 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001359/0.8954, allocations: 171.2 kB / 0.5976 GB, free: 70.29 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006926/0.8961, allocations: 307.9 kB / 0.5979 GB, free: 70.28 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007948/0.9041, allocations: 5.01 MB / 0.6028 GB, free: 70.26 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008631/0.9127, allocations: 5.883 MB / 0.6085 GB, free: 69.63 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001256/0.9128, allocations: 9.406 kB / 0.6085 GB, free: 69.63 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004696/0.9133, allocations: 3.812 kB / 0.6085 GB, free: 69.63 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001541/0.9135, allocations: 242.8 kB / 0.6087 GB, free: 69.62 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02799/0.9415, allocations: 20.26 MB / 0.6285 GB, free: 65.45 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00229/0.9438, allocations: 1.728 MB / 0.6302 GB, free: 65.42 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0025/0.9463, allocations: 2.073 MB / 0.6322 GB, free: 65.37 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009327/0.9557, allocations: 6.316 MB / 0.6384 GB, free: 62.88 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.772e-05/0.9557, allocations: 61.97 kB / 0.6385 GB, free: 62.82 MB / 426.7 MB Notification: Performance of pre-optimization done (n=250): time 3.787e-06/0.9557, allocations: 4 kB / 0.6385 GB, free: 62.82 MB / 426.7 MB Notification: Performance of matching and sorting (n=274): time 0.01425/0.97, allocations: 8.742 MB / 0.647 GB, free: 59.01 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.63e-05/0.97, allocations: 79.62 kB / 0.6471 GB, free: 58.94 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002543/0.9726, allocations: 2.062 MB / 0.6491 GB, free: 58.11 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001491/0.9727, allocations: 28.2 kB / 0.6491 GB, free: 58.08 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006007/0.9733, allocations: 1.864 MB / 0.6509 GB, free: 56.73 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004629/0.9738, allocations: 0.903 MB / 0.6518 GB, free: 56.02 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001592/0.974, allocations: 3.938 kB / 0.6518 GB, free: 56.01 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.9741, allocations: 435.4 kB / 0.6522 GB, free: 55.65 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001697/0.9758, allocations: 1.391 MB / 0.6536 GB, free: 55.1 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002005/0.9779, allocations: 2.263 MB / 0.6558 GB, free: 53.45 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002481/0.9803, allocations: 1.851 MB / 0.6576 GB, free: 52.72 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.141e-05/0.9804, allocations: 11.78 kB / 0.6576 GB, free: 52.71 MB / 426.7 MB Notification: Performance of matching and sorting (n=421) (initialization): time 0.006631/0.987, allocations: 4.626 MB / 0.6622 GB, free: 51.04 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.385e-05/0.987, allocations: 9.438 kB / 0.6622 GB, free: 51.04 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.215e-05/0.9871, allocations: 29.19 kB / 0.6622 GB, free: 51.04 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001736/0.9888, allocations: 0.7095 MB / 0.6629 GB, free: 50.82 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003211/0.992, allocations: 0.7497 MB / 0.6636 GB, free: 50.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00783/0.9999, allocations: 8.712 MB / 0.6721 GB, free: 44.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002688/1.003, allocations: 107.9 kB / 0.6722 GB, free: 44.38 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003198/1.003, allocations: 138.1 kB / 0.6724 GB, free: 44.36 MB / 426.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.0005344/1.003, allocations: 194.9 kB / 0.6725 GB, free: 44.22 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006587/1.004, allocations: 301.8 kB / 0.6728 GB, free: 44.06 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007848/1.012, allocations: 4.284 MB / 0.677 GB, free: 42.31 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.52e-05/1.012, allocations: 28.88 kB / 0.677 GB, free: 42.31 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.692e-05/1.012, allocations: 10.47 kB / 0.6771 GB, free: 42.31 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.431e-05/1.012, allocations: 15 kB / 0.6771 GB, free: 42.31 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01395/1.026, allocations: 8.839 MB / 0.6857 GB, free: 36.02 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.154e-05/1.026, allocations: 8.031 kB / 0.6857 GB, free: 36.01 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002057/1.028, allocations: 439.3 kB / 0.6861 GB, free: 35.66 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002473/1.031, allocations: 0.9256 MB / 0.687 GB, free: 34.91 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002095/1.031, allocations: 31.5 kB / 0.6871 GB, free: 34.88 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01194/1.043, allocations: 14.42 MB / 0.7011 GB, free: 20.67 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.089e-06/1.043, allocations: 4.938 kB / 0.7012 GB, free: 20.67 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008087/1.051, allocations: 6.466 MB / 0.7075 GB, free: 14.64 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01252/1.063, allocations: 8.912 MB / 0.7162 GB, free: 6.332 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002188/1.066, allocations: 0.6855 MB / 0.7168 GB, free: 5.699 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001033/1.067, allocations: 23.84 kB / 0.7169 GB, free: 5.68 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002887/1.07, allocations: 104.5 kB / 0.717 GB, free: 5.605 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004445/1.07, allocations: 142.9 kB / 0.7171 GB, free: 5.523 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002993/1.07, allocations: 75.84 kB / 0.7172 GB, free: 5.453 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.003387/1.074, allocations: 1.523 MB / 0.7187 GB, free: 4.078 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006085/1.08, allocations: 0.9449 MB / 0.7196 GB, free: 3.137 MB / 426.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.0009293/1.081, allocations: 428.3 kB / 0.72 GB, free: 2.797 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008629/1.09, allocations: 4.134 MB / 0.724 GB, free: 14.91 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/1.09, allocations: 4 kB / 0.724 GB, free: 14.91 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006127/1.096, allocations: 2.641 MB / 0.7266 GB, free: 12.41 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004317/1.1, allocations: 0.5688 MB / 0.7272 GB, free: 11.96 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02294/1.123, allocations: 8.09 MB / 0.7351 GB, free: 4.684 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006405/1.129, allocations: 3.658 MB / 0.7386 GB, free: 1.855 MB / 442.7 MB Notification: Performance of SimCode: time 6.71e-07/1.129, allocations: 4 kB / 0.7386 GB, free: 1.852 MB / 442.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1)