Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.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.SMEE_Generator,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",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.001767/0.001767, allocations: 199.5 kB / 8.54 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.162/1.162, 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.0008653/0.0008654, allocations: 90.34 kB / 286.3 MB, free: 5.289 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09213/0.09302, allocations: 56.93 MB / 343.3 MB, free: 8.648 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0817/0.1747, allocations: 51.47 MB / 394.7 MB, free: 5.125 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2531/0.4279, allocations: 137.6 MB / 0.5199 GB, free: 4.609 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002125/0.4282, allocations: 94.5 kB / 0.52 GB, free: 4.559 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: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.438/0.8662, allocations: 138.9 MB / 0.6557 GB, free: 67.91 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.8662, allocations: 14.53 kB / 0.6557 GB, free: 67.9 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006702/0.8729, allocations: 1.208 MB / 0.6568 GB, free: 67.48 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01062/0.8836, allocations: 4.968 MB / 0.6617 GB, free: 65.05 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001424/0.8838, allocations: 190.7 kB / 0.6619 GB, free: 65.05 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006879/0.8845, allocations: 342.3 kB / 0.6622 GB, free: 65.03 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008334/0.8928, allocations: 5.338 MB / 0.6674 GB, free: 62.79 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008759/0.9016, allocations: 6.284 MB / 0.6736 GB, free: 60.05 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001212/0.9017, allocations: 11.22 kB / 0.6736 GB, free: 60.04 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004446/0.9022, allocations: 13.94 kB / 0.6736 GB, free: 60.04 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001598/0.9023, allocations: 251.5 kB / 0.6738 GB, free: 60.02 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03008/0.9324, allocations: 23.07 MB / 0.6963 GB, free: 43.11 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002271/0.9347, allocations: 1.89 MB / 0.6982 GB, free: 41.22 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002708/0.9374, allocations: 2.312 MB / 0.7005 GB, free: 38.9 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01047/0.9479, allocations: 7.824 MB / 0.7081 GB, free: 30.83 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.423e-05/0.948, allocations: 64.73 kB / 0.7082 GB, free: 30.75 MB / 442.7 MB Notification: Performance of pre-optimization done (n=280): time 4.228e-06/0.948, allocations: 3.938 kB / 0.7082 GB, free: 30.75 MB / 442.7 MB Notification: Performance of matching and sorting (n=332): time 0.01917/0.9672, allocations: 10.81 MB / 0.7187 GB, free: 19.87 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.622e-05/0.9672, allocations: 89.98 kB / 0.7188 GB, free: 19.77 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002951/0.9702, allocations: 2.425 MB / 0.7212 GB, free: 17.34 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001643/0.9703, allocations: 25.7 kB / 0.7212 GB, free: 17.31 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006476/0.971, allocations: 2.118 MB / 0.7233 GB, free: 15.16 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005622/0.9716, allocations: 1.085 MB / 0.7243 GB, free: 14.06 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001823/0.9717, allocations: 0 / 0.7243 GB, free: 14.06 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.9719, allocations: 466.7 kB / 0.7248 GB, free: 13.59 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002011/0.9739, allocations: 1.609 MB / 0.7263 GB, free: 11.98 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002404/0.9763, allocations: 2.784 MB / 0.7291 GB, free: 8.656 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002978/0.9793, allocations: 2.172 MB / 0.7312 GB, free: 6.469 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.451e-05/0.9793, allocations: 12 kB / 0.7312 GB, free: 6.457 MB / 442.7 MB Notification: Performance of matching and sorting (n=517) (initialization): time 0.008269/0.9876, allocations: 5.482 MB / 0.7365 GB, free: 0.918 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.9877, allocations: 12.66 kB / 0.7365 GB, free: 0.9062 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.433e-05/0.9877, allocations: 36 kB / 0.7366 GB, free: 0.8711 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002015/0.9897, allocations: 0.858 MB / 0.7374 GB, free: 0 / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003884/1.121, allocations: 0.925 MB / 0.7383 GB, free: 100.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00904/1.13, allocations: 8.96 MB / 0.7471 GB, free: 96.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003159/1.133, allocations: 150.6 kB / 0.7472 GB, free: 96.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003292/1.134, allocations: 177 kB / 0.7474 GB, free: 96.8 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 170 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (464): * Single equations (assignments): 455 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * 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: 3 {(6,72.2%) 23,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005268/1.134, allocations: 219.6 kB / 0.7476 GB, free: 96.7 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000551/1.135, allocations: 370 kB / 0.7479 GB, free: 96.7 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007667/1.142, allocations: 4.844 MB / 0.7527 GB, free: 96.3 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.327e-05/1.142, allocations: 34.31 kB / 0.7527 GB, free: 96.3 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.28e-05/1.142, allocations: 6.406 kB / 0.7527 GB, free: 96.3 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.619e-05/1.142, allocations: 21.25 kB / 0.7527 GB, free: 96.3 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01465/1.157, allocations: 10.11 MB / 0.7626 GB, free: 95.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.00582/1.163, allocations: 4.04 MB / 0.7666 GB, free: 94.95 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002556/1.166, allocations: 0.5633 MB / 0.7671 GB, free: 94.95 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002353/1.168, allocations: 0.9349 MB / 0.768 GB, free: 94.91 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002148/1.168, allocations: 35.17 kB / 0.7681 GB, free: 94.91 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01135/1.179, allocations: 12.43 MB / 0.7802 GB, free: 88.71 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/1.18, allocations: 7.031 kB / 0.7802 GB, free: 88.71 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009703/1.189, allocations: 7.585 MB / 0.7876 GB, free: 87.45 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0122/1.201, allocations: 10.41 MB / 0.7978 GB, free: 82.67 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0016/1.203, allocations: 0.7903 MB / 0.7985 GB, free: 82.16 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005792/1.204, allocations: 18.61 kB / 0.7986 GB, free: 82.16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001982/1.206, allocations: 137.3 kB / 0.7987 GB, free: 82.16 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003308/1.206, allocations: 185.8 kB / 0.7989 GB, free: 82.13 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000228/1.206, allocations: 88.69 kB / 0.799 GB, free: 82.11 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.002337/1.209, allocations: 1.778 MB / 0.8007 GB, free: 81.39 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004076/1.213, allocations: 1.105 MB / 0.8018 GB, free: 81.32 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.stray.Phi.re,smeeM.stator.stray.Phi.im,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (269): * Single equations (assignments): 260 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(6,72.2%) 23,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007384/1.213, allocations: 0.4961 MB / 0.8023 GB, free: 81.23 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006053/1.219, allocations: 4.849 MB / 0.807 GB, free: 79.16 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/1.219, allocations: 2.297 kB / 0.807 GB, free: 79.16 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003899/1.223, allocations: 2.856 MB / 0.8098 GB, free: 77.8 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003032/1.226, allocations: 0.5986 MB / 0.8104 GB, free: 77.63 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01651/1.243, allocations: 8.855 MB / 0.819 GB, free: 74.25 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004074/1.247, allocations: 3.91 MB / 0.8228 GB, free: 72.93 MB / 442.7 MB Notification: Performance of SimCode: time 7.02e-07/1.247, allocations: 0 / 0.8228 GB, free: 72.93 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1)