Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001899/0.001899, allocations: 190.1 kB / 8.142 MB, free: 2.184 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.318/1.318, allocations: 221.4 MB / 229.9 MB, free: 2.996 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001017/0.001017, allocations: 101.3 kB / 280.8 MB, free: 1.219 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08994/0.09099, allocations: 55.84 MB / 336.6 MB, free: 9.371 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1772/0.2682, allocations: 50.39 MB / 387 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2683/0.5365, allocations: 125.4 MB / 0.5004 GB, free: 56.02 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002299/0.5367, allocations: 98 kB / 0.5005 GB, free: 56.02 MB / 378.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.3093/0.8461, allocations: 119.7 MB / 0.6174 GB, free: 13.62 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.8461, allocations: 15.94 kB / 0.6174 GB, free: 13.61 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005225/0.8514, allocations: 0.9573 MB / 0.6183 GB, free: 12.64 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0111/0.8625, allocations: 4.414 MB / 0.6226 GB, free: 8.152 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002586/0.8628, allocations: 168 kB / 0.6228 GB, free: 7.988 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001438/0.8642, allocations: 311.8 kB / 0.6231 GB, free: 7.684 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01138/0.8756, allocations: 5.011 MB / 0.628 GB, free: 2.668 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0142/0.8898, allocations: 5.882 MB / 0.6337 GB, free: 12.58 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001986/0.8901, allocations: 7.906 kB / 0.6337 GB, free: 12.57 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009346/0.891, allocations: 4 kB / 0.6338 GB, free: 12.57 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002359/0.8913, allocations: 242.2 kB / 0.634 GB, free: 12.33 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03976/0.931, allocations: 20.26 MB / 0.6538 GB, free: 7.602 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003148/0.9342, allocations: 1.732 MB / 0.6555 GB, free: 5.863 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003397/0.9376, allocations: 2.071 MB / 0.6575 GB, free: 3.789 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1305/1.068, allocations: 6.306 MB / 0.6636 GB, free: 99.84 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.599e-05/1.068, allocations: 59.28 kB / 0.6637 GB, free: 99.8 MB / 442.7 MB Notification: Performance of pre-optimization done (n=250): time 5.209e-06/1.068, allocations: 0 / 0.6637 GB, free: 99.8 MB / 442.7 MB Notification: Performance of matching and sorting (n=274): time 0.01548/1.084, allocations: 8.75 MB / 0.6722 GB, free: 98.82 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.744e-05/1.084, allocations: 80.84 kB / 0.6723 GB, free: 98.76 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002751/1.087, allocations: 2.058 MB / 0.6743 GB, free: 98.54 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001607/1.087, allocations: 25.7 kB / 0.6744 GB, free: 98.51 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006912/1.087, allocations: 1.865 MB / 0.6762 GB, free: 97.72 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004945/1.088, allocations: 0.8924 MB / 0.677 GB, free: 97.22 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000161/1.088, allocations: 2.906 kB / 0.677 GB, free: 97.22 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001427/1.088, allocations: 445 kB / 0.6775 GB, free: 96.91 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001799/1.09, allocations: 1.389 MB / 0.6788 GB, free: 96.9 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002047/1.092, allocations: 2.261 MB / 0.681 GB, free: 95.89 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002594/1.095, allocations: 1.853 MB / 0.6828 GB, free: 95.84 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.201e-05/1.095, allocations: 7.688 kB / 0.6829 GB, free: 95.84 MB / 442.7 MB Notification: Performance of matching and sorting (n=421) (initialization): time 0.006876/1.102, allocations: 4.641 MB / 0.6874 GB, free: 95.42 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/1.102, allocations: 3.531 kB / 0.6874 GB, free: 95.42 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.872e-05/1.102, allocations: 25.72 kB / 0.6874 GB, free: 95.42 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001687/1.103, allocations: 0.7086 MB / 0.6881 GB, free: 95.37 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003028/1.106, allocations: 0.7517 MB / 0.6888 GB, free: 95.37 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007536/1.114, allocations: 8.716 MB / 0.6973 GB, free: 90.45 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002498/1.116, allocations: 108.2 kB / 0.6975 GB, free: 90.44 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002576/1.117, allocations: 140.2 kB / 0.6976 GB, free: 90.44 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.0004688/1.117, allocations: 194.4 kB / 0.6978 GB, free: 90.31 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000436/1.118, allocations: 304.5 kB / 0.6981 GB, free: 90.15 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00681/1.124, allocations: 4.282 MB / 0.7022 GB, free: 89.71 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.838e-05/1.124, allocations: 26.59 kB / 0.7023 GB, free: 89.71 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.401e-05/1.125, allocations: 11.88 kB / 0.7023 GB, free: 89.71 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.306e-05/1.125, allocations: 10.22 kB / 0.7023 GB, free: 89.71 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01316/1.138, allocations: 8.837 MB / 0.7109 GB, free: 88.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.087e-05/1.138, allocations: 6.578 kB / 0.7109 GB, free: 88.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002105/1.14, allocations: 436.6 kB / 0.7113 GB, free: 88.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002566/1.142, allocations: 0.9357 MB / 0.7123 GB, free: 88.64 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002095/1.143, allocations: 31.3 kB / 0.7123 GB, free: 88.64 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01237/1.155, allocations: 14.45 MB / 0.7264 GB, free: 79.95 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.055e-06/1.155, allocations: 5.562 kB / 0.7264 GB, free: 79.95 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00904/1.164, allocations: 6.467 MB / 0.7327 GB, free: 78.81 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0107/1.175, allocations: 8.921 MB / 0.7414 GB, free: 77.09 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001632/1.177, allocations: 0.6821 MB / 0.7421 GB, free: 76.66 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006178/1.177, allocations: 21.42 kB / 0.7421 GB, free: 76.65 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001777/1.179, allocations: 100.1 kB / 0.7422 GB, free: 76.65 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002893/1.179, allocations: 144.2 kB / 0.7423 GB, free: 76.62 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000182/1.179, allocations: 79.09 kB / 0.7424 GB, free: 76.61 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.002244/1.182, allocations: 1.517 MB / 0.7439 GB, free: 75.97 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004552/1.186, allocations: 0.9465 MB / 0.7448 GB, free: 75.92 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.0007608/1.187, allocations: 443.5 kB / 0.7453 GB, free: 75.8 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006153/1.193, allocations: 4.143 MB / 0.7493 GB, free: 74 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.139e-06/1.193, allocations: 1.219 kB / 0.7493 GB, free: 74 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003962/1.197, allocations: 2.642 MB / 0.7519 GB, free: 72.66 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003112/1.2, allocations: 0.564 MB / 0.7524 GB, free: 72.52 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0151/1.215, allocations: 8.084 MB / 0.7603 GB, free: 69.46 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003638/1.219, allocations: 3.67 MB / 0.7639 GB, free: 68.15 MB / 442.7 MB Notification: Performance of SimCode: time 7.71e-07/1.219, allocations: 0 / 0.7639 GB, free: 68.15 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1)