Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.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.AIMS_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start",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.001005/0.001005, allocations: 179.9 kB / 8.474 MB, free: 1.879 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.325/1.325, allocations: 205.2 MB / 214.1 MB, free: 5.098 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.001343/0.001343, allocations: 89.98 kB / 262.1 MB, free: 5.145 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.208/0.2094, allocations: 52.98 MB / 315.1 MB, free: 41.4 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08532/0.2947, allocations: 47.57 MB / 362.6 MB, free: 9.875 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3628/0.6575, allocations: 128.1 MB / 490.7 MB, free: 13.66 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000322/0.6579, allocations: 90.25 kB / 490.8 MB, free: 13.62 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1778 * Number of variables: 1778 Notification: Performance of Generate backend data structure: time 0.7548/1.413, allocations: 155.1 MB / 0.6308 GB, free: 34.04 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/1.413, allocations: 13.41 kB / 0.6308 GB, free: 34.04 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009851/1.423, allocations: 1.242 MB / 0.632 GB, free: 33.61 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02286/1.446, allocations: 6.25 MB / 0.6381 GB, free: 32.5 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004106/1.446, allocations: 229.8 kB / 0.6383 GB, free: 32.49 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002421/1.448, allocations: 403.3 kB / 0.6387 GB, free: 32.49 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02271/1.471, allocations: 7.179 MB / 0.6457 GB, free: 30.45 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02503/1.496, allocations: 8.307 MB / 0.6538 GB, free: 26.73 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002817/1.497, allocations: 14.81 kB / 0.6538 GB, free: 26.72 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001391/1.498, allocations: 10.3 kB / 0.6539 GB, free: 26.72 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000303/1.498, allocations: 294.7 kB / 0.6541 GB, free: 26.7 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06828/1.567, allocations: 28.36 MB / 0.6818 GB, free: 11.46 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005591/1.572, allocations: 2.45 MB / 0.6842 GB, free: 10.52 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007897/1.58, allocations: 3.337 MB / 0.6875 GB, free: 9.363 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01899/1.599, allocations: 6.95 MB / 0.6943 GB, free: 4.637 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.844e-05/1.599, allocations: 77.2 kB / 0.6943 GB, free: 4.551 MB / 410.7 MB Notification: Performance of pre-optimization done (n=348): time 9.247e-06/1.599, allocations: 0 / 0.6943 GB, free: 4.551 MB / 410.7 MB Notification: Performance of matching and sorting (n=367): time 0.03672/1.636, allocations: 11.78 MB / 0.7058 GB, free: 8.602 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.193e-05/1.636, allocations: 94.3 kB / 0.7059 GB, free: 8.496 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008353/1.644, allocations: 2.836 MB / 0.7087 GB, free: 5.676 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007308/1.645, allocations: 25.7 kB / 0.7087 GB, free: 5.645 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002304/1.648, allocations: 2.371 MB / 0.711 GB, free: 3.242 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001954/1.65, allocations: 1.178 MB / 0.7122 GB, free: 2.047 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005647/1.65, allocations: 0 / 0.7122 GB, free: 2.047 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004545/1.651, allocations: 466.8 kB / 0.7126 GB, free: 1.582 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005249/1.656, allocations: 1.949 MB / 0.7145 GB, free: 15.62 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00589/1.662, allocations: 2.85 MB / 0.7173 GB, free: 12.39 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00662/1.668, allocations: 2.458 MB / 0.7197 GB, free: 9.918 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.857e-05/1.668, allocations: 8 kB / 0.7197 GB, free: 9.91 MB / 442.7 MB Notification: Performance of matching and sorting (n=521) (initialization): time 0.01832/1.687, allocations: 6.377 MB / 0.726 GB, free: 3.438 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.476e-05/1.687, allocations: 4 kB / 0.726 GB, free: 3.434 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.536e-05/1.687, allocations: 28 kB / 0.726 GB, free: 3.406 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004756/1.692, allocations: 1.249 MB / 0.7272 GB, free: 2.113 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004904/1.697, allocations: 0.8698 MB / 0.7281 GB, free: 1.242 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1352/1.832, allocations: 19.48 MB / 0.7471 GB, free: 115.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00337/1.835, allocations: 101 kB / 0.7472 GB, free: 115.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003506/1.836, allocations: 165.9 kB / 0.7473 GB, free: 115.9 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 121 * Number of states: 0 () * Number of discrete variables: 9 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (458): * Single equations (assignments): 444 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(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: 11 {(2,100.0%) 14,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006762/1.836, allocations: 208.3 kB / 0.7475 GB, free: 115.8 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006092/1.837, allocations: 418.4 kB / 0.7479 GB, free: 115.8 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009496/1.846, allocations: 6.226 MB / 0.754 GB, free: 115.1 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.227e-05/1.846, allocations: 34.25 kB / 0.754 GB, free: 115.1 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.092e-05/1.846, allocations: 14.25 kB / 0.7541 GB, free: 115.1 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-05/1.846, allocations: 21.05 kB / 0.7541 GB, free: 115.1 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01828/1.865, allocations: 12.33 MB / 0.7661 GB, free: 113.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.219e-05/1.865, allocations: 10.47 kB / 0.7661 GB, free: 113.9 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002538/1.867, allocations: 0.5098 MB / 0.7666 GB, free: 113.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003702/1.871, allocations: 1.597 MB / 0.7682 GB, free: 113.7 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002676/1.871, allocations: 29.19 kB / 0.7682 GB, free: 113.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02075/1.892, allocations: 28.36 MB / 0.7959 GB, free: 94.46 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/1.892, allocations: 5.375 kB / 0.7959 GB, free: 94.46 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01228/1.904, allocations: 9.457 MB / 0.8052 GB, free: 92.5 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01475/1.919, allocations: 12.87 MB / 0.8177 GB, free: 86.51 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002096/1.921, allocations: 0.9224 MB / 0.8186 GB, free: 85.96 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007227/1.922, allocations: 17.69 kB / 0.8186 GB, free: 85.95 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002446/1.925, allocations: 133.4 kB / 0.8188 GB, free: 85.95 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004426/1.925, allocations: 220.9 kB / 0.819 GB, free: 85.91 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002549/1.925, allocations: 97.67 kB / 0.8191 GB, free: 85.89 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.003084/1.928, allocations: 2.115 MB / 0.8211 GB, free: 85.07 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004717/1.933, allocations: 1.258 MB / 0.8224 GB, free: 85.02 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 16 (aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.stator.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsE.i_0_s,aimsE.idq_sr[1],aimsE.idq_sr[2],aimsE.idq_rr[1],aimsE.idq_rr[2],aimsE.i_0_r,loadInertiaM.w,loadInertiaE.w,quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 9 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (274): * Single equations (assignments): 257 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 16 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 16 {(2,100.0%) 14,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 12,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007659/1.934, allocations: 478.1 kB / 0.8228 GB, free: 84.89 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007576/1.941, allocations: 6.277 MB / 0.8289 GB, free: 81.8 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/1.941, allocations: 3.938 kB / 0.8289 GB, free: 81.8 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005312/1.947, allocations: 4.535 MB / 0.8334 GB, free: 78.13 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00456/1.951, allocations: 0.9134 MB / 0.8343 GB, free: 77.45 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01932/1.971, allocations: 11.23 MB / 0.8452 GB, free: 67.64 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00545/1.976, allocations: 4.915 MB / 0.85 GB, free: 63.88 MB / 442.7 MB Notification: Performance of SimCode: time 1.062e-06/1.976, allocations: 5.047 kB / 0.85 GB, free: 63.88 MB / 442.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe 2>&1)