Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") [: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.2+maint.om/package.mo): time 0.001615/0.001615, allocations: 194.3 kB / 8.136 MB, free: 2.184 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.123/1.123, allocations: 194.2 MB / 202.8 MB, free: 8.656 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001832/0.001832, allocations: 116.3 kB / 247.8 MB, free: 6.371 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.046e-05/1.05e-05, allocations: 4 kB / 297.6 MB, free: 7.953 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07908/0.07911, allocations: 44.48 MB / 342.1 MB, free: 11.36 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2557/0.3348, allocations: 118.8 MB / 460.9 MB, free: 8.941 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002341/0.3351, allocations: 86.44 kB / 461 MB, free: 8.898 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.402/0.7371, allocations: 113.8 MB / 0.5613 GB, free: 75.47 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003685/0.7376, allocations: 137.4 kB / 0.5614 GB, free: 75.44 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: 1340 * Number of variables: 1340 Notification: Performance of Generate backend data structure: time 0.01269/0.7503, allocations: 4.861 MB / 0.5662 GB, free: 73.54 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.061e-05/0.7503, allocations: 7.812 kB / 0.5662 GB, free: 73.54 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006369/0.7567, allocations: 0.9528 MB / 0.5671 GB, free: 73.23 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01689/0.7736, allocations: 4.378 MB / 0.5714 GB, free: 71.34 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005166/0.7742, allocations: 165 kB / 0.5716 GB, free: 71.34 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002507/0.7767, allocations: 304.5 kB / 0.5719 GB, free: 71.32 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01892/0.7956, allocations: 4.984 MB / 0.5767 GB, free: 69.23 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02376/0.8195, allocations: 5.856 MB / 0.5824 GB, free: 66.63 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002706/0.8198, allocations: 12.97 kB / 0.5825 GB, free: 66.62 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00135/0.8211, allocations: 4.312 kB / 0.5825 GB, free: 66.62 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003345/0.8215, allocations: 235.1 kB / 0.5827 GB, free: 66.6 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05413/0.8757, allocations: 20.17 MB / 0.6024 GB, free: 55.9 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004024/0.8797, allocations: 1.716 MB / 0.604 GB, free: 55.24 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00432/0.8841, allocations: 2.073 MB / 0.6061 GB, free: 54.48 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01637/0.9005, allocations: 6.261 MB / 0.6122 GB, free: 49.02 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.94e-05/0.9006, allocations: 60.56 kB / 0.6122 GB, free: 48.95 MB / 394.7 MB Notification: Performance of pre-optimization done (n=247): time 7.625e-06/0.9006, allocations: 0 / 0.6122 GB, free: 48.95 MB / 394.7 MB Notification: Performance of matching and sorting (n=271): time 0.02831/0.929, allocations: 8.691 MB / 0.6207 GB, free: 40.16 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.202e-05/0.929, allocations: 81.55 kB / 0.6208 GB, free: 40.07 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005041/0.9341, allocations: 2.049 MB / 0.6228 GB, free: 38.01 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005563/0.9347, allocations: 29.7 kB / 0.6228 GB, free: 37.97 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009589/0.9357, allocations: 1.856 MB / 0.6247 GB, free: 36.09 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001053/0.9367, allocations: 0.889 MB / 0.6255 GB, free: 35.18 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002783/0.937, allocations: 0 / 0.6255 GB, free: 35.18 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002409/0.9373, allocations: 436.8 kB / 0.6259 GB, free: 34.75 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003313/0.9406, allocations: 1.377 MB / 0.6273 GB, free: 33.37 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003681/0.9443, allocations: 2.255 MB / 0.6295 GB, free: 30.73 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005043/0.9494, allocations: 1.84 MB / 0.6313 GB, free: 28.87 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.929e-05/0.9495, allocations: 8 kB / 0.6313 GB, free: 28.86 MB / 394.7 MB Notification: Performance of matching and sorting (n=418) (initialization): time 0.01414/0.9636, allocations: 4.612 MB / 0.6358 GB, free: 24.18 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.421e-05/0.9637, allocations: 5.094 kB / 0.6358 GB, free: 24.17 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.413e-05/0.9638, allocations: 31.98 kB / 0.6358 GB, free: 24.14 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003162/0.9669, allocations: 0.7137 MB / 0.6365 GB, free: 23.41 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00489/0.9719, allocations: 0.7332 MB / 0.6372 GB, free: 22.68 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009428/0.9813, allocations: 8.715 MB / 0.6458 GB, free: 13.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003213/0.9846, allocations: 103.7 kB / 0.6459 GB, free: 13.39 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004448/0.985, allocations: 140 kB / 0.646 GB, free: 13.26 MB / 394.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 (382): * Single equations (assignments): 376 * 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.0005333/0.9856, allocations: 196.8 kB / 0.6462 GB, free: 13.06 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005185/0.9861, allocations: 300.2 kB / 0.6465 GB, free: 12.76 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007233/0.9933, allocations: 4.25 MB / 0.6506 GB, free: 8.41 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-05/0.9934, allocations: 27.94 kB / 0.6506 GB, free: 8.383 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.651e-05/0.9934, allocations: 16 kB / 0.6506 GB, free: 8.367 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.613e-05/0.9934, allocations: 19.84 kB / 0.6507 GB, free: 8.348 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1457/1.139, allocations: 8.763 MB / 0.6592 GB, free: 104.1 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-05/1.139, allocations: 3.938 kB / 0.6592 GB, free: 104.1 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002361/1.142, allocations: 430.3 kB / 0.6596 GB, free: 104.1 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002597/1.144, allocations: 0.9274 MB / 0.6605 GB, free: 104.1 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003521/1.145, allocations: 26.14 kB / 0.6606 GB, free: 104.1 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01274/1.157, allocations: 14.4 MB / 0.6746 GB, free: 95.59 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/1.157, allocations: 8.125 kB / 0.6746 GB, free: 95.59 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009159/1.166, allocations: 6.409 MB / 0.6809 GB, free: 94.66 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001874/1.168, allocations: 0.6794 MB / 0.6816 GB, free: 94.57 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006522/1.169, allocations: 15.78 kB / 0.6816 GB, free: 94.57 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001833/1.171, allocations: 100.4 kB / 0.6817 GB, free: 94.57 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002972/1.171, allocations: 142.8 kB / 0.6818 GB, free: 94.56 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001859/1.171, allocations: 79.97 kB / 0.6819 GB, free: 94.56 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.00221/1.174, allocations: 1.507 MB / 0.6834 GB, free: 94.42 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003373/1.177, allocations: 0.9016 MB / 0.6842 GB, free: 94.42 MB / 394.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 (215): * Single equations (assignments): 208 * 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,75.0%) 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.0007287/1.178, allocations: 420.9 kB / 0.6846 GB, free: 94.32 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005776/1.184, allocations: 4.118 MB / 0.6887 GB, free: 93.65 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/1.184, allocations: 3.125 kB / 0.6887 GB, free: 93.65 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004019/1.188, allocations: 2.612 MB / 0.6912 GB, free: 92.93 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003324/1.191, allocations: 0.5666 MB / 0.6918 GB, free: 92.91 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01677/1.208, allocations: 8.045 MB / 0.6996 GB, free: 91.12 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00424/1.212, allocations: 3.608 MB / 0.7032 GB, free: 90.26 MB / 394.7 MB Notification: Performance of SimCode: time 1.042e-06/1.212, allocations: 0 / 0.7032 GB, free: 90.26 MB / 394.7 MB Notification: Performance of Templates: time 0.07885/1.291, allocations: 45.2 MB / 0.7473 GB, free: 82.2 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1)